Skip to main content
Glama
agy-session-search

agy-session-search

by ctx-o1

read_session

Read a slice of turns or steps from a saved Antigravity session by step range or around a search hit, so you can inspect specific conversation context.

Instructions

Read a slice of turns/steps from a specific Antigravity session. Defaults to 11 steps, with at most 101 per call. Use around_step (from a search hit) or start_step/end_step. Continue with start_step set to the last returned step + 1.

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_id": "<session_id>"
    },
    "name": "read_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoRead transcript_full.jsonl instead of compact transcript.jsonl (default: false).
end_stepNoInclusive upper step index bound.
session_idYesSession UUID (or unique prefix of at least 6 characters).
start_stepNoInclusive lower step index bound.
around_stepNoCenter the returned window around this step index.
context_stepsNoNumber of steps before and after `around_step` (default: 5).
include_toolsNoInclude tool output steps and tool call names (default: false).
include_thinkingNoInclude model thinking summaries (default: false).
max_chars_per_stepNoTruncate individual steps beyond this many characters (default: 4000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden itself and does disclose the key behavioral facts: a default window of 11 steps, a hard cap of 101 steps per call, and pagination semantics. It does not state that tool/thinking steps are excluded by default or that per-step output is truncated, both of which materially change what comes back.

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 tight sentences with no filler. The core purpose is front-loaded, then window defaults, then parameter routing, then pagination — a sensible priority order for an agent deciding how to invoke it.

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 9-parameter tool with no output schema and no annotations, the description covers invocation well but never sketches the return shape (what a 'step' contains, that tool output and thinking are omitted by default, that steps may be truncated). The full-vs-compact transcript toggle is also left entirely to the schema.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the schema never states the default window size (11) or the per-call ceiling (101), and the description explains how around_step relates to a prior search hit and how start_step chains across calls.

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?

The description opens with a specific verb and resource: 'Read a slice of turns/steps from a specific Antigravity session,' and it defines the unit of retrieval (a bounded step window of a single session). This clearly separates it from siblings like list_sessions or reindex_sessions, so an agent can tell what it returns without opening the schema.

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 gives concrete selection guidance between the two access modes: 'around_step' from a search hit versus an explicit 'start_step'/'end_step' range, plus a continuation rule ('start_step' = last returned step + 1). What's missing is any exclusion or comparison with read_artifact for cases where the full transcript or an artifact is wanted.

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