Skip to main content
Glama

Edit a memory

edit
Destructive

Change a memory that exists: merge fields, append to or replace the body, retitle or retag it, or set archived: true to hide it (false restores it; nothing is deleted). Finish a task with transition:"complete".

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>",
      "ref": "<ref>"
    },
    "name": "edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes"type::slug".
bodyNoReplace the body.
idemNoReplay guard.
tagsNoReplaces the tag list.
titleNoNew title.
appendNoAdd to the body instead of replacing it.
engineYesThe engine, by slug — required; a call without it is refused with the list.
fieldsNoFields to merge; null removes one.
sectionNoHeading to append under — the title text, not the markdown line. "Systems" not "## Systems".
archivedNoStop listing it; false restores it. Not deletion, and not done.
transitionNoA named state change, e.g. "complete".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is supplied. The description adds valuable nuance beyond that: archive is not deletion and false restores it, and body replacement is contrasted with the non-destructive append option. It does not explain idempotency or replay behavior despite idempotentHint=false and an idem parameter.

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?

One dense front-loaded sentence plus a short follow-up covers the whole surface with almost no waste, and the most important scope statement ("that exists") leads. The trailing fragment "Finish a task with transition:"complete"" is slightly awkward and reads as an afterthought rather than integrated guidance.

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 an 11-parameter mutation tool with no output schema, the description covers the operations an agent must choose between, the archive semantics, and the task-completion path. Missing pieces are secondary — what the call returns, and how idem/replay behaves given idempotentHint=false — but nothing needed to call it correctly is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter is already documented in the schema, making 3 the baseline. The description does add mapping value for the most important knobs — fields merge, append-vs-replace body, retitle/retag, archived semantics, and the transition:"complete" example. It says nothing about ref, engine, idem, or section, which is acceptable given the schema's own detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Change a memory that exists") and then enumerates the concrete mutations available: merge fields, append/replace body, retitle, retag, archive. The qualifier "that exists" implicitly separates it from the creation sibling write. It falls short of 5 only because it never names write as the alternative for new memories, leaving the create-vs-edit boundary to inference.

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?

It gives real usage context: use archived:true to hide rather than delete, and transition:"complete" to finish a task. That steers the agent away from a destructive mental model and shows two concrete scenarios. It stops short of explicit when-not-to-use guidance or naming write as the tool for new memories.

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