Skip to main content
Glama

Context Link

Get Memory

get_memory
Read-onlyIdempotent

Retrieve previously saved memory content by its namespace. Use this when the user wants to recall saved content. If you don't know the exact namespace, call List Memories first. Pass the session's mode if it has one.

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

Input Schema

NameRequiredDescriptionDefault
modeNoOptional mode for this session (e.g. 'customer-support'). Weights results toward that mode and includes memories saved in it; memories saved under another mode are excluded. Use the same mode for every Context Link call in the session, including Save Memory.
namespaceYesThe namespace/name of the saved memory to retrieve. A '[mode]/name' namespace (e.g. '[customer-support]/top-links') names a memory in that mode explicitly.

Output Schema

NameRequiredDescriptionDefault
foundYes
contentYes
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "Optional mode for this session (e.g. 'customer-support'). Weights results toward that mode and includes memories saved in it; memories saved under another mode are excluded. Use the same mode for every Context Link call in the session, including Save Memory.",
      +  "type": "string"
      +}
    • changedInput schema / properties / namespace / description
      Previous value: -"The namespace/name of the saved memory to retrieve"New value: +"The namespace/name of the saved memory to retrieve. A '[mode]/name' namespace (e.g. '[customer-support]/top-links') names a memory in that mode explicitly."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds the guidance about passing session mode, but the mode weighting/exclusion semantics live in the schema, not the description. Nothing is contradicted, but beyond annotations the description adds modest behavioral context.

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?

Three short sentences, all actionable, with the primary purpose front-loaded. The final sentence about mode is slightly terse ('if it has one') but no filler.

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?

Output schema exists, and annotations cover safety, so the description needn't explain returns. It covers purpose, trigger, prerequisite alternative, and mode handling; only mode exclusion/weighting nuance is deferred to the schema.

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 100%, so baseline is 3; the description adds marginal value by noting the session mode should be passed and by routing to list_memories when the namespace is unknown. The detailed mode weighting semantics are in the schema rather than the description.

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?

Specific verb+resource: 'Retrieve previously saved memory content by its namespace.' Clearly distinguished from siblings like save_memory and list_memories by the retrieval-by-namespace scope.

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?

Explicit trigger ('Use this when the user wants to recall saved content') plus a named alternative with condition: 'If you don't know the exact namespace, call List Memories first.' Also directs passing session mode.

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