Skip to main content
Glama

memory_write

Store important information such as facts, decisions, bugs, and plans into shared memory with tags and confidence levels for retrieval.

Instructions

Write something to shared memory. Use this often.

Write whenever you learn, decide, or discover something worth keeping:

  • Facts about the codebase, infrastructure, or domain

  • Decisions made and why

  • Bugs found, workarounds, gotchas

  • Plans, designs, open questions

  • Anything another agent (or future you) would want to know

Types:

  • memory: default — use this for everything

  • doc: stable reference material; normally written by the archivist, not agents

  • directive: a standing instruction that governs archivist behavior fleet-wide; requires elevated permission (the UI agent has it by default); confidence is always forced to 1.0

  • skill: procedural knowledge — how to do something; decays like memory, never promoted, never merged; superseded by directives on the same topic

Scopes:

  • project: visible to all members of this project (default)

  • agent: only you can see it

Args: content: What to store. Markdown is fine. entry_type: See types above. Default: memory. scope: See scopes above. Default: project. project: Project to scope the entry to. Defaults to MCP_PROJECT if set. tags: Tags for filtering and retrieval. Use them — they make memory_list useful. confidence: How certain you are (0.0–1.0). Default 1.0. Use lower for guesses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesWhat to store. Markdown is fine.
entry_typeNoSee types above. Default: memory.memory
scopeNoSee scopes above. Default: project.project
projectNoProject to scope the entry to. Defaults to MCP_PROJECT if set.
tagsNoTags for filtering and retrieval. Use them — they make memory_list useful.
confidenceNoHow certain you are (0.0–1.0). Default 1.0. Use lower for guesses.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations indicate no destruction and not open world. The description adds context about elevated permissions for directive type and confidence usage. However, it does not disclose idempotency, rate limits, or whether writing always creates new entries (vs. overwriting). The description provides moderate additional context beyond annotations.

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?

The description is well-structured, starting with a clear one-liner, then usage guidance, types, scopes, and parameters. It is front-loaded and each section is purposeful. While verbose, the complexity of the tool justifies the length; could be slightly tighter but remains efficient.

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 the existence of an output schema, return values need not be explained. The description thoroughly covers all six parameters, including nuanced guidance on confidence and tags. It addresses various use cases and constraints, making it highly complete for a write tool.

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 has 100% coverage, but the description adds significant value by explaining the taxonomy of entry types (memory, doc, directive, skill) and scopes (project, agent) with usage details. This goes beyond the schema defaults and provides meaningful guidance for parameter selection.

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 'Write something to shared memory' and provides extensive guidance on what to write, types, and scopes. It effectively differentiates from sibling tools like memory_list, memory_get, etc., by focusing on the write operation.

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?

The description explicitly advises 'Use this often' and provides detailed scenarios for when to write, including facts, decisions, bugs, etc. It also explains types that require special permissions (directive) or roles (doc for archivist). However, it does not directly compare against similar write tools like memory_update.

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/NicolasPrimeau/artel'

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