Skip to main content
Glama

list_sessions

Lists a pipeline's judgeable Sessions, newest activity first, filtered by origin, deployment, version, revision, or time range. Use returned session IDs to identify Sessions for scoring runs.

Instructions

Lists a pipeline's Sessions that a scoring run can judge, newest last activity first.

A Session is the turns that share a search_session_id; a run without one is a single-turn Session named by its query_id. Only Sessions whose every turn still has its trace are listed. session_id is the id a scoring run takes. To find Sessions that went wrong (a failed turn, negative feedback), use list_pipeline_traces with an OData filter instead and take each row's search_session_id, or its query_id when that is empty. :param pipeline_name: Name of the pipeline. :param origin: Only Sessions whose every turn came from a Service, the pipeline's own API, or the Playground. :param deployment_id: Only Sessions whose every turn this Service served. :param pipeline_version_id: Only Sessions whose every turn this pipeline version served. :param revision_id: Only Sessions whose every turn this Service revision served. Exact where a version is not: one version can be pushed to a Service more than once. :param since: ISO-8601 time; only Sessions last active at or after it. :param until: ISO-8601 time; only Sessions last active at or before it. :param limit: Most Sessions per page (at most 200). A page can hold fewer and still have a next. :param cursor: The next value of the previous page. :returns: One page of Sessions, or an error message.

The output is automatically stored and can be referenced in other functions. Returns a formatted preview with an object ID (e.g., @obj_123). Use the object store tools in combination with the object ID to view nested properties of the object. Use the returned object ID to pass this result to other functions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pipeline_name": "<pipeline_name>"
    },
    "name": "list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
sinceNo
untilNo
cursorNo
originNo
revision_idNo
deployment_idNo
pipeline_nameYes
pipeline_version_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.44
    • addedInput schema / properties / revision_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Revision Id"
      +}
  2. Addedv0.1.29

TDQS

A4.7/5.0
Behavior4/5

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

No annotations at all, so the description carries the full burden, and it discloses several non-obvious behaviors: the result is filtered to Sessions whose every turn still has its trace, paging is cursor-based and a short page can still carry a next, and the output is auto-stored as an object (@obj_123) that must be retrieved via object-store tools. It does not discuss permissions, rate limits, or what 'error message' looks like, which keeps it below 5.

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?

Front-loaded with the concept and the key inclusion rule, then a compact param list where every line adds information. The closing four sentences about the object store are somewhat boilerplate and partly restate the same idea (use the object id to explore), which is the only real slack.

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?

There is no output schema, so the description supplies the return contract itself (one page of Sessions or an error message) and explains the object-store handoff needed to read nested properties. For a 9-parameter, paged listing tool with a domain-specific inclusion rule, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it documents all nine parameters with genuine meaning beyond types: per-parameter constraints are 'every turn' constraints (origin, deployment_id, pipeline_version_id, revision_id), revision_id is explained as exact where a version is not because one version can be redeployed, since/until are defined as last-activity bounds, limit is capped at 200, and cursor is the previous page's next value.

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?

States a specific verb and resource (lists a pipeline's Sessions) plus a scope qualifier (only Sessions a scoring run can judge, newest-last-activity-first ordering). It defines what a Session even is (turns sharing a search_session_id, or a single-turn Session keyed by query_id) and names a sibling tool for a different purpose, so an agent can distinguish it from list_pipeline_traces without opening either 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?

Explicitly routes the agent: use this to enumerate judgeable Sessions, but to find Sessions that went wrong (failed turn, negative feedback) use list_pipeline_traces with an OData filter and take search_session_id or query_id from each row. It even distinguishes the two id fields, which is the exact confusion an agent would have.

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

Deploy Server

Other Tools