Skip to main content
Glama

search_memory

Find relevant indexed memories with hybrid relevance ranking (vector + BM25 + reranking), optionally filter by date, to support tasks, debugging, and writing.

Instructions

Search indexed memories by hybrid relevance (vector + BM25 + reranking) and return ranked results with optional temporal filtering. The shown score is a fused ranking score (0-100%), NOT pure cosine similarity — read it as relative ranking within this result set, not as match confidence. Read-only, but may fire stored reminders as a side effect. Use proactively at the start of tasks, when debugging, writing, or when the user references past work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoFilter memories stored after this date (ISO format YYYY-MM-DD, or relative like '最近30天', 'last 7 days')
graphNoEnable KG graph traversal (PPR) for relationship-aware search. Use when query involves entity relationships (e.g. 'what tools does Alice use', 'Bob的朋友').
limitNoMax results to return
queryYesSearch query — natural language or keywords
scopeNoOptional explicit scope
beforeNoFilter memories stored before this date (ISO format YYYY-MM-DD, or relative)
renderNoResult rendering mode: verbatim (default, original order) or highlight (reorder by contextual relevance to query)verbatim
profileNoRetrieval profile
validAtNoQuery memories valid at a specific point in time (ISO date, e.g. '2025-06-15'). Returns only memories whose validity window covers this date.
categoryNoFilter by memory category: profile (identity/background), preferences (habits/style), entities (projects/tools/people), events (past happenings), cases (problem-solution pairs), patterns (reusable workflows)
topicTagNoFilter by topic tag (e.g. 'auth', 'deploy', 'testing'). Only returns memories tagged with this topic.
allScopesNoWhen true, explicitly allow cross-scope search
sessionIdNoOptional session identifier to infer session:<id> scope
reconstructNoReturn LLM-synthesized reconstruction alongside raw results. Requires RECALLNEST_CONSTRUCTIVE_RETRIEVAL=true.
detail_levelNoResult detail level: brief (ID+score+one-liner), normal (default, table), full (include metadata), adaptive (per-result L0/L1/L2 fidelity by relevance within an 8k token budget — high-relevance gets full text, lower gets summary/one-line)normal
includeExpiredNoWhen true, include expired memories in results (demoted 80%). Default: only active/non-expired.
includeArchivedNoWhen true, also return archived/superseded/consolidated memories (default: only active)
includeRelatedScopesNoWhen true, also query configured related scopes from scopeRelations and show them in a separate sidecar section. Requires an explicit or inferred scoped search; never changes the main result ranking.
Behavior5/5

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

With no annotations provided, the description carries the full burden and excels: it discloses the important caveat that the score is a fused ranking score, not cosine similarity, and that the tool is read-only but may fire stored reminders as a side effect. These are non-obvious behavioral traits that materially affect interpretation and safety.

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 three sentences, each earning its place: the first defines the core operation, the second clarifies output semantics, and the third covers side effects and usage timing. It is front-loaded and free of filler.

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

Completeness4/5

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

For an 18-parameter tool with no output schema, the description gives essential high-level context: hybrid retrieval, ranked results, score interpretation, side effects, and recommended usage scenarios. However, it does not describe the return format or pagination behavior, which would be helpful given the tool's complexity, but the extensive schema compensates for most gaps.

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 the baseline is 3. The description adds only general context about hybrid relevance and temporal filtering, but does not explain specific parameters beyond what the schema already provides. It neither detracts from nor significantly enhances the schema's parameter documentation.

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 clearly states the tool searches indexed memories using hybrid relevance (vector + BM25 + reranking) and returns ranked results with temporal filtering. This distinguishes it from siblings like store_memory, auto_capture, and memory_drill_down by naming the specific retrieval behavior and output shape.

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?

It provides concrete guidance on when to use the tool: proactively at task start, when debugging, writing, or when the user references past work. It does not explicitly mention when not to use it or name alternative tools, so it stops short of the full exclusionary guidance that would earn a 5.

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