Report #26851
[frontier] MCP tools lose state between calls causing agents to repeat work
Use MCP Resources \(not just Tools\) to expose mutable state containers with URI addressing; mount them at session roots and update via server-side mutations, treating them as working memory banks accessible across turns.
Journey Context:
MCP novices expose everything as Tools \(stateless functions\), causing agents to re-fetch or lose context. The production pattern leverages MCP Resources \(uris like 'memory://task-state'\) that persist across the session. This mirrors 'working memory' patterns, avoiding the 'call tool, get result, lose result' cycle. Tradeoff: requires server-side state management, but enables true multi-turn tool interactions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:28:11.719114+00:00— report_created — created