agent-loop-detector
Server Details
Cloudflare Workers MCP server: agent-loop-detector
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- lazymac2x/agent-loop-detector-api
- GitHub Stars
- 0
Available Tools
3 toolsanalyze_traceAInspect
Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.
| Name | Required | Description | Default |
|---|---|---|---|
| trace | Yes | Ordered array of agent steps (role, tool, input, output, tokens, model) | |
| pricing | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the transparency burden. It does disclose the main analytical behaviors (loop detection, cost breakdown, stuck-state classification, fix recommendations), but it does not explicitly state that the tool is read-only, describe any side effects, or mention permissions/rate limits. This leaves some behavioral aspects implicit.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that front-loads the core purpose with 'Full diagnostic' and immediately lists the specific diagnostic components. Every phrase contributes meaning, with no filler or repetition, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
This is a complex tool with multiple diagnostic outputs and no output schema, yet the description does not explain the return format, how fix recommendations are presented, or the expected shape of the pricing input. Given the absence of annotations and output schema, the one-line description is insufficient for an agent to fully anticipate the tool's behavior and outputs.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The trace parameter is described in the schema, but the pricing parameter has no schema description and the tool description only indirectly references it via 'cost breakdown.' The description does not compensate for the 50% schema coverage gap by explaining the pricing object's meaning or optionality, leaving its semantics unclear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with 'Full diagnostic' and enumerates specific capabilities: loop detection, cost breakdown, stuck-state classification, and fix recommendations. This clearly identifies the resource (AI agent trace) and scope, and distinguishes it from the focused siblings breakdown_cost and detect_loops by covering both analyses plus additional diagnostics.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'Full diagnostic' implies use when a comprehensive analysis is needed, but the description does not explicitly state when to prefer this tool over the siblings or when not to use it. No alternatives are named, so guidance is only implied rather than made explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
breakdown_costBInspect
Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.
| Name | Required | Description | Default |
|---|---|---|---|
| trace | Yes | ||
| pricing | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It only restates the pricing override feature already visible in the schema and does not disclose behaviors like input validation, side effects, or return structure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two short sentences with no filler or redundant content. Every word adds meaning, and the key information is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and no annotations, the description should define expected return values and input constraints. It only vaguely says 'per-model token usage and USD cost' and does not describe the trace format or output breakdown, which is inadequate for a tool with nested objects.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It mentions 'custom pricing overrides' and 'per-model' but does not explain the meaning of pricing.in/out fields or the required structure of trace entries.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Calculate' and identifies the resource as 'per-model token usage and USD cost from an agent trace.' This clearly distinguishes the tool from sibling tools like analyze_trace and detect_loops.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies it should be used when a cost breakdown is needed, but it does not explicitly state when to prefer this over analyze_trace or detect_loops, nor does it mention any alternatives or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
detect_loopsBInspect
Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.
| Name | Required | Description | Default |
|---|---|---|---|
| trace | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. However, it only states what patterns are detected and does not disclose return format, side effects, limitations, or whether the tool is read-only. The behavioral profile is under-specified.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, direct sentence with no filler or redundancies. It is concise and front-loaded, clearly stating the tool's core function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations, a minimal schema, and no output schema, the description is not complete enough. It fails to explain what the tool returns, the expected input format, or any behavioral nuances, making it difficult for an agent to invoke it with confidence.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, and the description only refers to 'agent trace' without explaining the structure of the trace array or the expected fields of its objects. This leaves the agent with insufficient information to construct the parameter correctly.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Detect') and clearly defines the resource: exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace. This distinguishes it from siblings like analyze_trace and breakdown_cost, which have broader or different scopes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit guidance on when to use detect_loops over analyze_trace or breakdown_cost. The usage is implied by the name and description, but no alternatives, exclusions, or contextual triggers are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
3 tool updates
- Added
analyze_trace - Added
breakdown_cost - Added
detect_loops
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity — fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user, then choose Claim with GitHub. An organization namespace such asio.github.acme/serveralso needs that organization to have installed the Glama AI GitHub App and approved its permissions, because GitHub discloses organization membership only to apps it has installed. Use HTTP or DNS when it has not.HTTP challenge — works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge — works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
Cloudflare Workers MCP server: agent-workflow-engine
Cloudflare Workers MCP server: agent-trace-auditor
Cloudflare Workers MCP server: agent-memory
Cloudflare Workers MCP server: ai-agent-scratchpad
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceDeployable stateless remote MCP server on Cloudflare Workers without auth, with support for registering custom tools and connecting to MCP clients.12MIT
- FlicenseNot gradedqualityCmaintenanceDeployable MCP server on Cloudflare Workers without authentication, enabling AI agents to use custom tools via SSE endpoint. Supports connection to Cloudflare AI Playground and local clients like Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling integration with AI clients like Claude Desktop and Cloudflare AI Playground for tool execution.-
- AlicenseNot gradedqualityDmaintenanceLightweight MCP server that allows agents to interface with the Neon REST API, deployed on Cloudflare Workers.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.
TDQS
The tools have clear granularity distinctions: analyze_trace is the comprehensive diagnostic, while detect_loops and breakdown_cost target specific aspects. However, analyze_trace overlaps with both specialized tools, which could cause an agent to hesitate between calling it or the more specific one. The descriptions mitigate this by stating the scope explicitly.
Three tools use snake_case, but while analyze_trace and detect_loops follow a verb_noun pattern, breakdown_cost is a compound noun phrase, deviating from the verb-first style. The naming is otherwise consistent and readable.
With only three tools, the server stays focused on its stated purpose of trace analysis. Each tool serves a distinct role, and the count feels appropriate for a specialized utility.
The server covers loop detection, cost breakdown, and comprehensive diagnostics including stuck-state and recommendations. No obvious gaps exist for the domain, as the full diagnostic subsumes the specialized functions.