Skip to main content
Glama

write_memory

Overwrite a project memory section with new Markdown content. Use this to restructure or rewrite a full section, replacing all existing content.

Instructions

Overwrite a memory section with new content. WARNING: This replaces the entire section. Use with care. Prefer append_decision or append_api_contract for adding entries. Only use write_memory when you need to restructure or rewrite a full section.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe new Markdown content for the section. This will replace all existing content.
sectionYesThe memory section to overwrite. One of: overview, architecture, api-contracts, decisions, bugs, todos, conventions, glossary.
Behavior4/5

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

No annotations provided, so description carries full burden. It warns 'WARNING: This replaces the entire section. Use with care.' Discloses destructive behavior. Lacks details on reversibility or auth needs, but the warning is strong.

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?

Two well-structured sentences. First states action and warning, second provides usage guidance with sibling references. No redundant 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?

Given 2 params and no output schema, description is thorough. It covers purpose, usage, and behavioral impact. Could optionally mention return format, but not necessary.

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%, baseline 3. Description adds meaning: 'content' is 'new Markdown content' that 'will replace all existing content'. Adds context beyond schema.

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 'Overwrite' and resource 'memory section'. It distinguishes from sibling tools like append_decision and append_api_contract by specifying that write_memory is for replacing entire sections, not adding entries.

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?

Explicitly says 'Only use write_memory when you need to restructure or rewrite a full section' and 'Prefer append_decision or append_api_contract for adding entries'. Provides clear when-to and when-not-to context.

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/gregoire-renaldo/memory-mcp'

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