Skip to main content
Glama
session-bridge
by Mahyardana

read_session_turns

Paginate omp or agy session messages to inspect large conversations turn by turn and avoid exhausting context.

Instructions

Paginate through any omp or agy session message-by-message (useful for inspecting earlier middle turns of very large sessions without overwhelming context).

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": {
      "source": "<source>"
    },
    "name": "read_session_turns"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional workspace filter.
limitNoNumber of messages to return.
sourceYesSession source ('omp' or 'agy').
sessionNoSession ID, prefix, path, title substring, or 'latest'.latest
start_turnNoZero-based message index to start reading from.
include_toolsNo
include_thinkingNo
respect_compactionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It adds genuine behavioral context — pagination is message-level and is motivated by context-window economy — but says nothing about read-only safety, what a returned turn looks like, or how the defaults behave; the three boolean flags (include_tools, include_thinking, respect_compaction) that materially change output are left entirely unexplained.

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 front-loaded sentence with the action first and the rationale in a parenthetical; no filler. The parenthetical is slightly long but still earns its place by justifying the pagination use case.

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 an 8-parameter read tool with no output schema and no annotations, the description covers the selection story (source, session, paging window) well enough to call it correctly in the common case. However, it leaves the compaction and thinking/tool-inclusion behaviors unaddressed, which is a clear gap given those parameters are also undocumented in the schema.

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 description coverage is 63%, so the baseline is 3. The phrase 'message-by-message' loosely motivates limit and start_turn, but the description adds no format, default, or interaction details beyond what the schema already documents, and the undocumented boolean parameters get no help here.

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?

States a specific verb and resource ('Paginate through ... session message-by-message') and names the two source types it covers. The paginated message-level read is clearly distinct from siblings like list_sessions or the import/export tools, though the description never explicitly contrasts itself with them.

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?

Provides a concrete use case: inspecting 'earlier middle turns of very large sessions without overwhelming context,' which tells an agent when this tool beats a bulk read. It stops short of naming alternatives or stating when not to use it.

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