Skip to main content
Glama

get_ai_trace

Obtain a complete span waterfall for an AI trace with timing, parent relationships, and attributes like model, cache hit/miss, and similarity scores. Find trace IDs with list_ai_traces.

Instructions

Get the full span waterfall for one AI trace: every span with timing, parent relationships, and attributes (model, cache hit/miss, similarity scores). Use list_ai_traces to find trace IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
traceIdYesTrace ID from list_ai_traces
Behavior4/5

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

With no annotations, the description describes the output structure in detail (spans, timing, parent relationships, attributes). It is transparent about what the tool returns but does not mention additional traits like idempotency or rate limits, which are less critical for a read-only operation.

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, no filler. The first sentence states purpose and output; the second provides usage context. All content earns its place.

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?

Given no output schema, the description sufficiently explains return values (spans with timing, parent relationships, attributes). The single parameter is fully described. The tool is simple, and the description covers all necessary context.

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?

The schema has 100% coverage for a single parameter, so baseline is 3. The description adds context by linking traceId to list_ai_traces, but the schema description already states 'Trace ID from list_ai_traces', so minimal added meaning.

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?

The description clearly states the verb 'Get' and the resource 'full span waterfall for one AI trace', specifying what is returned (spans with timing, parent relationships, attributes). It distinguishes from sibling tools like list_ai_traces and correlate_ai_trace by focusing on a single trace's detailed spans.

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 guides the user to 'Use list_ai_traces to find trace IDs', setting a clear prerequisite. However, it does not provide explicit when-to-use vs alternatives beyond this hint, which is acceptable for a straightforward retrieval tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BetterDB-inc/monitor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server