Skip to main content
Glama

list_sessions

Retrieve a routine's recent sessions, newest first, to review execution history and inspect past runs. Provide the routine ID and an optional limit (default 10).

Instructions

A routine's recent sessions, newest first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.
limitNoHow many; 10 by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses ordering and scope ("recent", "newest first"), which is genuinely useful, but says nothing about read-only safety, what happens when limit truncates the list, how far back "recent" reaches, or how results are paginated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

There is zero wasted wording and the ordering fact is front-loaded, which is good. But the single truncated clause reads as under-specification rather than deliberate economy; a verb and one routing sentence would cost little and add much.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (two parameters, one required, fully documented schema, no output schema), so the description needn't be long. Still, for a listing tool an agent would benefit from knowing what "recent" bounds and whether limit is a hard cap, neither of which is covered anywhere.

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 both id and limit are already documented in the schema with an example and a default. The description adds no parameter meaning beyond that, so the high-coverage baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase "a routine's recent sessions" identifies the resource and its parent (a routine) and adds an ordering ("newest first"), so an agent can infer this is a list operation. However, it is a noun fragment with no verb, and it never distinguishes itself from siblings like get_session or list_session_questions, so the agent must infer the read/list nature.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to call this versus get_session for a single session or list_session_questions for session content. The word "recent" hints at a browsing use case but gives no threshold, no exclusion, and no alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.