Skip to main content
Glama

sessions_read

Reads a session's user and assistant text, oldest first, with limit and offset pagination, excluding tool calls and injected text. Use it to inspect conversation history.

Instructions

The user and assistant text of one session, oldest first, limit turns from offset. Tool calls and text Claude Code injects are left out.

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

Input Schema

NameRequiredDescriptionDefault
idYes
limitNo
offsetNo
all_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose real behavior: chronological ordering, pagination by turns, and filtering of tool calls and injected text. It does not state whether the operation is read-only, what happens when id is unknown, or what all_projects changes about the result set, leaving meaningful gaps for an unannotated tool.

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?

Two sentences, front-loaded with the return content and followed by the pagination rule and exclusions; nothing is padded. The RST-style double backticks around limit and offset are a formatting artifact that slightly hurts readability but not size.

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?

There is no output schema and no annotations, so the description is the only documentation for a four-parameter tool. It adequately covers the return shape and ordering but omits the meaning of the required id and of all_projects, which an agent needs before calling correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 explain all four parameters. It clarifies limit and offset only in the phrase 'limit turns from offset', and even that leaves the default of 40 and turn-counting unit loosely defined. The required id and the all_projects flag receive no explanation whatsoever.

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

Purpose4/5

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

The description states precisely what is returned: the user and assistant text of a single session, ordered oldest first. It also carves out what is excluded (tool calls and Claude Code-injected text), which sharpens the resource boundary. It stops short of explicitly contrasting with siblings like sessions_list or read, so a 4 rather than a 5.

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

Usage Guidelines3/5

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

Usage is only implied: 'one session' hints this is the per-session counterpart to sessions_list, and the pagination language implies large transcripts should be read in chunks. There is no explicit when-to-use or when-not-to-use guidance, and no mention of read_minutes or read as alternatives.

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