agent-loop-detector

v1.0.0
io.github.lazymac2x/agent-loop-detector Checked 15 hours ago Published 6 months ago

Cloudflare 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.

ParameterTypeDescription
trace *arrayOrdered array of agent steps (role, tool, input, output, tokens, model)
pricingobject

detect_loops

Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.

ParameterTypeDescription
trace *array

breakdown_cost

Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.

ParameterTypeDescription
trace *array
pricingobject