Skip to main content
Glama

sessions

List a memory's conversation records oldest first with metadata, then filter by repo or date to retrieve IDs for follow-up tools.

Instructions

Enumerate a memory's sessions, oldest first. Metadata only — when it started and when its last indexed turn was, harness, repo, turn count, id, and the prompt each opened with, which is the ask a session started from, not what it became. Filter by repo or date to get the session ids the other verbs take; a whole memory can run to thousands of rows.

Input Schema

NameRequiredDescriptionDefault
repoNoKeep only sessions whose checkout resolved to this repo, as `owner/name`
limitNoRows to list, keeping the most recent. More than the maximum cannot fit in one reply — walk with `offset` instead. Zero is an error, not every match.
sinceNoKeep only sessions that started on or after this date, `YYYY-MM-DD`
untilNoKeep only sessions that started on or before this date, `YYYY-MM-DD`
memoryNoMemory to list, as it stands — `<org>/<repo>`, an `hf://…` URI, a local path, or `local`. Omitted, the server's memory, with the sessions this host has not finished pushing listed from the local memory when the host is bound to it.
offsetNoSkip this many of the most recent matches before taking `limit`, to walk a listing back through time. The closing line names the offset that continues, and a given offset always names the same session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description usefully establishes a read-style enumeration, oldest-first ordering, metadata-only results, and potentially large result sets. It does not explicitly discuss permissions or failures, but those omissions are modest for this listing operation and pagination behavior is covered in the schema.

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 front-loaded with the operation and ordering, then moves efficiently through result scope and usage. Its middle sentence is dense, but the clauses provide meaningful field and prompt semantics rather than filler.

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?

Together with the fully documented schema, the description supplies what an agent needs to invoke the tool: resource, scope, ordering, returned metadata, filtering rationale, and scale considerations. The absence of an output schema is substantially offset by the explicit enumeration of returned fields, while the input schema covers memory selection and pagination.

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%, including formats, defaults, filtering, and pagination, so the schema already does the heavy lifting. The description adds the purpose of repo and date filtering—obtaining ids for other verbs—but little additional parameter-level detail.

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 gives a specific verb and resource—enumerating a memory's sessions—and clarifies ordering, metadata-only scope, and the exact fields listed. Explaining that the opening prompt is what a session started from, rather than what it became, further prevents misinterpreting the result.

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?

It gives a concrete workflow: filter by repo or date to obtain session ids consumed by other verbs, and warns that an unfiltered memory may contain thousands of rows. "Metadata only" also signals when not to use it for session contents, though it does not name the specific sibling tool to use next.

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