Skip to main content
Glama

store_memory

Saves a corrected memory for later AI retrieval, updates overlapping entries instead of duplicating them, and points to the source of truth or preserves original wording when needed.

Instructions

Save a memory. Point at the source of truth instead of copying it; if it overlaps an existing memory, update that one instead of appending a second copy. Write the memory in clean, corrected form: if the user misspelled words, mistyped a name, command, file path, ID or code, or left out accents, store what you understood they meant, with names, commands, paths, IDs and codes spelled exactly as they really are. If the original wording may matter, append it as (user wrote: '...'). This lets any other AI find the memory later, even when the next person types it differently. Optional tipo (semantica|episodica|procedural|preferencia|entidade|projeto|coletiva | 'auto'), escopo ('universal' default | 'projeto:' | 'cena:') and autor_id.

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

Input Schema

NameRequiredDescriptionDefault
textYes
tipoNo
layerNolong-term
escopoNo
autor_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare write/not-idempotent/not-destructive; the description adds substantive policy beyond that — deduplication behavior, canonicalization of names/paths/IDs, and the (user wrote: '...') preservation convention. It does not state persistence scope, permissions, or what handle is returned for later updates.

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, then dedup policy, then normalization rules, then parameters — a sensible order. The normalization paragraph is verbose and mixes imperative rules with rationale, but each sentence carries operational content, so no serious padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and zero schema description coverage means the description carries full load; it covers dedup and normalization well but omits `layer`, the meaning of `text` beyond normalization, and any statement of what is returned (e.g., an ID needed to update the memory later). Adequate but with clear gaps for a 5-parameter write tool.

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 0%, so the description must compensate and it partly does: it spells out the `tipo` enum values (which the schema leaves undocumented) and the `escopo` default and forms. But it never mentions `text` or the `layer` parameter (short-term/mid-term/long-term), leaving two of five parameters with no meaning anywhere.

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?

Opens with a specific verb+resource ('Save a memory'), which cleanly separates it from fetch_memory, forget_memory, list_memory and search_memory. It does not explicitly name those siblings, but the write-vs-read distinction is unambiguous from the text.

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 concrete when-to-use policy: point at the source of truth rather than copying, and update an existing overlapping memory instead of appending a duplicate. The gap is that 'update that one' is not mapped to an actual mechanism or sibling tool, and there is no guidance on when to prefer checkpoint_work or a short-term note over storing a memory.

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