Skip to main content
Glama

read

Read-onlyIdempotent

Opens a cited message with surrounding context or pages through an entire indexed session; optionally returns redacted original transcript lines for source verification.

Instructions

Open a citation or a whole session.

ref is a cite from search ("claude:#12": shows that message with context messages either side, the cited one marked ▶) or a session id (pages through the whole session, ~6k tokens per page). With source=true and a cite, also returns the original transcript lines the message came from, re-read from disk and redacted.

Args: ref: cite ("#"), session id, or a native session id / prefix. page: page number when reading a whole session. context: messages to show either side of a cited message (default 4). source: include the original transcript lines for a cite.

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": {
      "ref": "<ref>"
    },
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
pageNo
sourceNo
contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile needs no restating. The description does add real behavioral context — ~6k tokens per page for session reads, and that `source` re-reads from disk and redacts the original lines. It still omits the marker/format of the returned page beyond the ▶ indicator.

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?

It is front-loaded well — the one-line purpose comes first, then format details. However, the trailing Args block restates ref, context, and source almost verbatim from the prose above, which is redundant text an agent must read twice.

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?

With no output schema and 0% schema description coverage, the description must explain both inputs and returns, and it largely does: all four params are documented and the cite-with-context rendering is described. It is slightly thin on what a paged session response looks like and on pagination termination.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden, and it does so for all four parameters: ref formats (`<session>#<n>`, session id, native session id/prefix), page for whole-session reads, context default 4 either side, and source for original transcript lines. Only `page` is left somewhat thin beyond its default.

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 opening line gives a specific verb and resource: 'Open a citation or a whole session.' The two modes are named clearly and the 'ref is a cite from search' line connects it to the sibling tool. It stops short of explicitly distinguishing itself from `sessions`, which also appears to enumerate sessions.

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?

It states the condition that selects each mode: a cite ref opens a single message with surrounding context, a session id pages through the whole session. It does not say when not to use the tool or when `search` is the better choice, so it falls short of full routing guidance.

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