Skip to main content
Glama

memory_search

Read-only

Find relevant past entries by meaning, not exact keywords. Use natural language queries to avoid rework and leverage prior knowledge.

Instructions

Search shared memory by meaning. Call this before starting work.

Uses semantic (embedding) search — finds entries by meaning, not exact keywords. Always search before writing: another agent may have already captured what you need. Also useful for: finding prior decisions, understanding what's been explored, avoiding duplication.

Args: q: What you're looking for, in natural language. project: Restrict to a project. Defaults to MCP_PROJECT if set. tag: Restrict to entries with this tag. limit: How many results (default 10, max 50). max_content_length: Truncate each entry's content to this many characters. Use when pulling results into an LLM context and large entries would dominate. Full content still accessible via memory_get.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesWhat you're looking for, in natural language.
projectNoRestrict to a project. Defaults to MCP_PROJECT if set.
tagNoRestrict to entries with this tag.
limitNoHow many results (default 10, max 50).
max_content_lengthNoTruncate each entry's content to this many characters. Use when pulling results into an LLM context and large entries would dominate. Full content still accessible via memory_get.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Discloses semantic embedding search behavior and the effect of max_content_length on results. Annotations already indicate read-only and non-destructive nature; the description adds valuable context beyond annotations without contradiction.

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?

Well-structured with a clear purpose line, then usage guidance, then parameter list. Every sentence provides value, concise without redundancy. Front-loaded with key information.

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's complexity (5 parameters, output schema exists), the description covers all aspects: purpose, search mechanism, usage recommendations, parameter details, and return value truncation. No gaps detected.

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 coverage is 100%, so baseline is 3. The description adds extra context for each parameter, such as 'defaults to MCP_PROJECT if set' for project and the purpose of max_content_length, improving clarity beyond the schema.

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 'Search shared memory by meaning' with a specific verb and resource. It distinguishes from keyword search by mentioning semantic embedding, and implicitly differentiates from sibling tools like memory_get and memory_list.

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 advises to call before starting work and always search before writing. Provides examples of when to use (finding prior decisions, avoiding duplication). Lacks explicit when-not-to-use or alternatives, but the guidance is clear and actionable.

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/NicolasPrimeau/artel'

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