Skip to main content
Glama

get_memory

Fetches a single learned fact by its mem_ ID so agents can retrieve specific stored memory details found through search or listing.

Instructions

One learned fact by its mem_ id (from search_memories or list_memories).

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

Input Schema

NameRequiredDescriptionDefault
memory_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it does signal that this is a single-record lookup rather than a listing. It says nothing about what happens with a nonexistent or malformed id (error vs. empty result) or whether access is scoped to the current user/workspace. Output schema exists, so the return shape itself doesn't need explaining here.

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?

A single sentence with no wasted words; the resource definition and the id-provenance hint are both front-loaded and immediately actionable.

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 one-parameter read tool with an output schema, the essentials are covered: what it returns, the id format, and where ids come from. The only real omission is failure behavior for invalid or missing ids, which would help an agent recover from errors.

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 0% – 'memory_id' has no description in the schema at all – so the description must compensate. It does so usefully by specifying the 'mem_' prefix convention and naming the two tools that produce valid ids, which is the key information an agent needs to supply a correct value.

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 the specific resource ('one learned fact') and its identifier format ('mem_ id'), which clearly separates it from the list/search siblings that return many facts. The retrieval verb is only implied by the phrasing, keeping it just short of a fully explicit verb+resource statement.

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?

'(from search_memories or list_memories)' tells the agent exactly what prerequisite state must hold before calling this tool, and implicitly routes to those siblings when no id is in hand. It stops short of any when-not guidance, e.g. what to do if the id is unknown or stale.

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