Skip to main content
Glama

List sessions

list_sessions
Read-onlyIdempotent

Retrieve and filter an agent's sessions by state, type, trigger, or creator with cursor-based pagination and free-text search to review execution history.

Instructions

List sessions for an agent with cursor-based pagination, optional filtering, and search. Read operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoFilter sessions by type (e.g. `api`, `web`, `slack`).
stateNoFilter sessions by state.
cursorNoCursor for the next page of results. Use the `next_cursor` value from a previous response.
searchNoFree-text search query to filter sessions by name or content. Also accepted as `search_query`.
accountNoNamed private Gumloop account; selects private credentials and user/team identity.
agent_idYesID of the agent whose sessions to list. Also accepts the reserved aliases `gumball` and `analytics`.
page_sizeNoNumber of sessions to return per page. Defaults to `20`, maximum `100`.
sort_orderNoSort order for the results (e.g. `newest` or `oldest`).
trigger_idNoFilter sessions by the trigger that initiated them.
creator_user_idNoFilter sessions by the user who created them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so "Read operation" adds nothing. The description does contribute cursor-based pagination behavior, which the annotations do not cover, so partial credit above baseline.

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?

Two short sentences, capability summary front-loaded before the redundant "Read operation" tag. Minimal waste, though the trailing sentence duplicates annotation content and earns nothing.

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?

For a 10-parameter read-only list tool whose schema fully documents inputs and whose annotations carry the safety profile, the description covers the essentials. It omits any hint about output shape (result fields, cursor location), which is a minor gap rather than a blocking one.

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%, so all ten parameters are already documented in the schema (enum states, cursor semantics, page_size bounds, aliases). The description only summarizes categories of filtering generically, adding no syntax or constraint detail beyond the schema.

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?

States a specific verb and resource ("List sessions for an agent") plus the key capabilities (pagination, filtering, search). It does not explicitly differentiate from siblings like retrieve_session or list_queued_messages, so it stays short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Scoping the list to a specific agent implies the usage context, and mentioning optional filtering/search hints at the tool's role, but there is no explicit when-to-use vs retrieve_session or when-not guidance.

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