Skip to main content
Glama

Recall context within a token budget

memory_recall_context

Load critical long-term memories into a limited context window by retrieving and greedily packing relevant information within a token budget.

Instructions

Returns the most critical memories for a query, greedily packed to fit a token budget, as a ready-to-inject context block. Use this to load long-term memory into a limited context window before answering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
userIdYes
tokenBudgetYesApproximate max tokens the returned context may use.
Behavior3/5

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

No annotations are present, so the description carries full burden. Discloses greedy packing and criticality ranking, but does not cover idempotency, state mutations, rate limits, or other behavioral traits. Adds some value beyond the name but lacks comprehensiveness.

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?

Two sentences efficiently convey the core function and usage. While concise and front-loaded, the description could benefit from a structured breakdown, but overall it avoids unnecessary words.

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?

Given the absence of annotations and output schema, the description partially covers purpose and usage but lacks details on parameter semantics, return format, and side effects. Adequate but not fully comprehensive for an agent to use without additional information.

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 only 33% (only tokenBudget has a description). The tool description does not explain query or userId parameters, leaving them undefined. Fails to compensate for the low schema coverage, so minimal meaning is added beyond the schema.

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?

Describes returning the most critical memories for a query, greedily packed within a token budget. Clearly states verb and resource, distinguishing from sibling tools by emphasizing the token budget and context-block output, though not explicitly differentiating from memory_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Explicitly states to use this tool to load long-term memory into a limited context window before answering. Provides clear context for when to use, but does not explicitly exclude alternatives like memory_search or mention when not to use.

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

Install Server

Other Tools

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/John-CEO-HQ/qwen-memory-mcp'

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