Skip to main content
Glama
respanai

Respan MCP Server

Official
by respanai

list_traces

List and filter workflow execution traces via server-side filtering, sorting, and pagination. Target traces by error count, cost, customer, or metadata without fetching all data.

Instructions

List and filter traces with sorting, pagination, and server-side filtering.

A trace represents a complete workflow execution containing multiple spans (individual operations).

IMPORTANT: Use the "filters" parameter to filter results server-side. Do NOT fetch all traces and filter client-side.

PARAMETERS:

  • page_size: Results per page (1-20, default 10)

  • page: Page number (default 1)

  • sort_by: Sort field with optional - prefix for descending (e.g. "-total_cost", "duration")

  • start_time / end_time: ISO 8601 time range (default: last 1 hour)

  • environment: Filter by environment (e.g. "production", "test")

  • filters: Array of server-side filter objects. Each filter has: field (string), operator (string), value (array). See below.

FILTERS - supported operators: "" (exact match), "not", "lt", "lte", "gt", "gte", "icontains", "startswith", "endswith", "in", "isnull"

FILTERS - supported fields: trace_unique_id, customer_identifier, environment, span_count, llm_call_count, error_count, total_cost, total_tokens, total_prompt_tokens, total_completion_tokens, duration, workflow_name (span_workflow_name), metadata__

EXAMPLE - find traces with errors: { "filters": [{"field": "error_count", "operator": "gt", "value": [0]}], "sort_by": "-total_cost" }

EXAMPLE - find traces for a specific customer: { "filters": [ {"field": "customer_identifier", "operator": "", "value": ["user@example.com"]}, {"field": "total_cost", "operator": "gte", "value": [0.01]} ] }

RESPONSE FIELDS:

  • trace_unique_id: Unique identifier

  • start_time, end_time: Trace time range

  • duration: Total duration in seconds

  • span_count: Number of spans

  • llm_call_count: Number of LLM API calls

  • total_prompt_tokens, total_completion_tokens, total_tokens: Token usage

  • total_cost: Cost in USD

  • error_count: Number of errors

  • input, output: Root span's input/output

  • metadata: Custom metadata

  • customer_identifier: User identifier

  • environment: Environment name

  • trace_group_identifier: Workflow group

  • name: Root span name

  • model: Primary model used

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
filtersNoArray of server-side filters. Each filter has field, operator, and value. Example: [{"field": "error_count", "operator": "gt", "value": [0]}]
sort_byNoSort field. Prefix with - for descending order.
end_timeNoEnd time in ISO 8601 format. Default: current time
page_sizeNoResults per page (1-20, default 10)
start_timeNoStart time in ISO 8601 format. Default: 1 hour ago
environmentNoFilter by environment (e.g., 'production', 'test')
Behavior4/5

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

With no annotations, the description carries the full burden. It clearly implies a read-only operation ('list and filter') and provides extensive behavioral details: supported filter operators, default time range (last 1 hour), page size limits (1-20), and a full list of response fields. This goes beyond a simple mutation tool and discloses what the agent can expect from the tool's behavior, though it does not mention side effects or authorization requirements (which are not applicable for a read-only list).

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?

The description is well-structured with clear sections (purpose, parameters, filters, examples, response fields) and an 'IMPORTANT' callout. However, it is fairly long (over 600 words). While every section adds value, some wording could be tightened, distinguishing it from a top-tier conciseness score but still being well-organized and front-loaded with the core purpose.

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 the tool's complexity (7 parameters, a nested filters array, no output schema, no annotations), the description thoroughly compensates. It defines what a trace is, explains all filter operators and fields, gives examples, and enumerates response fields. It provides everything an agent needs to correctly invoke the tool, making it highly complete for a listing/filtering operation.

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?

The input schema already covers all parameters (100% coverage), so baseline is 3. The description adds significant value beyond the schema: it explains the structure of the filters array, lists supported operators and fields, provides two concrete examples, and includes response fields. This enhances understanding of how to construct and use parameters, exceeding a mere restatement of schema descriptions.

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 tool's purpose: 'List and filter traces with sorting, pagination, and server-side filtering.' It specifies the resource (traces) and the actions (list, filter), distinguishing it from sibling tools like get_trace_tree (which retrieves a single trace tree) and get_spans_summary (which summarizes 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?

Provides explicit guidance: 'IMPORTANT: Use the "filters" parameter to filter results server-side. Do NOT fetch all traces and filter client-side.' This tells the agent when to use the filter parameter and warns against an anti-pattern. It also explains the trace concept and default time range, but does not explicitly contrast with alternative list tools, though the tool name and context imply its primary use case.

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/respanai/respan-mcp'

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