Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Muninn (munn.is). If you published it, claim ownership there.

muninn_memory_update

DestructiveIdempotent

Update an existing memory's text, tags, decay score, occurredAt, or project. memoryId may be a short-form (8-char) prefix. Two ways to change text: pass text to replace the WHOLE body, OR pass replacements:[{old,new}] for surgical find-and-replace — each old must match EXACTLY ONCE or the whole update is rejected atomically (nothing is written), so a two-line edit to a long memory costs one pair instead of resending thousands of words. Regenerates the embedding ONLY if text actually changes. tags REPLACES the whole list. Returns a compact {id, tags, project, updatedAt, embeddingRegenerated, length} — length is the stored char count, your self-verify signal (the body is never echoed back). When you used replacements, the result also carries replacements: so you can confirm how many spots were hit. For a tags-only edit, prefer muninn_memory_tag. When the user's reference material changes, update only the memories it touches (find them with muninn_memory_search or muninn_memory_list_by_tag) rather than re-saving everything. hideRank:true takes a memory out of Ranking and boot's mostAccessed, false puts it back; omit it to leave it as it is. This is also how you EDIT AN ARTIFACT'S BODY — an artifact's artifactId IS its memoryId; there is no separate muninn_artifact_update. If the artifact is currently published, its public link is refreshed automatically. Optional expectedRev: pass the rev your last muninn_memory_get / muninn_artifact_get returned and the write is REJECTED (nothing written) if someone changed the body since you read it, instead of silently overwriting them. Omit it when you read and write in the same breath.

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": {
      "memoryId": "<memoryId>"
    },
    "name": "muninn_memory_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoNew tags (replaces existing tags)
textNoNew text content — replaces the WHOLE body. Mutually exclusive with replacements.
previewNoUpdated 1–2 sentence summary. Pass when text changed. If omitted, existing preview is preserved.
projectNoNew project slug. Pass empty string '' to clear back to global. Omit to leave unchanged.
hideRankNoKeep this memory out of the Ranking view and out of the "most accessed" block of session boot. Set true for anything whose reads come from tooling, not from interest: session state, a checkpoint, carryover notes, a run or sync log, a scratch note for the next session of one tool. Leave false for anything a person might want surfaced because it keeps coming up: a decision, a profile, a preference, an article, a changelog entry. When unsure, leave false; a hidden memory is still found by search, tag and get. Omit to leave the current setting.
memoryIdYesThe memory ID to update (full UUID or unique 8-char prefix)
decayScoreNoNew decay score between 0 and 1
occurredAtNoCorrected ISO 8601 datetime of when the event actually happened. Used for chronological ordering.
expectedRevNoThe `rev` from the read you based this edit on. Rejects the write if the body has changed since. Omit to skip the check.
replacementsNoSurgical find-and-replace pairs applied in order. Each `old` must match exactly once or the entire update is rejected (atomic). Use instead of `text` to edit a few lines of a long memory cheaply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds real behavioral detail beyond them: replacements are atomic and all-or-nothing, tags and text replacement are whole-value overwrites, embeddings regenerate only on real text change, and hideRank toggles visibility in Ranking and boot. The return shape is described since no output schema exists. Slight deduction only because the atomic-failure wording is repeated rather than stated once.

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 the core action and the two text-edit modes before the edge cases, and every paragraph targets a distinct decision. It is nevertheless long, and the atomic-rejection rule is restated in both the replacements and expectedRev passages, costing a little density.

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?

For a 10-parameter mutation tool with no output schema, the description covers concurrency safety (expectedRev), failure semantics (atomic rejection), side effects (embedding regeneration, public link refresh), and the returned fields including a self-verify length signal. Nothing material is missing for correct invocation.

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 coverage is already 100%, yet the description still adds meaning: replacements entries must match exactly once or nothing is written, tags replaces rather than merges, memoryId accepts a short prefix, and hideRank has decision criteria rather than just a boolean. These are interpretation aids the schema alone does not supply.

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?

Names a specific verb and resource and enumerates the fields that can change (text, tags, decay score, occurredAt, project). It also claims a non-obvious scope — that editing an artifact body happens here because artifactId is a memoryId — which lets an agent pick this tool over the artifact siblings.

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?

Gives explicit routing: tags-only edits should go to muninn_memory_tag, and finding affected memories should use muninn_memory_search or muninn_memory_list_by_tag. It also states when to supply expectedRev versus omit it, and when to use replacements versus text.

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