Skip to content
Useful MCP HubSign in

A FIELD GUIDE TO MCP

Structured tool result

Server-produced JSON returned in structuredContent, optionally validated against a tool’s outputSchema.

Sources checked: 2026-11-22

AI-generated conceptual artwork: forest-green braces above ordered paper slips beside a curled prose sheet, representing structured data and readable explanation. Not a product screenshot or a test result.
AI-generated editorial illustration. Exact protocol rules are explained in the sourced text; this is not a product screenshot or empirical diagram.

What it means

A structured MCP tool result is machine-readable data returned by the server, separate from a human-readable text explanation. In protocol version 2026-07-28, structuredContent can be any JSON value, including an object, array, string, number, boolean or null, provided it conforms to outputSchema when the tool declares one.

How the contract works

The tool definition can include an optional outputSchema. If it does, the server must produce structured results that match that schema, and clients should validate the result. For backward compatibility, the specification recommends also returning serialized JSON in a TextContent block. That compatibility text is not a substitute for checking the structured field.

A concrete example

Consider a fictional documentation-search tool whose outputSchema permits an array of objects with title and url fields. Its structuredContent could be [{"title":"Setup guide","url":"https://example.com/guide"}]. This is an illustration, not a live search or a full protocol message. An array is allowed by the cited 2026-07-28 rules; check the revision supported by the real client and server.

Limits and common confusion

Schema validation can establish data shape and declared constraints; it cannot prove a linked page is current, a claim is true or an operation succeeded in the outside world. A tool-execution error and transport success are separate questions. Server-produced structuredContent is also unrelated to LLM structured outputs, which constrain a model’s generated answer.

Primary sources