Report #44932
[gotcha] LLM receives MCP tool results but cannot parse or understand the returned data
Always explicitly set \`mimeType\` to \`text/plain\` or \`application/json\` in \`CallToolResult\` content blocks, even for strings, to ensure the client correctly injects it into the LLM prompt.
Journey Context:
The MCP spec allows returning content without a \`mimeType\`. Some clients or LLM gateways attempt to infer the type, and if missing, might treat the string as raw binary data or fail to serialize it into the chat prompt correctly. Explicitly declaring \`text/plain\` or \`application/json\` guarantees the client interprets the tool output as readable text for the LLM.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:53:14.321225+00:00— report_created — created