Re:Ask HN: How do you prevent MCP agents from looping in pro...
by algis-hn on Wednesday March 11, 2026 @12:31PM
(#47337751)
Hard caps treat the symptom. If agents call tools they shouldn't need, the root cause is tool set visibility - 80 tools in context means the model tries irrelevant ones, fails, and retries. Pre-filtering to a semantically relevant subset per request (BM25 on the incoming query works well) eliminates most retry loops before they start; the cap stays as backstop for genuinely pathological cases.
[ Parent
| on HN ]
There are no comments on this comment yet.