Skip to main content
Glama
MCP Memory Server

MCP Memory Server

get_memory

Retrieve a stored memory by its ID and type (entity, concept, or session) to recall project-specific context across chat sessions.

Instructions

Get a memory by ID and type

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

Input Schema

NameRequiredDescriptionDefault
idYes
typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but discloses almost nothing: not whether a missing ID raises an error or returns null, not whether the supplied type must match the stored memory's actual type, and not what the returned record contains. Read-only intent is only implied by the verb "Get".

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?

Eight words, front-loaded with the verb and resource, with zero filler. The terseness is a virtue in structure even though the content itself is thin, which is penalized in the other dimensions rather than this one.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

As a simple two-parameter lookup with no output schema and no annotations, the definition is minimal but not obviously wrong for an expert caller. However, with zero schema coverage on both parameters and no guidance on failure behavior, an agent cannot be fully confident about what a call guarantees.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the schema names the parameters without explaining them. The description merely restates "by ID and type" and does not clarify the semantics of the type enum values (entity/concept/session) or whether type is a filter, a disambiguator, or a correctness check.

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?

"Get a memory by ID and type" names a specific verb and resource plus the two lookup keys, which reads clearly as a single-record fetch as opposed to siblings like list_memories or search_memories. It stops short of explicitly differentiating itself from those siblings, so a 4 rather than 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 statement of when to use this tool versus alternatives (e.g., use this when you already have an ID, use search_memories when you only have a query). The only implicit cue is that an ID is required, which the schema already enforces.

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