Skip to main content
Glama

memory.write

Persist structured memory writes for checkpoints, implementation decisions, and compact recall artifacts. Use stable filenames to preserve continuity and deduplication.

Instructions

State-changing durable memory write used for checkpoints, implementation decisions, and compact recall artifacts. Parameter interactions: projectName should match the project used by memory.search; fileName is the logical lineage key (stable fileName preserves continuity and dedupe behavior); topicPath controls retrieval partitioning and, if omitted, is derived from fileName. content should be concise and factual (avoid full transcripts; preserve numeric facts verbatim). Side effects: successful writes may trigger asynchronous fanout/indexing/rollup work. ok=true with event_id means the write was accepted, but per-target fanout can still be pending/retrying and is returned in fanout/warnings. Do not use this for retrieval or diagnostics: use memory.search for reads and health for readiness checks. On auth/upstream errors this returns isError=true with structured error payload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYesProject identifier for the write (must match intended retrieval scope and future search project).
fileNameYesLogical memory filename/path used for grouping and lookup (for example: notes/codex/xyz.md). Keep stable across updates to preserve continuity.
contentYesMemory payload to persist. Keep numeric facts verbatim. Secret handling follows server policy (redact/block/allow).
topicPathNoOptional topic hierarchy for retrieval scoping (for example: runbooks/runtime-hardening). If omitted, topic is derived from fileName.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
event_idNo
warningsNo
fanoutNo
dedupedNo
latest_hash_unchangedNo
Behavior5/5

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

Discloses side effects (async fanout/indexing/rollup), partial success (ok=true with fanout pending), and error structure (isError=true). Annotations already indicate non-readonly/non-destructive, but description adds substantial behavioral context without contradiction.

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?

Well-structured with purpose, parameter interactions, side effects, response, and exclusions. Every sentence adds value, though slightly verbose; could be tightened without losing 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?

Given 4 parameters, full schema coverage, output schema exists, and sibling tools, the description covers purpose, usage, parameters, side effects, error handling, and alternatives comprehensively. No gaps identified.

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 covers 100% of parameters, but description adds extra meaning: projectName linkage, fileName as dedupe key, topicPath derivation, content conciseness rules. This significantly assists correct invocation beyond schema alone.

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 it is a 'State-changing durable memory write' for specific use cases like checkpoints and recall artifacts, and distinguishes from siblings memory.search (reads) and health (readiness checks).

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 advises when to use (state-changing writes) and when not to (retrieval/diagnostics), directing to memory.search and health. Also explains parameter interactions like projectName matching, fileName stability, and topicPath derivation.

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/sheawinkler/ContextLattice'

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