Skip to main content
Glama

ai_agent_trace

Read-only

AI agent run debugger — Debug an AI agent run. Paste the trace (JSON steps, OpenAI-style messages with tool_calls and tool replies, or ReAct Action/Observation text) and get an offline verdict HEALTHY, REVIEW, LOOPING or FAILING with metrics (steps, tool calls, error rate, identical repeated calls, same-tool streaks, empty outputs, token estimate), plus a Workers AI diagnosis: summary, goal met, root cause, failed step, concrete fixes and system-prompt changes. Optional: goal=. Nothing stored. Price: $0.008 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trace": "<trace>"
    },
    "name": "ai_agent_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
traceYese.g. Action: search Action Input: paris weather Observation: Error: 429 rate limit Action: search Action Input: paris weather Observation: Error: 429 rate limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations by disclosing cost and payment rail ($0.008 USDC on Base via x402), a data-handling guarantee ('Nothing stored'), and that the analysis is offline. It also enumerates the exact output artifacts (metrics list plus diagnosis fields: root cause, failed step, fixes, system-prompt changes), so an agent knows what it gets back before paying.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but efficient: input formats, verdict classes, metric list, and pricing are all front-loaded in a single paragraph with no filler sentences. The opening 'AI agent run debugger — Debug an AI agent run' mildly restates the title, costing a little tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing returns and does so thoroughly (verdict taxonomy, metric names, diagnosis fields), plus cost and privacy behavior. What is missing is any note on response format, latency, or size limits for very long traces, which matters for a tool whose single input is a free-form blob.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema's own example already shows a ReAct trace, so the baseline is 3. The description adds useful format breadth beyond that single example, but it also references an 'Optional: goal=' parameter that does not exist in the input schema, which is a minor source of confusion rather than added clarity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Debug an AI agent run') and immediately names the input shape and the four possible verdicts (HEALTHY, REVIEW, LOOPING, FAILING). This is clearly distinguishable from the generic ai_* generation siblings, which produce content rather than diagnose traces.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use context by enumerating the accepted input formats (JSON steps, OpenAI-style messages with tool_calls, ReAct Action/Observation text) and noting 'Optional: goal='. It does not state when-not to use it or point to an alternative tool, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources