Skip to main content
Glama

search_memory

Search stored memories using BM25 full-text search, weighted by importance and recency. Optionally filter by tags to narrow results.

Instructions

Search memories using BM25 full-text search with importance and recency weighting. Supports optional tag filtering to narrow scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query — natural language or keywords
limitNoMax results to return (default: 5)
tagsNoOnly search memories with these tags
Behavior4/5

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

With no annotations, the description fully bears the burden of transparency. It discloses the BM25 algorithm and importance/recency weighting, which are behavioral details beyond the schema. However, it omits potential limitations like pagination or result format.

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?

Description is two sentences, front-loaded with the core action, and no extraneous information. Every phrase earns its place.

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 no output schema, the description could be more complete by mentioning return format (e.g., relevance score) or error behavior. It adequately covers the main purpose and tag filtering but lacks guidance on handling edge cases or large result sets.

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?

Input schema has 100% description coverage, so baseline is 3. The description adds context for tag filtering ('Supports optional tag filtering to narrow scope') but does not significantly enhance meaning beyond the schema's parameter descriptions. The query parameter description is adequate.

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?

The description clearly states 'Search memories using BM25 full-text search with importance and recency weighting', providing a specific verb and resource. It distinguishes search from listing or retrieval tools but does not explicitly differentiate from siblings like 'list_memories' or 'get_relevant_context'.

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?

The description implies usage for content-based search but offers no explicit guidance on when to use this tool versus alternatives like 'list_memories' or 'get_relevant_context'. No when-not-to-use or alternative mentions.

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/AIsofialuz/agent-memory-hub'

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