Skip to main content
Glama
bill-kopp-ai-dev

Claude Code CLI MCP Server

claude_read_persistence

Retrieve saved agents, projects, or memory from Claude Code's persistence files. Specify an offset and line limit to access targeted content, with automatic truncation for oversized files.

Instructions

Read one of the three persistence files (agents | projects | memory).

Optional fields: - file (str): which file to read (default: memory) - offset (int): start reading from line N (0-indexed) - limit (int|None): max lines to return (None = no limit)

Large files are automatically truncated at Settings.persistence_max_file_bytes; the response includes a truncated flag if this happens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reqNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes
contentYes
truncatedYes
size_bytesYes
modified_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden well by disclosing line-based offset/limit behavior, automatic truncation at Settings.persistence_max_file_bytes, and the truncated flag in the response. It does not cover error handling or file-not-found behavior, but the most operationally surprising behavior is disclosed.

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?

Compact and well-structured: a one-line purpose, a short bullet list for optional parameters, and a single note about truncation. Nothing is redundant with the schema, and every sentence earns its place.

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 description covers parameters, defaults, and truncation behavior, and an output schema exists for return-value details. It could be slightly more complete by naming sibling tools or clarifying when load_persistence_context is preferable, but nothing critical is missing for calling the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the schema. It explains all parameters clearly: file choices and default, offset being 0-indexed, and limit accepting None for no limit. This adds real meaning beyond the raw schema.

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?

The opening sentence states a specific verb and resource ('Read one of the three persistence files') and enumerates the allowed files: agents, projects, memory. It is clear, though it does not explicitly distinguish itself from the sibling claude_load_persistence_context, which may also involve reading persistence data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool: when raw contents of the agents, projects, or memory persistence files are needed. However, it provides no explicit when-not-to-use guidance or mention of alternatives such as load_persistence_context.

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