Skip to main content
Glama

read_claude_session

Read a Claude Code session transcript cleanly by session ID, PID, or title, stripping API request blobs and system-reminder noise for focused review or handoff.

Instructions

Read a Claude Code session transcript cleanly (stripping API request blobs and system-reminder noise). Supports lookup by session_id, PID, or title substring.

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": {
      "session": "<session>"
    },
    "name": "read_claude_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNohandoff (initial goal + edited files + latest turns), recent, full, or files.handoff
sessionYesClaude session ID (or prefix), PID, or title/cwd substring.
max_charsNoMaximum output size in characters (default 28000).
last_n_turnsNoNumber of latest turns to include (default 8).
include_tool_detailsNoInclude truncated tool arguments (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real value by disclosing output sanitization (blobs and system-reminder noise are stripped). It leaves open important behaviors: whether a title-substring lookup can match multiple sessions and what happens then, and whether a missing session errors or returns empty.

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?

Two sentences, no filler, and the most useful detail — clean transcripts — is front-loaded before the lookup mechanics. Nothing here could be cut without losing information.

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?

For a five-parameter read tool with a fully described schema and no output schema, the description covers what it returns in spirit (clean transcript) and how to address a session. The remaining gap is routing guidance against the search/list siblings, which is a modest omission rather than a blocker.

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 coverage is 100% and every parameter including the mode enum is documented in the schema itself. The description's restatement of the session lookup forms adds no meaning beyond the schema, so the baseline of 3 applies.

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?

Names a specific verb and resource ("Read a Claude Code session transcript") and adds a distinctive qualifier about cleaning out API request blobs and system-reminder noise, which separates it from a raw dump. It does not explicitly contrast itself with read_codex_session/read_gemini_session, but the resource is scoped clearly enough for an agent to pick it.

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?

The phrase "supports lookup by session_id, PID, or title substring" hints at how to reach a session, but there is no explicit when-to-use versus search_claude_sessions or list_claude_sessions. An agent must infer that this tool returns content while the siblings enumerate or query, rather than being told.

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