MCP tools without outputSchema: return structuredContent for data tools
Tools that return data should declare an outputSchema and return structuredContent plus matching text. OpenAI recommends it.
Declare outputSchema on tools that return data. The rule output.no-schema is an info-level finding for ChatGPT and general clients. It reports a warning with the count of tools lacking one. Tools that only perform an action and return a confirmation need it less.
What you see
- A scan reports
3 of 8 tools have no outputSchemaand lists up to ten tool names. - Nothing fails. The cost is that clients and models get no machine-readable shape for the result.
Why it happens
Many servers return a JSON string inside a text block. It works, so the output schema never gets written.
The MCP tools specification says that if an output schema is provided, "Servers MUST provide structured results that conform to this schema" and "Clients SHOULD validate structured results against this schema." It lists the benefits: strict validation, type information, and guidance for models parsing the data. For compatibility, a tool returning structured content SHOULD also return the serialized JSON in a text content block. OpenAI's server guide recommends "An output schema when the tool returns structured data" and describes structuredContent as "concise data the model can inspect and use in later calls", with stable identifiers so later tools can refer to the same records.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| jq -r '.result.tools[] | select(.outputSchema == null) | .name'
Fix
outputSchema: {
type: "object",
properties: { order_id: { type: "string" }, status: { type: "string" }, total: { type: "number", description: "Order total in EUR" } },
required: ["order_id", "status", "total"],
},
// handler returns:
{ structuredContent: order, content: [{ type: "text", text: JSON.stringify(order) }] }
- Keep the schema in sync with what the handler returns, since the server must conform to it.
- Keep an object root for compatibility with older clients (
output.schema-not-object). - For widget tools, this is a major rule (
apps.no-structured-output).
Verify
The jq command lists only tools with no data result, and a call returns structuredContent that validates against the schema. Re-scan.
Which clients care
ChatGPT and general, per the rule.
Source
OpenAI MCP server guide: https://developers.openai.com/plugins/build/mcp-server
MCP tools specification: https://modelcontextprotocol.io/specification/2026-07-28/server/tools
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.