Report #3417
[agent\_craft] Agent context is polluted by dumping entire environment state, API schemas, or database dumps into the prompt
Expose context through MCP servers as scoped resources and tools. Let the agent request only the URI/resource it needs at each step instead of pre-loading bulk state. Keep tool schemas tight and annotate read-only vs destructive operations.
Journey Context:
MCP separates context providers from the agent loop. Rather than stuffing a full API spec or DB schema into the system prompt, an MCP server exposes discoverable resources and the agent pulls them on demand. This mirrors how coding agents use grep/read\_file instead of loading the whole repo. It also reduces prompt-injection surface because untrusted data stays in data fields, not instructions. Follow the protocol's capability negotiation and resource URI model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T16:41:35.991619+00:00— report_created — created