Skip to main content
Glama

Get trace

get_trace_with_org_key
Read-onlyIdempotent

Read a retained trace or span using your own organization-scoped personal key. Omit project_uuid to read only traces without a project; pass it for that project. Current trace permissions apply. 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>"
    },
    "name": "get_trace_with_org_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key ID in this project; its secret is never returned by this operation
trace_idYesA trace UUID, or the span UUID returned in call_model meta.trace_uuid; either is resolved within the selected project.
project_uuidNoOptional project target. Omit to read only traces without a project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description is not obligated to cover safety. It adds genuinely new context: the auth requirement ('Requires runtime:read') and the note that 'Current trace permissions apply'. It stops short of describing the returned payload or error behavior.

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?

Three compact sentences, front-loaded with the core action before the scoping rule and the permission prerequisite. Mild redundancy with the schema's project_uuid description is the only waste.

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?

For a read-only, three-parameter lookup with no output schema, the description covers action, key scope, permission prerequisite and project targeting. The main remaining gap is guidance against the sibling get_trace, which matters here because both tools read traces.

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 in structured form. The description's project_uuid guidance largely restates the schema's own parameter description, adding no new syntax or format detail. Baseline 3 applies.

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 a retained trace or span') plus the key context ('your own organization-scoped personal key'), which implicitly separates it from the sibling get_trace. It never names get_trace or any alternative explicitly, so the differentiation is inferential rather than stated.

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

Usage Guidelines3/5

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

Provides a clear scoping rule ('Omit project_uuid to read only traces without a project; pass it for that project') and a prerequisite ('Requires runtime:read'), but offers no guidance on when to choose this tool over get_trace or the org-key variants. Usage context is implied rather than spelled out.

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