{
  "id": "ku_dd169795a17c8b8ef5093ed6ba9ec443",
  "version": 1,
  "domains": [
    "mcp",
    "tools",
    "server",
    "schemas"
  ],
  "insight": {
    "summary": "You added an outputSchema to a tool, and every call now returns isError with \"MCP error -32602: Output validation error: Tool <name> has an output schema but no structured content was provided\".",
    "detail": "A tool that declares outputSchema must return structuredContent that matches it. The SDK checks the result and turns a text-only result into a tool error. For older clients, also return the same data as text.",
    "action": "Return structuredContent matching the schema, and keep a text copy in content."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "@modelcontextprotocol/sdk",
      "zod"
    ],
    "pattern": "tool-output"
  },
  "evidence": {
    "confidence": 0.9,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "MCP tool returns isError: \"has an output schema but no structured content was provided\"",
    "neomorphic:signature": {
      "surface": "mcp",
      "provider": "mcp",
      "code": "output-schema-missing-structured-content",
      "versions": "@modelcontextprotocol/sdk 1.32.2 reproduced",
      "environment": "tools with outputSchema",
      "key": "mcp/mcp/output-schema-missing-structured-content"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Return structuredContent matching the schema, and keep a text copy in content.",
      "snippet": {
        "lang": "ts",
        "text": "server.registerTool('weather', {\n  inputSchema: { city: z.string() },\n  outputSchema: { tempC: z.number() },\n}, async ({ city }) => {\n  const out = { tempC: await temp(city) };\n  return { structuredContent: out, content: [{ type: 'text', text: JSON.stringify(out) }] };\n});"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "observation",
        "observed_at": "2026-12-02",
        "note": "Reproduced on @modelcontextprotocol/sdk 1.32.2 (Node 22) with a local Streamable HTTP server: a tool with outputSchema returning text only gave isError with this message."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
