Skip to main content
Glama
PlainTxtOffice

Plain Text Memory MCP

Initialize memory file

initialize_memory
DestructiveIdempotent

Claim a repository's memory file or start a new one: adopt existing memories or create a fresh graph, fixing header mismatches from copied or renamed repos.

Instructions

Claim the memory file for this repo, or start a new one.

Resolves the error other tools return when the memory file's header names a different repo. 'fresh' renames the old file to a timestamped backup and starts an empty graph, for a file copied from another repo; 'adopt' rewrites the header to this repo, for a repo that was moved or renamed. Returns the status, the header, and the backup path if one was made. Changes nothing when the file already belongs to this repo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes'fresh' starts an empty graph and keeps the old file as a backup; 'adopt' keeps the memories and claims them for this repo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
backupYes
headerYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructive=true, idempotent=true, readOnly=false, and the description goes well beyond them by disclosing exactly what happens: 'fresh' renames the old file to a timestamped backup and starts an empty graph, 'adopt' rewrites the header while keeping memories, and the tool changes nothing when ownership already matches. It also previews the return payload (status, header, backup path).

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?

Front-loads the core purpose in the first sentence and then layers the error-resolution context and mode semantics. Slightly wordy in the second paragraph but every clause carries operative information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, trigger, mode selection, destructive side effects, backup behavior, and return shape. With an output schema present and annotations set, nothing an agent needs to invoke this correctly is missing.

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 coverage is 100% and the enum is already documented, so the baseline is 3. The description adds scenario framing beyond the schema by explaining when each mode applies (file copied from another repo vs. repo moved/renamed), which helps an agent pick the right value.

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?

States a concrete verb and resource ('Claim the memory file for this repo, or start a new one') and is unmistakably distinct from the entity/relation CRUD siblings. An agent can identify it as the header-ownership/repair tool 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 Guidelines5/5

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

Names the precise trigger condition ('the error other tools return when the memory file's header names a different repo') and gives the selection rule for each mode: 'fresh' for a file copied from another repo, 'adopt' for a repo that was moved or renamed. It also states the no-op case when the file already belongs to this repo.

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