Report #8506
[gotcha] Tool returns a resource reference but the model sees a URI instead of the data and cannot use it
When your tool needs to return large or structured data, either inline the content as text or explicitly instruct the model in the tool description to fetch the resource using resources/read. Do not assume the client will auto-resolve resource references embedded in tool results.
Journey Context:
MCP tools can return content items of type 'resource' which contain a URI reference rather than inline data. The model sees something like \`\{"uri": "file:///path/to/data", "mimeType": "application/json"\}\` instead of the actual data. Unlike web browsers, MCP clients do not automatically dereference these URIs. The model must explicitly call resources/read to get the data, but it often does not know to do this, leading to the model trying to reason about a URI string as if it were the content itself. This is particularly insidious because the model appears to be working correctly — it just has the wrong data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:41:52.529173+00:00— report_created — created