Skip to main content
Glama

Get trace

get_trace
Read-onlyIdempotent

Read an existing trace using a project key. Accepts a trace UUID or the span UUID returned in call_model meta.trace_uuid, resolved within the selected project. Traces exist only when a positive retention policy was enabled for the call; otherwise 404 is expected. Requires runtime:read.

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": {
      "id": "<id>",
      "trace_id": "<trace_id>",
      "uuid": "<uuid>"
    },
    "name": "get_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key ID in this project; its secret is never returned by this operation
uuidYesProject UUID in the authorized organization
trace_idYesA trace UUID, or the span UUID returned in call_model meta.trace_uuid; either is resolved within the selected project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the retention-policy prerequisite, the expected 404 condition, and the authorization scope. These are real operational details an agent cannot get from the annotations.

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?

Four short sentences, purpose front-loaded, then input forms, then existence/error caveat, then auth requirement. Nothing is redundant and no sentence could be dropped without losing information.

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?

Covers inputs, prerequisites, and error behavior for a simple three-parameter read tool. With no output schema, it does not indicate what a returned trace contains (spans, timing, structure), which is the one remaining gap.

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 description coverage is 100%, so all three parameters are already documented, including the dual trace_id/span-UUID semantics. The description restates that resolution behavior without adding format, constraint, or failure detail beyond the schema.

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

Purpose4/5

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

States a specific verb and resource ('Read an existing trace') and qualifies it with the key type ('using a project key'), which implicitly separates it from the sibling get_trace_with_org_key. It never names that sibling explicitly, so the differentiation requires a small inference.

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 acceptance criteria: a trace UUID or the span UUID from call_model meta.trace_uuid, and warns that 404 is expected when no positive retention policy was enabled. It also states the required scope (runtime:read). It stops short of explicitly saying when to prefer this over get_trace_with_org_key.

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