Skip to main content
Glama

open_record

Read-only

Retrieve a session record by episode_id with surrounding turns, paginate it using offset and next_offset, and locate specific words or phrases inside it.

Instructions

Read a session record (episode_id from search_sessions or code_history) with the turns around it. A long record comes in pages: total_chars, offset and next_offset (null at the end) say where the page sits; call again with offset=next_offset for the next one. find="words" lists where they occur in the record and starts the page at the first match.

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": {
      "episode_id": "<episode_id>"
    },
    "name": "open_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
findNowords or a phrase to locate inside the record
afterNo
beforeNo
offsetNocharacter offset of the page in the record
max_charsNo
episode_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover readOnlyHint and openWorldHint, but the description adds a real behavioral disclosure the annotations cannot: an explicit pagination contract (total_chars, offset, next_offset, null at the end) and the fact that find= both locates matches and repositions the page start. That is exactly the operational detail needed for a paged, no-output-schema read tool.

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?

Three front-loaded sentences with no filler: sentence one states the action and input source, sentence two the paging contract, sentence three the search-and-reposition behavior. Every clause is load-bearing.

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 six-parameter tool with no output schema, the description covers the critical read, paging and locate behaviors well. It falls short only on the before/after context-window parameters and max_chars page sizing, which an agent must infer from the schema alone.

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 only 33%, so the description must carry extra weight. It explains episode_id's source, offset/next_offset paging, and find= semantics, but leaves after, before (only implied by "turns around it") and max_chars unexplained in both schema and description, so compensation is partial.

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

Purpose5/5

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

"Read a session record ... with the turns around it" gives a specific verb and resource, and the parenthetical "(episode_id from search_sessions or code_history)" tells the agent exactly which sibling produces the input, so it can be distinguished from search_sessions and code_history without inspecting schemas.

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?

Clear usage context: call this after search_sessions/code_history returns an episode_id, page with offset=next_offset when a record is long, and use find= to jump to a match. It never states when not to use it or names an alternative reading path, so it stops short of explicit exclusions.

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