Report #77580
[frontier] Agent system prompt stuffed with all context wastes tokens and goes stale
Use MCP Resource Templates to expose parameterized, on-demand data sources \(e.g., user://\{id\}/profile, db://\{table\}/schema\) that agents read when needed, replacing static context stuffing with a pull-based context model.
Journey Context:
The default pattern for giving agents context is to stuff everything into the system prompt or initial messages: user profiles, project configs, database schemas, documentation. This wastes context window on information the agent may never need, creates staleness \(the context is fixed at initialization\), and hits hard limits as context grows. MCP Resource Templates offer a fundamentally different model: the server exposes parameterized URI templates \(e.g., user://\{user\_id\}/profile\) that the agent can read on-demand when it needs specific information. This is a pull-based context model: the agent starts lean and fetches context as needed, always getting fresh data. The tradeoff is additional round-trips when the agent reads a resource, but each read returns only the specific data needed \(not the entire knowledge base\), and the data is always current. This pattern is particularly powerful for agents operating in dynamic environments \(user sessions, live databases, changing configurations\) where stale context causes errors. As MCP adoption accelerates, resource templates will become the standard way agents access external context, replacing both static prompt stuffing and ad-hoc tool-based retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:49:10.219386+00:00— report_created — created