Skip to main content
Glama

Get one distributed trace

get_trace
Read-only

Every span of one trace (app → backend → dependencies) as a tree: names, services, start offsets, durations, HTTP status and errors, plus the error events linked to the trace. Take the trace_id from an occurrence in get_error_issue. Use it to see where the time went or what failed first.

Input Schema

NameRequiredDescriptionDefault
trace_idYes32-character hex W3C trace id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value by describing the return shape (a span tree with named fields) and the attached error events, which the annotations cannot convey. It stops short of mentioning limits, truncation on very large traces, or span-count caps, so not a 5.

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

Conciseness5/5

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

Two sentences, both front-loaded: the first defines the payload, the second gives id acquisition and intent. No filler, no repetition of the title, and the dense field enumeration is warranted for a tool with no output schema.

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?

With no output schema, the description carries the burden of explaining return values and does so thoroughly (tree structure, span fields, error events). Combined with 100% schema coverage on the only input parameter and full annotation coverage of the safety profile, an agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is 100% and already documents the single trace_id parameter as a 32-character hex W3C trace id, so the baseline is 3. The description adds provenance beyond the schema by saying the id should be taken from a get_error_issue occurrence, which changes how the agent acquires the value.

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?

Names a specific verb+resource ('get' a 'distributed trace') and enumerates the returned content: every span as a tree with names, services, start offsets, durations, HTTP status, errors, plus linked error events. This is clearly distinguishable from sibling get_error_issue, which is referenced as the id source rather than a substitute.

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

Usage Guidelines5/5

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

Explicitly tells the agent where the required argument comes from ('Take the trace_id from an occurrence in get_error_issue') and states the two use cases ('see where the time went or what failed first'). That is when-to-use guidance plus a concrete routing rule to the sibling tool, not just implied context.

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