Skip to main content
Glama

agp_trace_inspect

Read-onlyIdempotent

Inspect complete multi-hop distributed trace spans and messages for a trace ID, or omit the ID to list recent traces.

Instructions

Inspect the full multi-hop distributed trace spans and messages for a trace_id, OR omit trace_id to list recent traces.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agp_trace_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
trace_idNoTrace ID to inspect (omit to list recent traces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already carry the safety profile (readOnly, idempotent, non-destructive, closed-world) and the description adds the dual-mode behavior, which is useful. It does not disclose what the limit actually caps, expected payload size for a 'full multi-hop' trace, or what an unknown or expired trace_id yields — meaningful context for a read tool whose output could be large.

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?

A single front-loaded sentence with the primary case first and the alternative mode second; zero filler. It does restate the omit-trace_id rule that the schema already documents, which is slight redundancy.

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

Completeness5/5

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

There is no output schema, but the description names the return content ('full multi-hop distributed trace spans and messages'), which is the key thing an agent needs before calling. For a two-parameter read tool with full annotations, the only remaining gap is limit semantics, which is captured above.

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

Parameters2/5

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

With only 50% schema description coverage, the description must compensate, and it does not: `limit` has no schema description and no explanation here, leaving it ambiguous whether 25 caps the number of recent traces in list mode, spans per trace, or both. The trace_id behavior it explains is already stated in the schema's own parameter description, so net added meaning is minimal.

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?

Specific verb ('Inspect') plus a concretely scoped resource ('full multi-hop distributed trace spans and messages'), with both operating modes named. No sibling in the catalog touches traces, so there is no ambiguity to resolve.

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?

The description explicitly states both entry conditions: supply a trace_id to inspect a specific trace, omit it to list recent traces. It gives no exclusions or failure conditions (e.g., unknown trace_id behavior, empty result handling), so it stops 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.