Analytics Legends logoAI & Analytics Legends Sign inSign up
Concept card

MCP Tool Specification Standard — JSON Schema + Annotations

MCP Tool Specification Standard — JSON Schema + Annotations — AI & Analytics Legends section illustration for the SAP AI & Analytics knowledge base (concepts, studies, Academy)

As of 2026-11-14

What is MCP Tool Specification Standard?

Most MCP tool failures are not handler bugs: they are vague descriptions and loose input schemas that make the model pick the wrong tool or invent invalid arguments. Name, description, JSON Schema input and annotations decide selection and arguments; annotations, in the spec since 2025-03-26, are hints a client may honour, never authorization.

An MCP tool is presented to the model through four artefacts that decide whether it is chosen and called correctly: a name, a description, a JSON Schema for its input, and an optional annotations block. The specification also allows a display title, an output schema and icons (tools specification), but selection and argument quality are settled by the first four. Most production failures in MCP servers are not handler bugs; they are under-specified descriptions and loose schemas that steer the model to the wrong tool or to invalid arguments.

What each artefact carries

The name is a stable identifier. Since the 2025-11-25 revision the specification gives guidance: 1 to 128 characters, case-sensitive, limited to ASCII letters, digits, underscore, hyphen and dot, unique within the server (tools specification, changelog). Stability matters more than elegance: renaming a tool silently breaks every prompt, cached plan or routing rule that referred to the old name. This platform's MCP server, for instance, keeps verb-noun names such as search_firms, get_firm and search_news (server manifest).

The description is what the model reads to decide whether a tool fits the user's intent — the highest-leverage text in the server. "Search firms" is mis-selected as soon as a second search-shaped tool sits in the same context; a description that names the directory searched, the filters available, the size of the result and the companion tool to call for a full record lets the model route correctly and plan its next step.

Why it matters

  • A vague description such as "Search firms" is mis-selected as soon as a similar tool shares the context; naming the data searched, the filters, the result size and the follow-up tool resolves it.
  • A property declared only as a string called country draws ISO codes, full names or free text depending on the model; an enum of ISO 3166-1 alpha-2 codes removes the ambiguity at schema level.
  • One schema definition that produces both the advertised JSON Schema and the runtime validation (as the TypeScript SDK does with Zod) removes drift between what the handler enforces and what the model sees.

Key points

  • Four artefacts decide selection and arguments: name (stable identifier), description (the model's selection signal), input schema (JSON Schema), annotations (behaviour hints); title, outputSchema and icons are optional extras.
  • Name guidance since 2025-11-25: 1–128 characters, case-sensitive, ASCII letters, digits, underscore, hyphen and dot, unique within the server; a rename breaks plans that used the old name.
  • Description: lead with the action and the object, name the inputs, the result shape and the companion tool to call next.
  • Input schema: JSON Schema 2020-12 by default; required, typed and described properties, enum or pattern on closed values, additionalProperties: false to reject undeclared arguments.
  • Schema-first: one Zod schema in the TypeScript SDK yields the advertised JSON Schema, the validation and the handler types; failing arguments return as isError results the model can correct.
  • Annotations (since 2025-03-26): title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint — untrusted unless the server is trusted; planning hints, never runtime enforcement.
  • Recent validation: x-mcp-header (2026-07-28) only on string, integer and boolean parameters; Python SDK 2.3.0 rejects invalid ones at registration; TypeScript SDK 2.3.0 adds maxToolInputElements and expectedResource, both off unless set.
  • SAP write tools: set destructiveHint: true when the transaction has no trivial undo (a posted journal entry, a released purchase order), and still check SAP authorization objects in the handler.

Terms used on this page

JSON Schema 2020-12
The default dialect of MCP tool input and output schemas when no $schema is given (since the 2025-11-25 revision): types, required, properties, enum, pattern, additionalProperties — the contract the model reads to build a valid call.
Tool annotations
Optional hints carried alongside name, description and inputSchema since the 2025-03-26 revision: title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint; clients must treat them as untrusted unless the server is trusted, and the server does not enforce them.
Zod-first schema pattern
Defining an input schema once in TypeScript with Zod so that the advertised JSON Schema, the runtime validation and the handler's argument types all come from the same source — no drift between what the tool advertises and what the handler accepts.
Tool mis-routing
The failure in which the model picks the wrong tool because two descriptions overlap or are too vague; fixed with precise descriptions, distinct names and, where tools resemble each other, an explicit 'use X instead for …' sentence.
destructiveHint
Annotation saying a tool may make destructive updates; meaningful only when readOnlyHint is false. For SAP write actions with no trivial undo — a posted journal entry, a released purchase order — set it to true even if the description reads as routine.
readOnlyHint
Annotation saying a tool does not modify its environment, which lets a client skip confirmation; the right value for lookup tools such as querying a Datasphere model or reading a master-data record.

Sources

  1. MCP specification 2026-07-28 — Tools (definition fields, name guidance, annotations untrusted, x-mcp-header, error handling)
  2. JSON Schema 2020-12 specification
  3. MCP specification — Key changes 2025-03-26 (tool annotations added)
  4. MCP specification — Key changes 2025-11-25 (tool-name guidance, JSON Schema 2020-12 default, input validation errors as tool execution errors)
  5. MCP specification — Key changes 2026-07-28 (x-mcp-header, any JSON Schema 2020-12 keyword)
  6. modelcontextprotocol/python-sdk — v2.3.0 release notes, 2 Oct 2026 (invalid x-mcp-header rejected at registration)
  7. modelcontextprotocol/typescript-sdk — v2.3.0 release notes, 2 Oct 2026 (maxToolInputElements, expectedResource)
  8. modelcontextprotocol/typescript-sdk — v2.3.1 release notes, 5 Oct 2026 (expectedResource in the legacy server package)
  9. MCP TypeScript SDK — repository and server guides (registerTool, Zod schemas, isError on validation failure)
  10. Microsoft Learn — Fabric Core MCP Server overview (destructive-operation safeguards not standardised in MCP)
  11. Snowflake docs — Snowflake-managed MCP server (per-tool privileges, read-only SQL by default)
  12. Databricks docs — Databricks-managed MCP servers (Unity Catalog permissions, Unity Gateway grants)
  13. SAP News — SAP TechEd: developers, you can build the autonomous enterprise (28 Oct 2026; SAP Enterprise AI Gateway announced)

Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.

Open in the app →

Open missions

50 live roles and contracts in SAP AI & Joule right now — see the SAP AI & Joule missions · freelance SAP contracts.