Skip to main content
Glama

get_trace

Get all logs for a specific request trace by traceId. Shows the full request flow through your Worker — useful for debugging 'find the request that caused this traceId'. Returns logs in chronological order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (1-500, default 100)
trace_idYesThe traceId to look up

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool returns logs in chronological order, which is a behavioral trait, and the verb 'Get' implies a read-only operation with no side effects. However, it does not mention things like authentication requirements, rate limits, or whether the traceId must be unique. For a retrieval tool, the disclosure is adequate but not rich enough to warrant a higher score.

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?

The description is two concise sentences. The first states the core purpose with a specific action and target, and the second adds a valuable use case and a key output behavior. Every clause earns its place with zero fluff, and the most important information is front-loaded.

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?

The tool is simple (2 parameters, one optional) and has no output schema. The description explains what it returns (logs in chronological order) and why it is useful. It does not detail the structure of the logs (fields, formatting), but given the narrow scope and the presence of sibling tools for broader queries, this is a minor gap. For a developer-agent, this is enough to call it correctly.

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% — both trace_id and limit have descriptive text in the schema, so the baseline is 3. The description adds no additional parameter semantics beyond restating 'by traceId' and confirming the chronological order of results, which does not clarify parameter formats or dependencies beyond what the schema already provides.

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 states a specific verb ('Get all logs'), a specific resource ('a specific request trace by traceId'), and adds distinctive details ('full request flow through your Worker', 'in chronological order'). It clearly separates this from the broad query_logs and other siblings, leaving no ambiguity about what this tool retrieves.

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 gives a clear usage context: 'useful for debugging find the request that caused this traceId'. This implies when to use it (when you have a traceId and want the full flow), but it does not explicitly name alternatives or state when not to use it. The context is strong enough to guide an agent toward this tool over siblings like query_logs or get_recent_errors.

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