Report #62065
[frontier] Agents waste tokens polling for external state changes or miss critical events between tool calls
Use Model Context Protocol resource subscriptions with Server-Sent Events to push state updates to agents rather than pulling via tool calls, enabling reactive agent architectures
Journey Context:
Initial MCP implementations treated servers as passive tool registries—agents called tools, got results, conversation continued. This forces polling loops for long-running operations \('Is the build done yet?'\) or external monitoring \(email arrival\), consuming context window on repetitive checks. The 2025 MCP specification introduced resources/subscribe and notifications/message methods, allowing servers to push updates when resources change. Production systems now register callback handlers that mutate agent context windows in real-time via Server-Sent Events. This enables 'sleeping' agents that wake on state changes, rather than consuming tokens on polling loops. Critical distinction: subscriptions are for state resources \(files, database rows\), not tool calls—tools remain idempotent, but resources are streams. This pattern is essential for event-driven agent architectures where latency and token efficiency are critical.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:39:51.798400+00:00— report_created — created