Skip to main content
Glama

read_memory

Retrieve the full content and metadata of a specific memory entry by ID from the Memory Vault, using local, global, or all scope to fetch exactly the stored record you need.

Instructions

Reads the full content and metadata of a specific memory entry by ID from the Memory Vault.

Args: memory_id: The ID of the memory entry to retrieve (e.g. 'mem_a1b2c3d4'). workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory. scope: Lookup scope ('local', 'global', or 'all'). Default is 'local'.

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": "read_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNolocal
memory_idYes
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.2
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "local",
      +  "title": "Scope",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / workspace_dir / default
      Previous value: -"."New value: +""
  3. First observedv1.0.0

TDQS

A3.7/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 burden. It does convey read-only semantics via 'Reads' and that the full content plus metadata is returned, plus the workspace resolution fallback chain for workspace_dir. It does not disclose behavior on a missing ID, cross-scope lookup behavior, or any permissions/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?

The purpose sentence is front-loaded in one line, followed by a compact Args block that adds only parameter detail. No filler, no repetition of the tool name or schema boilerplate.

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?

With an output schema present, the description needn't explain return values, and parameter meaning is fully covered. Remaining gaps for a simple read tool are error/not-found behavior and cross-scope resolution semantics. These are minor rather than blocking.

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%, so the description must compensate, and it largely does: every one of the 3 parameters is explained, including an ID format example, the empty-string workspace_dir fallback ('engine.default_workspace from the config, else the server's current directory'), and the allowed scope values with their default. It omits explaining how 'all' scope behaves during a lookup, which keeps it from a 5.

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 names a specific verb and resource: 'Reads the full content and metadata of a specific memory entry by ID from the Memory Vault.' It also states the return content (content plus metadata), which goes beyond the title. It does not explicitly differentiate itself from siblings like recall_memory or search_memory, so it stops 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 Guidelines3/5

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

Usage is only implied: retrieval requires a known memory_id (the example 'mem_a1b2c3d4' hints at this), which distinguishes it from keyword search. There is no explicit statement of when to prefer this tool over recall_memory/search_memory, or what to do when you don't already have an ID. Adequate but with a clear gap.

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