Skip to main content
Glama

memory_retrieve

Retrieve memories by query and namespace, returning score, stored_at, and staleness metadata to assess relevance and freshness.

Instructions

Retrieve memories by query and namespace with additive v2 metadata including score, stored_at, and staleness.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real value by disclosing the returned metadata (score, stored_at, staleness) that no output schema provides. However, it says nothing about permissions, defaults, behavior when namespace is omitted, or how limit affects results — gaps that matter for a tool with zero annotation coverage.

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?

A single front-loaded sentence with no filler; the retrieval axes come before the metadata clause. "Additive v2 metadata" is internal jargon that costs a little clarity but is not wasted space.

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

Completeness2/5

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

The description partially compensates for the missing output schema by naming return fields, which is helpful. But for a three-parameter, unannotated tool it leaves too much open: no parameter semantics beyond names, no pagination or default behavior, and no indication of what an empty result looks like.

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 coverage is 0% and all three parameters are bare, so the description must compensate. It names query and namespace but adds no format, matching behavior, or defaults, and never mentions limit at all, leaving a third of the parameters completely unexplained.

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 a specific verb and resource ("Retrieve memories") plus the two axes of retrieval, query and namespace. It is clear what the tool does, but it never distinguishes itself from siblings like memory_list or memory_history_list, leaving the agent to infer which retrieval variant applies.

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 by "by query and namespace" — an agent can guess this is the search-style retrieval versus a plain listing. There is no explicit when-to-use, when-not-to-use, or named alternative, so guidance stops at inference.

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