Skip to main content
Glama

sessions

List a memory's recorded agent runs oldest first, filtering by repo or date to return metadata and 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.

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": "sessions"
  }
}

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. Changed1 schema field changedv1.12.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. 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 carries the full burden and does meaningful work: it declares ordering (oldest first), payload scope (metadata, not transcript content), the semantics of the opening prompt ('the ask a session started from, not what it became'), and the scale risk ('thousands of rows'). It does not explicitly label the call read-only or describe reply shape, leaving a modest gap for a tool with zero annotation coverage.

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 sentences, each earning its place, front-loaded with what the tool returns before covering filtering and scale. Dense, no filler, and the ordering constraint and metadata-only caveat arrive before the reader has to guess.

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?

There is no output schema, and the description compensates well by listing the returned fields and clarifying what the prompt field means. Combined with a fully documented six-parameter schema, an agent has enough to call it correctly; only an explicit read-only/side-effect statement is missing.

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% and the per-parameter text is already rich (repo format, YYYY-MM-DD bounds, limit/offset walking, memory resolution rules). The description adds only the motivation for filtering and the volume that makes paging necessary, not new semantics for any individual parameter, so the baseline 3 applies.

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 ('Enumerate a memory's sessions, oldest first') and immediately scopes it as 'Metadata only', then enumerates exactly what comes back (started, last indexed turn, harness, repo, turn count, id, opening prompt). It also distinguishes itself from the sibling verbs by positioning itself as the source of 'the session ids the other verbs take'.

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?

Gives a clear use case: filter by repo or date when you need session ids to feed other verbs, and paging via offset when a memory has thousands of rows. It lacks an explicit when-not statement or a named alternative for the case where you already know the session id, but the intended role is unambiguous.

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