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

Claude Code CLI MCP Server

claude_init_persistence

Initialize persistent memory for Claude Code by creating the storage directory and seeding AGENTS.md, PROJECTS.md, and MEMORY.md templates. Re-running is safe and won't overwrite existing files.

Instructions

Initialize the persistence directory and seed the three markdown files.

Idempotent: re-running without force=true is a no-op if files already exist. Creates the directory at the location resolved by Settings.resolve_persistence_base_dir() and writes AGENTS.md, PROJECTS.md, MEMORY.md (unless they already exist).

Optional fields: - force (bool): re-create files even if they exist - seed_templates (bool|None): whether to seed the default templates

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reqNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
createdNo
base_dirYes
seed_versionYes
already_existedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the burden and it delivers: it discloses idempotency, the no-op behavior when files exist, directory creation, the exact files written, and the effect of force. This goes well beyond a simple 'init' label.

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?

The action statement is front-loaded, followed by a tight idempotency note and a compact optional-fields list. No sentence is filler.

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?

For a low-complexity initialization tool with zero required parameters and an output schema, the description covers location, file names, idempotency, force behavior, and template seeding. Nothing essential for a correct call 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 description coverage is 0%, so the description must compensate. It names force and seed_templates and gives a functional meaning for each, although it leaves the null-vs-false distinction for seed_templates slightly implicit.

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?

Begins with a specific verb and resource: 'Initialize the persistence directory and seed the three markdown files' and even names AGENTS.md, PROJECTS.md, MEMORY.md. This clearly separates it from sibling persistence tools that read, append, update, or load.

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 clear usage context through the idempotency statement: re-running is a no-op unless force=true, and explains what force does. It does not explicitly compare against alternatives or state when not to use it, so it falls just short of full guidance.

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