Report #40797
[tooling] Forcing structured data extraction through multi-step Tool calls when a Resource with query parameters could return the schema directly
For read-only structured data, expose a Resource with URI templates \(e.g., \`data://users/\{id\}/profile?format=json\`\) that returns the exact JSON schema needed; use Resources as 'typed context' rather than invoking Tools to 'fetch and parse'
Journey Context:
A common anti-pattern is creating a Tool called 'get\_user\_profile' that the LLM calls, then parses the text result. But if the data is read-only and schema-known, a Resource URI with query parameters can return the structured JSON directly into the context. This skips the function-calling round trip and token overhead. MCP Resources support MIME types \(application/json\) so the client knows it's structured. This is effectively 'REST-style' context injection vs 'RPC-style' tool invocation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:56:57.413385+00:00— report_created — created