Skip to main content
Glama

get_memory

Retrieve a specific stored memory by ID and repository to access its full content, tags, and timestamps for context reuse.

Instructions

Retrieves a specific memory by ID. Returns the full content, tags, and timestamps.

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": {
      "repo": "<repo>",
      "id": "<id>"
    },
    "name": "get_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMemory ID (from save_memory or search_memory results)
repoYesRepository name (as shown in list_repos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return payload (full content, tags, timestamps), which usefully signals a read operation, but it says nothing about missing-ID errors, permissions, or whether retrieval counts against any limits.

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?

Two short sentences with zero filler: the action comes first and the return payload second. Nothing is buried or redundant.

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 a simple two-parameter read tool with full schema coverage and no output schema, the description covers purpose and return shape adequately. It could have noted the error behavior on an unknown ID, but nothing essential to invoking 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 description coverage is 100%, so both repo and id are already documented in the schema, including where the ID comes from. The description adds only the notion of lookup by ID, which duplicates rather than extends the schema.

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 gives a specific verb and resource ("Retrieves a specific memory") plus a lookup key ("by ID"), which is unambiguous. It does not differentiate this tool from related siblings such as search_memory or forget_this, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no stated preconditions, and no mention of alternatives (e.g., use search_memory when the ID is unknown). The only hint at usage is the phrase "by ID," which leaves the agent to infer that an ID must first be obtained elsewhere.

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