Skip to main content
Glama

Write a memory

write
Destructive

Store a new memory in one engine. type: note (anything worth keeping), decision (a choice; rationale required), task (work still to do), person, company, meeting (occurred_at and attendees required) or file (content_base64 and content_type); describe gives every type’s fields. Fields go in fields or at the top level. [[type::slug]] in the body links to another memory. find first: what is already stored is edited, not written again. A title already used in that engine is refused — edit it, choose another title, or pass its slug to replace it on purpose. also writes more memories in the same call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "engine": "<engine>"
    },
    "name": "write"
  }
}

Input Schema

NameRequiredDescriptionDefault
alsoNoMore memories for the same engine, each shaped like this call. Required without `type` and `title`.
bodyNoMarkdown body.
idemNoReplay guard — the same key never writes twice.
slugNoExplicit slug; derived from the title otherwise.
tagsNoTags.
typeNoWhat kind of memory: note, decision, task, person, company, meeting, file. Required here or on each `also` record.
linksNoRefs to check exist; missing ones come back. Links are made by [[type::slug]] in the body.
titleNoShort title; the ref derives from it. Required unless `also` is given.
engineYesThe engine, by slug — required; a call without it is refused with the list.
fieldsNoType-specific fields, e.g. {"rationale": "…"} on a decision or {"due_at": "2026-10-02"} on a task.
content_typeNoFor type "file" — e.g. "text/markdown".
content_base64NoFor type "file" — the bytes. Text is extracted and indexed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing refusal behavior ("A title already used in that engine is refused"), multi-record writes via `also`, link validation returning missing refs, and the `idem` replay guard. Annotations already flag destructiveHint=true, and the description earns credit for explaining how deliberate overwrite happens (slug replacement) rather than just repeating the flag.

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-loaded with purpose, then types, then invocation rules; every clause carries information. The density is high — one long semicolon-chained paragraph — which makes the type-specific requirements slower to scan than a short list would be.

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?

For a 12-parameter tool with nested objects and no output schema, it covers type requirements, field placement, link resolution, idempotency, and duplicate handling. It only lightly touches what a successful call returns (beyond missing links coming back), which is the one remaining gap.

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%, so the baseline is 3, but the description adds real meaning the schema lacks: which fields each type requires (rationale, occurred_at/attendees, content_base64/content_type), that fields may sit in `fields` or at the top level, and that links are made by [[type::slug]] in the body rather than the `links` array.

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 specific verb and resource ("Store a new memory in one engine") and immediately enumerates the memory types, so the agent knows exactly what gets created. It also distinguishes itself from siblings by naming "edit" and "find" as the tools for already-stored memories.

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?

Explicit rule: "find first: what is already stored is edited, not written again," which routes the agent to the sibling tool. It also gives the three valid responses to a title collision (edit, rename, or pass slug to replace), which is exactly the decision point an agent hits.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources