Skip to main content
Glama

read_capture

Restore context lost during compaction by reading a capture by ID. Choose summary, structured, or raw mode to match detail to token cost.

Instructions

Read a PreCompact capture by ID. Use this to recover context that was lost during mid-session compaction. Three modes control token cost: 'summary' (one paragraph, cheap), 'structured' (decisions/loops/warnings, moderate), 'raw' (full transcript excerpt, expensive — only when summary or structured is insufficient). Workflow: read recovered captures before relying on the latest checkpoint; start with the lightest mode that answers your question.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCapture ID from list_captures (e.g., 'precompact-abc123-001')
modeNoReading mode. 'summary': one-paragraph overview. 'structured': decisions, open loops, warnings, context shifts. 'raw': full transcript excerpt.structured
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It details three modes with token cost implications ('summary' cheap, 'structured' moderate, 'raw' expensive) and advises using raw only when lighter modes are insufficient. This goes beyond a simple read, giving the agent actionable behavioral guidance without contradicting any structured metadata.

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?

The description is about five sentences and front-loaded with the core purpose, then provides mode details and a workflow. It is efficient and avoids redundancy, though it lacks bullet-point formatting that could improve scannability. No wasted words.

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?

The tool has a moderate complexity (2 params, 3 modes) and no output schema. The description gives enough context for the agent to understand what to expect from each mode and how to use the tool effectively, covering purpose, mode selection, cost, and workflow. It does not describe error cases or exact return structures, but these are not critical for basic invocation.

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 baseline is 3. The description adds meaningful extra semantics, especially for the mode parameter: it expands on the schema by explaining 'summary' as one paragraph, 'structured' as decisions/loops/warnings, and 'raw' as full transcript excerpt, plus cost guidance. This enriches the schema definitions.

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 clearly states the verb 'Read' and the resource 'PreCompact capture by ID', and specifically ties it to recovering context lost during mid-session compaction. This distinguishes it from sibling tools like list_captures or capture_now by focusing on reading a specific capture.

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?

The description says when to use the tool ('recover context lost during mid-session compaction') and provides a workflow: 'read recovered captures before relying on the latest checkpoint; start with the lightest mode that answers your question.' This gives clear context and usage strategy, though it does not explicitly mention alternatives to other sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skitchy/rekindle'

If you have feedback or need assistance with the MCP directory API, please join our Discord server