Skip to main content
Glama

list_sessions

Read-onlyIdempotent

List recent working sessions from the workspace, paginated with cursors, to discover what the human was working on when no session_id is available.

Instructions

List sessions in the workspace the configured API key can read, newest first, with cursor pagination. Read-only, no side effects. Returns {sessions: [{session_id, title, summary, captured_at, ai_tags}], next_cursor}. Pass any session_id to the resume tool for the full context; pass next_cursor back as cursor to fetch the next page (null means no more pages). Use this to discover what the human was working on when you do not already have a session_id — if you have one, call resume directly. Sandbox keys see the demo workspace. Errors: a malformed cursor or since value returns an error stating the expected format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of sessions to return, between 1 and 50. Values outside the range are clamped rather than rejected.
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit to start from the newest session. Malformed cursors are rejected with an error.
sinceNoOnly return sessions captured at or after this ISO 8601 timestamp, e.g. '2026-06-01T00:00:00Z'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionsYesSessions, newest first.
next_cursorYesPass back as `cursor` to fetch the next page; null when there are no more pages.
Behavior5/5

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

The description adds significant behavioral context beyond annotations: read-only and no side effects are stated, pagination mechanics are detailed, return shape is given, error handling for malformed cursors or since values is explained, and sandbox key behavior is noted. Annotations already indicate read-only and idempotent, so this adds more value.

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 extremely concise, using three sentences to convey purpose, usage, return data, and errors. Every sentence adds value, and the most critical information (purpose and when to use) is front-loaded.

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 that annotations cover safety (read-only, idempotent) and the input schema is fully described, the description adds all necessary behavioral and usage context. Return type is described, error conditions are noted, and the relationship to sibling tool is clarified. The tool is fully specified.

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 100%, with descriptions for limit, cursor, and since. The description adds value by explaining how to use the cursor (pass next_cursor back as 'cursor') and that since expects ISO 8601 format. This goes beyond the schema's basic 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 lists sessions in the workspace, sorted newest first, with cursor pagination. It distinguishes itself from the sibling tool 'resume' by specifying that this tool is for discovering sessions when no session_id is known, while resume is for directly accessing a known session.

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 states when to use this tool (when you do not have a session_id) and when to use the alternative (resume if you have one). Also provides clear instructions on pagination: pass next_cursor back as 'cursor' and that null means no more pages.

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/FutureEnterprises/unihodl'

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