Skip to main content
Glama

List spans

list_spans
Read-onlyIdempotent

List archived conversation spans by run or browse all runs to locate stored context for review.

Instructions

Browse spans. Use search_spans for known text, read_span to open one. Local files, no network. Returns <run>: <n> spans, or a line per span given run.

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_spans"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMax, e.g. 10. Capped at 100.
runNoRun, e.g. 20261015-120000. Omit to list runs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • changedInput schema / properties / max / description
      Previous value: -"Max rows, e.g. 10. Clamped to 1-100."New value: +"Max, e.g. 10. Capped at 100."
    • changedInput schema / properties / run / description
      Previous value: -"Span folder, e.g. 20261015-120000. Omit to list runs."New value: +"Run, e.g. 20261015-120000. Omit to list runs."
  2. Addedv0.11.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so safety is covered; the description still adds valuable context by stating data is local files with no network and by giving the exact return shape. Return format matters because there is no output schema, though pagination/cap behavior beyond the schema's 100 maximum is not addressed.

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?

Three short sentences, front-loaded with purpose, then alternatives, then output/behavior. No filler, nothing repeated unnecessarily.

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 two-optional-parameter read-only listing tool with no output schema, the description covers purpose, alternatives, I/O locality, and both return shapes. An agent has everything needed to call it and interpret the result.

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 coverage is 100% and the schema already states "Omit to list runs" and the cap of 100, so the description largely repeats it. The added meaning is indirect: it ties the presence of `run` to the change in output format, which is useful but thin.

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?

"Browse spans" names the resource and a browse-style verb, and the following sentences distinguish it from search_spans and read_span. It is clear what the tool enumerates, though "browse" alone is slightly softer than an explicit "list spans" statement.

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?

Explicitly routes the agent: use search_spans for known text, read_span to open one, otherwise list. Both alternatives are named with the condition that selects each, leaving nothing to inference.

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