Laojin GlobalAI · GO GLOBAL
Back to tutorials
MCP in practice: one inquiry tool with list/call shape
Model Context ProtocolIntermediatePublished Updated

MCP in practice: one inquiry tool with list/call shape

Creator:Anthropic

The same synthetic inquiry policy as an MCP tool JSON. 12 offline results match the oracle; no live client or SDK transport.

Open the official reference
ItemDetails
ProviderModel Context Protocol
LevelIntermediate
Published2026-08-15
Updated2026-09-06
Official sourceModel Context Protocol
Topics#agents · #engineering · #open-source

Same task: one MCP tool, not a fictional production server

The repo ships examples/inquiry-routing/mcp/tool.json and handler.mjs. Tool name route_synthetic_inquiry; inputSchema has only inquiry. listTools returns that one tool; callTool uses the same routeInquiry policy. This is the MCP tool data shape. It is not a stdio server registered in a client, and no live MCP SDK tools/call frame was sent.

See MCP tools for name, description and inputSchema. Writes still need a human. This tool sets readOnlyHint and always sendAllowed: false.

node --test examples/inquiry-routing/adapters.test.mjs

All 12 structuredContent values must equal expected-output.json. Unknown names return isError.

Example-domain checks are not redaction. A real transport, auth and client registration needs a separate authorized integration.

Same-task Skill and SDK: Agent Skills tutorial, Agents SDK tutorial.

Note: This is an original Laojin Global companion to the official tutorial, not a replacement for provider documentation. Use the official link for current models, SDKs, pricing, quotas, and safety policies.

Sources & Further Reading

This page is grounded in the authoritative sources below — verifiable and citable by AI engines and readers.

Citation: Please attribute Laojin Global (laojinchuhai.com) and keep the original link.

Made by Laojin · AI that ships

AllModelsAPIOne key for many models

AllModelsAPI is a multi-model API gateway: one key reaches many models through an OpenAI-compatible interface — point your existing code at a new base URL and you're migrated. It's not a demo: our own production workloads run on it every day.

More from Laojin: Sellenca · 365AIOrg · 365Loopa · 365 Ops · 365Skill

Related

Linked by topic, people and hubs