Skip to main content
Glama

sessions

Read-onlyIdempotent

List past coding records, most recent first, with harness, project, date, and limit filters. Browse recent work when no search terms are available.

Instructions

List past sessions, most recent first (title, id, harness, dates, message count). Use it to browse recent work when there are no good search words.

Args: harness: claude | codex | pi | jsonl:. project: substring of the working directory or title. since: ISO date/time; only sessions active at or after it. limit: maximum sessions (default 20).

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
limitNo
sinceNo
harnessNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond them: result ordering, the default page size of 20, and the fields each row contains. It does not discuss pagination past 'limit' or how 'dates' are formatted.

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?

One lead sentence carries purpose, ordering and return shape, followed by a compact per-argument block. The usage hint is placed with the purpose rather than buried, and no line is 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?

With no output schema, the description supplies the returned fields, and with zero schema coverage it documents all four parameters plus the default. Read-only and idempotent behavior is delegated to annotations, which is appropriate, leaving nothing an agent needs in order to call this correctly.

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 carry the parameter burden and it does: harness enumerates valid values including the 'jsonl:<name>' form, project is defined as a substring of working directory or title, since is an ISO date/time filtering on activity at or after it, and limit notes the default of 20. Every one of the four parameters gains meaning not present in the schema.

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 ('List past sessions'), the ordering ('most recent first'), and the return fields ('title, id, harness, dates, message count'). The clause 'use it to browse recent work when there are no good search words' implicitly separates it from the 'search' sibling, so an agent can pick between them without opening a schema.

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?

'Use it to browse recent work when there are no good search words' gives a clear selection condition that implies the alternative path when query terms exist. It stops short of explicitly naming the 'search' tool as the fallback, so the routing is inferred rather than stated.

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