agent-loop-detector

Cloudflare Workers MCP server: agent-loop-detector

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
83%
Naming quality
87%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~256Tokens (tool definitions)
~612 BTypical response size
Minimal attention impact (0.20% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "agent-loop-detector": {
      "url": "https://api.lazy-mac.com/agent-loop-detector/mcp"
    }
  }
}

Remote endpoints

https://api.lazy-mac.com/agent-loop-detector/mcpstreamable-http

What it can do

Tool inventory

Tools (3)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢analyze_trace(trace, pricing)

Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.

Input Schema

{
  "type": "object",
  "properties": {
    "trace": {
      "type": "array",
      "description": "Ordered array of agent steps (role, tool, input, output, tokens, model)",
      "items": {
        "type": "object"
      }
    },
    "pricing": {
      "type": "object",
      "nullable": true,
      "properties": {
        "in": {
          "type": "number"
        },
        "out": {
          "type": "number"
        }
      }
    }
  },
  "required": [
    "trace"
  ]
}
⚪detect_loops(trace)

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

Input Schema

{
  "type": "object",
  "properties": {
    "trace": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "trace"
  ]
}
🟢breakdown_cost(trace, pricing)

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

Input Schema

{
  "type": "object",
  "properties": {
    "trace": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "pricing": {
      "type": "object",
      "nullable": true,
      "properties": {
        "in": {
          "type": "number"
        },
        "out": {
          "type": "number"
        }
      }
    }
  },
  "required": [
    "trace"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded3 tools
verifiedversion not recorded3 tools