agent-loop-detector
v1.0.0Cloudflare Workers MCP server: agent-loop-detector
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_trace
Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.
| Parameter | Type | Description |
|---|---|---|
trace * | array | Ordered array of agent steps (role, tool, input, output, tokens, model) |
pricing | object |
detect_loops
Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.
| Parameter | Type | Description |
|---|---|---|
trace * | array |
breakdown_cost
Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.
| Parameter | Type | Description |
|---|---|---|
trace * | array | |
pricing | object |