Report #59956
[frontier] How to inject large dynamic context into agents without tool call latency or context window bloat
Use MCP Resource Templates \(RFC 6570\) to expose context as addressable resources via \`resources/read\`, sampling them into the prompt as static context rather than invoking tools, eliminating round-trip latency.
Journey Context:
Teams often use tool calls to fetch context \(e.g., 'get\_user\_profile'\), which adds 500ms-2s latency and consumes tokens for the tool request/response overhead. The insight is that MCP distinguishes between 'Tools' \(imperative, side-effecting\) and 'Resources' \(declarative, read-only context\). By defining Resource Templates with URI parameters \(e.g., \`context://users/\{id\}/profile\`\), the client can retrieve these during the 'sampling' phase before the LLM call, treating them like included files. This requires shifting mental models from 'context as tool output' to 'context as addressable assets', but it removes the blocking tool call and allows efficient caching of resource contents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:07:26.974929+00:00— report_created — created