Skip to main content
Glama

explain_memory

Debug unexpected search results by explaining memory match reasons including retrieval path, freshness, scope, and matched terms.

Instructions

Explain why memories matched a query: retrieval path, freshness, scope, and matched terms. Read-only. Use when search results seem unexpected and you need to debug ranking or scope filtering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query to explain — natural language or keywords, e.g. 'auth migration'
limitNoMaximum number of matched results to analyze and explain (default: 5)
scopeNoRestrict to a specific scope, e.g. 'project:myapp'. Omit to use default scope
sessionIdNoSession identifier to infer session-scoped search, e.g. 'abc123'
allScopesNoSet to true to search across all scopes instead of the default scope
categoryNoFilter results by memory category, e.g. 'preference', 'decision', 'fact'
profileNoRetrieval profile that tunes ranking: 'debug' for technical, 'fact-check' for precision
Behavior3/5

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

No annotations provided, so description carries full burden. Declares read-only, which is good, but does not disclose rate limits, auth needs, or what happens with no results or edge cases.

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?

Two sentences, highly concise, front-loaded with purpose and usage. No fluff.

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 7 parameters and no output schema, the description explains input purpose but does not describe output structure. Minimally complete but lacks return value details.

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

Parameters3/5

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

Schema description coverage is 100%, so description adds little beyond schema. The description mentions retrieval path, freshness, etc., but these are implied by parameters. Baseline 3.

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?

Explicitly states the tool explains why memories matched a query, listing specific aspects (retrieval path, freshness, scope, matched terms). Distinguishes itself from sibling search_memory by focusing on debugging ranking/scope filtering.

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?

Provides clear when-to-use guidance: 'Use when search results seem unexpected and you need to debug ranking or scope filtering.' Lacks explicit when-not-to-use or alternative references, but sufficient.

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/AliceLJY/recallnest'

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