Skip to main content
Glama

Mnemos: memory for AI agents

Correct a memory

mnemos_supersede

Store a corrected version of a memory: the old one was wrong. Fields you leave out (subject, kind, tags, valid_from, valid_to and the rest) are kept from it. The old version stays readable through history and as_of. Costs 3 credits.

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": {
      "id": "<id>",
      "text": "<text>"
    },
    "name": "mnemos_supersede"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe memory to replace.
keyNoYour space key (mk_...). Only needed if your client cannot send the Authorization header.
kindNoWhat sort of memory this is. Default fact.
tagsNoUp to 16 short tags.
textYesThe memory itself, in plain words. One idea per memory. Up to 8,000 characters.
sourceNoWhere it came from (a URL, a message id, "user said").
subjectNoOptional key for what it is about, e.g. "user/timezone" or "customer:acme/plan".
valid_toNoISO 8601. When it stops (or stopped) being true. Leave out if open-ended.
confidenceNo
importanceNoHigher comes first in context. Default treated as 0.5.
valid_fromNoISO 8601. When this became true in the world. Default now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: omitted fields are inherited from the old record (merge semantics), the prior version remains readable via history and as_of (consistent with destructiveHint=false), and the call costs 3 credits. It does not address idempotency, even though idempotentHint=false means repeat calls create additional versions.

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?

Three short sentences, each doing distinct work: what it does, how omitted fields behave, what happens to the old version, and the cost. The core semantics are front-loaded with no filler.

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 with near-complete schema documentation and no output schema, this covers the non-obvious behaviors: inheritance of omitted fields, retained history, and billing. Only repeat-call/idempotency behavior is left unaddressed.

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 already 91%, so the baseline is 3, but the description adds genuine meaning the schema lacks: unspecified fields are carried over from the original rather than reset. That partial-update contract is the single most important thing an agent needs and it is stated explicitly.

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?

States a specific verb and resource ("Store a corrected version of a memory") and pins the intent with "the old one was wrong," which separates it from a plain store-new-memory tool. It never names mnemos_remember or mnemos_forget, so sibling differentiation is implied rather than explicit.

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?

Gives a clear use condition: call this when an existing memory was wrong, not when adding something new. It stops short of naming the alternative tool or stating when to use mnemos_forget instead of correcting.

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