{
  "capability": "tools.result",
  "slug": "tools-result",
  "page": "https://canimcp.io/capabilities/tools-result",
  "lifecycle": null,
  "parent": "tools",
  "children": [
    "tools.result.content",
    "tools.result.structuredContent",
    "tools.result.outputSchema",
    "tools.result.audience",
    "tools.result.isError",
    "tools.result.media",
    "tools.result._meta"
  ],
  "clients": [
    {
      "id": "goose",
      "title": "goose",
      "kind": "host",
      "page": "https://canimcp.io/clients/goose",
      "status": "full",
      "notes": "content only. Code mode also reads content text only.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/goose-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/goose-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the goose source at 5bad61a."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "openai-codex",
      "title": "Codex CLI",
      "kind": "host",
      "page": "https://canimcp.io/clients/openai-codex",
      "status": "full",
      "notes": "structuredContent replaces content. Every payload is prefixed with a Wall time header.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-06-18",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/codex-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/codex-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Codex CLI source at 748ab55."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "opencode",
      "title": "opencode",
      "kind": "host",
      "page": "https://canimcp.io/clients/opencode",
      "status": "full",
      "notes": "Code Mode is the default route: MCP tools are reachable only through the execute script tool, scripts receive structuredContent, and the model sees the script return value. The direct path applies with codemode: false.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/opencode-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/opencode-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the opencode source at a98e3fa."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "cline",
      "title": "Cline",
      "kind": "host",
      "page": "https://canimcp.io/clients/cline",
      "status": "full",
      "notes": "The whole CallToolResult is JSON.stringified into one text block. No placeholder for an empty content array.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/cline-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/cline-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Cline source at 94eecbb."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "fast-agent",
      "title": "fast-agent",
      "kind": "framework",
      "page": "https://canimcp.io/clients/fast-agent",
      "status": "full",
      "notes": "structuredContent replaces content. The ACP channel receives content blocks only; tools with app-only visibility are hidden from the model.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/fast-agent-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/fast-agent-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the fast-agent source at d89956d."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "hermes-agent",
      "title": "Hermes Agent",
      "kind": "host",
      "page": "https://canimcp.io/clients/hermes-agent",
      "status": "full",
      "notes": "Both fields reach the model in one JSON string unless the text mirrors the JSON. Over 2,000,000 serialized characters the structured value is replaced by a head-and-tail truncated string.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/hermes-agent-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/hermes-agent-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Hermes Agent source at e0754412."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "kilocode",
      "title": "Kilo Code",
      "kind": "host",
      "page": "https://canimcp.io/clients/kilocode",
      "status": "full",
      "notes": "The direct path is the default: Code Mode is opt-in here (KILO_EXPERIMENTAL_CODE_MODE or experimental.code_mode), where opencode made it the default route. On the direct path content wins and structuredContent fills in as one JSON text block only when content is empty.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/0c0395d/notes/kilocode-tool-result-handling.md",
          "date": "2026-11-08",
          "commit": "0c0395d",
          "path": "notes/kilocode-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Kilo Code source at b6a49d0."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "Kilo-Org/kilocode",
          "date": "2026-11-27",
          "commit": "3c7f2659",
          "path": "packages/opencode/src/kilocode/tool/code-mode.ts",
          "note": "Code Mode gate checked at this commit."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "mastra",
      "title": "Mastra",
      "kind": "framework",
      "page": "https://canimcp.io/clients/mastra",
      "status": "full",
      "notes": "The tool's declared outputSchema picks the field. With one, the text of content goes to the model and structuredContent is the fallback when content has no text. Without one, structuredContent replaces content when present, and a result with no structuredContent goes to the model as the whole envelope in JSON. On 2026-07-28 the SDK rejects a result with no content key and the model sees the validation error.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/mastra-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/mastra-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Mastra source at 7277766d."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "fx",
      "title": "fx (native engine)",
      "kind": "host",
      "page": "https://canimcp.io/clients/fx",
      "status": "full",
      "notes": "The whole result goes to the model as one JSON string inside an envelope: {\"server\", \"tool\", \"result\": {content, structuredContent, isError}}. Nothing compares the two fields. An envelope over 16 KiB is stored, and the model gets a 4 KiB preview with a handle for read_tool_result. The files the note reads did not change between its pin and c3dc80c4, apart from one HTTP connection fix in src/mcp (29b9c67f).",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/fx-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/fx-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the fx source at 3fd4905."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "libfx",
      "title": "libfx (fx JavaScript adapter)",
      "kind": "framework",
      "page": "https://canimcp.io/clients/libfx",
      "status": "full",
      "notes": "The model receives the joined content text, a newline, and JSON.stringify(structuredContent). Only the JSON is sent when the two strings are identical. There is no envelope. A result longer than the session's max_tool_result_bytes, 64 KiB by default, is replaced whole with \"Host tool result exceeded the configured limit\". sdk/mcp.js and sdk/engine.js did not change between the note's pin and c3dc80c4.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/fx-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/fx-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises the \"JS adapter\" section of its fx note, which read the fx source at 3fd4905."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "eve",
      "title": "eve",
      "kind": "framework",
      "page": "https://canimcp.io/clients/eve",
      "status": "full",
      "notes": "structuredContent replaces the text blocks whenever it is present. Any image, audio, resource or resource_link block makes the block list the value and drops structuredContent. An isError result is thrown and reaches the model as error text.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/eve-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/eve-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the eve source at be1adda."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "pi",
      "title": "pi",
      "kind": "host",
      "page": "https://canimcp.io/clients/pi",
      "status": "full",
      "notes": "On the default codemode route the model never receives the result: a script gets the whole CallToolResult without _meta, uncut, and only what the script returns reaches the model. With exposure direct, or deferred once tool_search has loaded the tool, content reaches the model and structuredContent fills in only when content is empty.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/pi-mono-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/pi-mono-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the pi source at 8636e21."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "earendil-works/pi",
          "date": "2026-11-27",
          "commit": "cdf74062",
          "path": "packages/coding-agent/src/core/mcp-servers.ts:getMcpToolExposure",
          "note": "Default exposure checked at this commit."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "strands",
      "title": "Strands Agents",
      "kind": "framework",
      "page": "https://canimcp.io/clients/strands",
      "status": "full",
      "notes": "content only. structuredContent and result _meta stay on the MCPToolResult for hooks and direct callers and are never sent to the model. The research note covers the Python binding.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/strands-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/strands-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Strands source at 46cbb8c."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "strands-agents/harness-sdk",
          "date": "2026-11-27",
          "commit": "78855cad",
          "path": "strands-ts/src/tools/mcp-tool.ts:McpTool,McpTool._mapMcpContent",
          "note": "Not covered by that note. At this commit the TypeScript McpTool also maps content blocks only and does not read structuredContent. A block type it does not know becomes a JSON block, and empty content becomes a fixed sentence."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "crewai",
      "title": "crewAI",
      "kind": "framework",
      "page": "https://canimcp.io/clients/crewai",
      "status": "full",
      "notes": "Native route: every content block is flattened to text and joined with newlines, and structuredContent is dropped when content has any block. With empty content the model gets str() of the whole CallToolResult. A result above a quarter of the context window is written to a file and the model gets a reference and a reader tool. The https:// string route and the adapter route format results differently; the note covers both.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/crewai-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/crewai-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the crewAI source at d7dfa0e. No file under lib/crewai/src/crewai/mcp, the two MCP tool classes or the crewai-tools adapter changed between d7dfa0e and 758b2c1d."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "crewAIInc/crewAI",
          "date": "2026-11-27",
          "commit": "77237aec",
          "path": "lib/crewai/src/crewai/mcp/client.py:MCPClient._call_tool_impl",
          "note": "Checked at this commit: isError, then content_blocks_to_text when content is non-empty, else str(result)."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "crewAIInc/crewAI",
          "date": "2026-11-27",
          "commit": "77237aec",
          "path": "lib/crewai/src/crewai/mcp/content.py:content_blocks_to_text"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "deepagents",
      "title": "deepagents",
      "kind": "framework",
      "page": "https://canimcp.io/clients/deepagents",
      "status": "full",
      "notes": "content only. langchain.mcp converts the content blocks into the ToolMessage content and puts structuredContent on ToolMessage.artifact, which no provider request is built from. The rule is ported from langchain-mcp-adapters.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/deepagents-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/deepagents-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the deepagents source at a93aed4 with langchain 1.5.0, fastmcp 4.1.2 and mcp 2.3.0."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "adk-python",
      "title": "Google ADK (Python)",
      "kind": "framework",
      "page": "https://canimcp.io/clients/adk-python",
      "status": "full",
      "notes": "The SDK CallToolResult is dumped to a plain dict with content, structuredContent, isError and meta, and the whole dict is the function response. What the model receives then depends on the model backend. The default Gemini backend sends the dict as built. AnthropicLlm sends the content text when content is non-empty.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/adk-python-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/adk-python-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the ADK source at 287c0b0. Between 287c0b0 and c6586f19 no file under src/google/adk/tools/mcp_tool changed."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "agent-framework",
      "title": "Microsoft Agent Framework",
      "kind": "framework",
      "page": "https://canimcp.io/clients/agent-framework",
      "status": "full",
      "notes": "tool_result_content defaults to structured_first: when structuredContent is present, one JSON text block replaces every content block. The other modes are content_first, content_only, structured_only and both, set per MCPTool, and parse_tool_results replaces the parser. .NET differs: the C# SDK's McpClientTool returns native content only when the result has no isError, no structuredContent and no application _meta, and otherwise the whole CallToolResult as JSON.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/711f1f6/notes/agent-framework-tool-result-handling.md",
          "date": "2026-11-16",
          "commit": "711f1f6",
          "path": "notes/agent-framework-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Agent Framework source at 92838b6. No commit between 92838b6 and 10801303 touches _mcp.py, dotnet/src/Microsoft.Agents.AI.Mcp, the declarative MCP handler or Directory.Packages.props."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "vscode",
      "title": "Visual Studio Code",
      "kind": "host",
      "page": "https://canimcp.io/clients/vscode",
      "status": "full",
      "notes": "One route: McpToolImplementation.invoke converts the result and Copilot Chat renders the parts. When structuredContent is truthy its JSON replaces every text block on the model path.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/f32f225c/notes/vscode-tool-result-handling.md",
          "date": "2026-11-20",
          "commit": "f32f225c",
          "path": "notes/vscode-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the VS Code source at d53b9e1d with Copilot Chat 0.75.0."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "zed",
      "title": "Zed",
      "kind": "host",
      "page": "https://canimcp.io/clients/zed",
      "status": "full",
      "notes": "Text and image blocks from content reach the model. structuredContent, outputSchema, annotations and _meta are parsed or ignored and never read. A result with no content key fails deserialization.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "olaservo/structured-content-research",
          "url": "https://github.com/olaservo/structured-content-research/blob/f32f225c/notes/zed-tool-result-handling.md",
          "date": "2026-11-20",
          "commit": "f32f225c",
          "path": "notes/zed-tool-result-handling.md",
          "note": "The read tier for tool result handling lives in that repo (AGENTS.md); this entry summarises its note, which read the Zed source at 0cfc4a4 (Zed 1.30.0)."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "zed-industries/zed",
          "date": "2026-11-27",
          "commit": "da3a2740",
          "path": "crates/agent/src/tools/context_server_registry.rs:ContextServerTool.run",
          "note": "The tools/call loop the note describes was checked at this commit and matches it."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    }
  ],
  "notRecorded": [
    "openclaw",
    "antigravity",
    "claude-code",
    "claude-ai",
    "chatgpt",
    "codex-desktop",
    "huggingface-chat-ui",
    "cursor",
    "n8n",
    "langflow",
    "mcp-use",
    "ts-sdk-client",
    "warp",
    "reachy-mini-conversation-app"
  ],
  "research": [
    "agent-framework-offers-mcp-prompts-to-the-model-as-tools",
    "codex-reads-one-page-of-tools",
    "crewai-opens-a-new-mcp-session-for-every-tool-call",
    "crewai-reaches-mcp-through-four-entry-points",
    "deepagents-core-library-has-no-mcp-client",
    "eve-defers-every-mcp-tool-and-reads-one-page",
    "libfx-has-no-mcp-client-of-its-own",
    "libfx-passes-the-abort-signal-in-the-sdk-v1-position",
    "mastra-studio-previews-servers-with-a-hand-written-initialize",
    "mcp-use-python-binding-runs-on-the-1x-sdk",
    "n8n-sends-the-node-type-as-client-name",
    "openclaw-scrubs-tool-descriptions-with-three-regexes",
    "opencode-checks-listed-tools-itself-on-a-patched-sdk",
    "opencode-retries-tools-list-without-output-schema",
    "pi-keeps-mcp-tools-out-of-the-models-tool-list",
    "reachy-mini-conversation-app-connects-once-per-tool-call",
    "reachy-mini-conversation-app-reaches-only-gradio-spaces",
    "strands-python-and-typescript-clients-differ"
  ],
  "byRevision": {}
}
