Skip to main content
Glama

List retained trace summaries

list_traces
Read-onlyIdempotent

List retained trace metadata in projects you can access in the connected organization. Omit project_uuid to include eligible projects and unassigned organization traces. All arguments are optional; start with {"limit":5}. Defaults to the last seven days, at most 31 days per request, newest trace IDs first. The window uses the earliest retained span in the trace's project scope. Returns names, project/trace UUIDs, timestamps, duration, generation count, error flag and scoped trace cost in USD. Follow meta.next_cursor with the same filters and returned from/to values. Use get_trace for retained detail and get_usage for usage across all calls, including zero-retention calls. Absence of traces does not mean no usage. Requires runtime:read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_traces"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoExclusive RFC3339 end time. Defaults to now. Reuse the returned from/to values while paging.
fromNoInclusive RFC3339 start time. Defaults to seven days before to. The window must be positive and at most 31 days.
limitNoPage size, default 20, maximum 100.
cursorNoOpaque meta.next_cursor from the previous page; omit on the first page.
statusNoOptional error or success filter based on retained spans in the trace's project scope.
project_uuidNoOptional project UUID you can access. Omit to include eligible projects and unassigned organization traces.

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, the description discloses the default seven-day window, the 31-day maximum, ordering by newest trace IDs, and the earliest-retained-span window semantics. It also states pagination behavior, identifies returned cost data, and specifies the runtime:read requirement. These details materially improve correct invocation.

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 front-loaded with purpose and scope, then moves efficiently through defaults, return fields, pagination, alternatives, caveats, and auth. It is dense but every sentence contributes operational guidance. There is no filler or repetition that obscures the tool's role.

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?

For a six-parameter, fully optional listing tool with an output schema and safety annotations, the description covers the remaining operational context an agent needs. It addresses auth, date-window limits, pagination, return expectations, alternatives, and the zero-retention caveat. Nothing essential appears missing.

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 already 100%, so the schema documents the parameters well. The description still adds useful cross-parameter meaning: omitting project_uuid includes eligible projects and unassigned organization traces, and paging should reuse the same filters and returned from/to values. It does not add much per-parameter detail beyond that because the schema already covers the rest.

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 and resource: it lists retained trace metadata within accessible projects in the connected organization. It also distinguishes this listing operation from sibling detail and usage tools by naming get_trace and get_usage. An agent can identify its scope without opening another schema.

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?

It explains when to omit project_uuid, how to start with a small page, how to page with meta.next_cursor, and when to use get_trace or get_usage instead. It also warns that absence of traces does not mean no usage, which prevents a common misinterpretation. The alternatives and conditions are explicit.

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