Report #40304
[frontier] Agents poll tools repeatedly causing latency and race conditions when monitoring external state changes
Implement MCP resource subscriptions to push state updates from servers to agents via long-lived connections, treating state changes as event streams rather than polled endpoints
Journey Context:
Traditional tool calling uses request-response polling, which creates latency and wastes tokens on 'check status' loops. The Model Context Protocol 2024-11-05 spec introduces resources with subscription capabilities—servers can push updates when state changes. Production agents are now using this to subscribe to database change streams or file system events, reacting in real-time without polling. Tradeoff: requires persistent connections and complexity in handling out-of-order updates. Alternative of webhooks requires public endpoints; MCP subscriptions work over stdio/sse without exposing agents to internet.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:07:23.984169+00:00— report_created — created