Skip to main content
Glama

Build XMemo context

recall_context
Read-onlyIdempotent

Assemble relevant memories into a bounded context pack, filtered by scope, path, or bucket. Use when an answer needs multiple memory items rather than a quick lookup.

Instructions

Build a read-only, bounded context pack from multiple relevant memories. Use it when an answer needs several memory items or scoped/path-filtered context; use recall for a quick best-effort lookup or get_project_context for a whole-project snapshot. max_items/max_tokens bound output: memories that do not fit are omitted and reported, so raise max_tokens or use recall when you need the records themselves.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoCandidate-result limit; 0 derives it from the item/token budgets.
queryYesNatural-language query used to rank memories for the context pack.
scopeNoOptional authorized scope; blank uses the token default.
bucketNoAccessible bucket filter; % includes all accessible buckets.%
team_idNoOptional exact authorized team filter.
agent_idNoOptional client-supplied agent label for memory attribution.
max_itemsNoMaximum memories rendered in the context pack.
max_tokensNoApproximate token budget for the rendered context pack.
memory_typeNoMemory type filter; auto searches the normal mixed set.auto
output_jsonNoTrue returns the full structured pack; false returns rendered context text.
path_filterNoCase-insensitive memory-path pattern; % matches all paths.%
prefer_workingNoTrue prioritizes active working/session-state signals.
agent_instance_idNoOptional stable, non-secret agent instance ID for per-client attribution.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed27 schema fields changedv0.4.179
    • removedInput schema / properties / agent_id / title
      Removed value: -"Agent Id"
    • removedInput schema / properties / agent_instance_id / title
      Removed value: -"Agent Instance Id"
    • changedInput schema / properties / bucket / description
      Previous value: -"Memory bucket or namespace to read from or write to; use % only for tools that support wildcard reads."New value: +"Accessible bucket filter; % includes all accessible buckets."
    • removedInput schema / properties / bucket / title
      Removed value: -"Bucket"
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return."New value: +"Candidate-result limit; 0 derives it from the item/token budgets."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • changedInput schema / properties / max_items / description
      Previous value: -"Maximum number of memory items to include."New value: +"Maximum memories rendered in the context pack."
    • removedInput schema / properties / max_items / title
      Removed value: -"Max Items"
    • changedInput schema / properties / max_tokens / description
      Previous value: -"Approximate maximum response size."New value: +"Approximate token budget for the rendered context pack."
    • removedInput schema / properties / max_tokens / title
      Removed value: -"Max Tokens"
    • changedInput schema / properties / memory_type / description
      Previous value: -"Memory type/category filter or value, such as episodic, identity, procedural, semantic, working, auto, or %."New value: +"Memory type filter; auto searches the normal mixed set."
    • removedInput schema / properties / memory_type / title
      Removed value: -"Memory Type"
    • changedInput schema / properties / output_json / description
      Previous value: -"Return a machine-readable JSON response instead of a human-readable summary."New value: +"True returns the full structured pack; false returns rendered context text."
    • removedInput schema / properties / output_json / title
      Removed value: -"Output Json"
    • changedInput schema / properties / path_filter / description
      Previous value: -"Memory path filter; % matches all paths."New value: +"Case-insensitive memory-path pattern; % matches all paths."
    • removedInput schema / properties / path_filter / title
      Removed value: -"Path Filter"
    • changedInput schema / properties / prefer_working / description
      Previous value: -"Whether to prioritize working/session-state memories in retrieval."New value: +"True prioritizes active working/session-state signals."
    • removedInput schema / properties / prefer_working / title
      Removed value: -"Prefer Working"
    • changedInput schema / properties / query / description
      Previous value: -"Natural-language question or search text."New value: +"Natural-language query used to rank memories for the context pack."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • changedInput schema / properties / scope / description
      Previous value: -"Optional scope that narrows memory access; leave blank for the token default."New value: +"Optional authorized scope; blank uses the token default."
    • removedInput schema / properties / scope / title
      Removed value: -"Scope"
    • changedInput schema / properties / team_id / description
      Previous value: -"Optional team/workspace identifier for team-scoped memory access."New value: +"Optional exact authorized team filter."
    • removedInput schema / properties / team_id / title
      Removed value: -"Team Id"
    • removedInput schema / title
      Removed value: -"recall_contextArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"recall_contextOutput"
  2. First observedv0.4.176

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, idempotentHint=true, destructiveHint=false), the description discloses that memory items that do not fit the bounds are omitted and reported, and advises raising max_tokens or using recall if the records themselves are needed. This adds real behavioral context not present in the structured annotations.

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 description is two sentences, front-loads the core purpose, then weaves in usage guidance and a behavioral caveat. Every clause earns its place; no filler or redundancy.

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

Completeness5/5

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

Given the tool has 13 parameters and an output schema, the description covers the essential context: what the tool does, when to use it, how bounds behave, and how it differs from siblings. The output schema handles return format details, so the description doesn't need to describe them. It's complete for this complexity.

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 description coverage is 100%, so the baseline is 3. The description adds meaning by explaining that max_items/max_tokens bound the output and that omitted items are reported, which ties these parameters to observable behavior. This goes slightly beyond the schema's field-level descriptions.

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?

The description uses a specific verb+resource: 'Build a read-only, bounded context pack from multiple relevant memories.' It clearly distinguishes from siblings by explicitly naming recall and get_project_context as alternatives with different purposes. This makes the tool's unique role immediately obvious.

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?

The description states exactly when to use this tool: 'when an answer needs several memory items or scoped/path-filtered context.' It also provides exclusions and alternatives: 'use recall for a quick best-effort lookup or get_project_context for a whole-project snapshot.' This is explicit, actionable guidance.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yonro/memory-os-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server