Skip to main content
Glama

read_session

Retrieve a routine's session chat log to inspect prompts, tool calls, and agent responses for review or debugging.

Instructions

A session's chat log: [you] lines are the prompt and messages, -> lines tools, the rest the agent.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.
limitNoCharacters from the end; 20000 by default.
sessionNoA session id; the latest session when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 genuinely useful behavioral context by explaining the line-prefix encoding ([you], ->, and agent lines). However, it says nothing about whether reading affects read/unread state (a real concern given mark_session_read/mark_session_unread siblings) or how the end-anchored character limit truncates a conversation.

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?

A single compact sentence with no filler, front-loading the resource before the format legend. The legend's phrasing ("the rest the agent") is slightly compressed but not wasteful.

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?

For a three-parameter read tool with no output schema, explaining the return format is the right instinct and it is partially done. But the relationship between the required id (described as "the routine's id") and the optional session id is left unexplained, so an agent cannot be fully confident which identifier drives the lookup.

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%, so the three parameters are documented in structured form and the baseline is 3. The description adds no meaning about the id-vs-session distinction or why truncation is measured from the end, leaving the schema to carry all parameter semantics.

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 description names the resource ("A session's chat log") and its line-format legend, but never states a verb; the reading action is inferred only from the tool name. It also does not distinguish this from siblings such as get_session or list_sessions, which an agent could easily confuse with it.

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, no exclusions, and no mention of alternatives like get_session (metadata) or mark_session_read. The agent must guess that this is the tool for pulling transcript content versus session metadata.

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