Skip to main content
Glama

Show a memory's history

memory_history
Read-only

Returns every version of one fact, oldest first, the versions a later correction retired included. It applies when someone asks what was believed before, or when a fact looks wrong and its predecessor matters. It takes a memory id from memory_search or memory_write and never a phrase. Versions the credential may not read are counted in withheld rather than shown, so a chain with a withheld count is a partial answer. The walk is one indexed pass bounded by a depth cap, reported as depth_capped. Each version's source is the name of the app that wrote it.

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

Input Schema

NameRequiredDescriptionDefault
idYesid of the fact whose versions you want, as returned by memory_search or memory_write.
detailNo'full' adds the embedding model and read counters of each version.
namespaceNoValidated when present and it narrows nothing: a correction may move a fact to another namespace, so the walk crosses namespaces by design.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description goes well beyond them by disclosing permission-based filtering into a 'withheld' count, that a withheld count means the chain is a partial answer, the bounded single indexed pass with a plus 'depth_capped' flag, and what the per-version source field represents. These are exactly the operational traits an agent needs and none are available in structured fields.

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 usage, then behavioral caveats — a sensible order with no filler sentences. It is dense, with return-value details packed into later sentences, but each sentence carries distinct information.

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?

There is no output schema, and the description compensates by explaining the return shape (all versions, oldest first, retired ones, withheld count, depth_capped, source app name). For a read-only lookup with three well-covered parameters, nothing an agent needs in order to call or interpret it is missing.

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 id, detail, and namespace are already documented; the description reinforces that id is an id and not a phrase, and that namespace narrowing is intentionally ineffective because corrections cross namespaces. That is genuine added meaning but it is largely restating the schema's own notes, so the baseline 3 fits.

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 — 'Returns every version of one fact, oldest first' — with the ordering and the inclusion of retired versions spelled out. It also distinguishes itself from memory_search by requiring an id and 'never a phrase', so an agent can tell the two apart without opening either schema.

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 two explicit triggering situations: someone asks what was believed before, or a fact looks wrong and its predecessor matters. It also names where the required id comes from (memory_search or memory_write) and excludes the common wrong input (a phrase), leaving little to infer.

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