Skip to main content
Glama
emasoudy

mem0-custom-mcp

by emasoudy

search_memories

Search stored memories using semantic queries to find relevant information. Optionally specify a limit to narrow results.

Instructions

Search for memories using semantic search

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results (default: 10)
queryYesSearch query
user_idNoUser ID (defaults to env DEFAULT_USER_ID)
Behavior2/5

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

No annotations are provided, so the description must carry behavioral disclosure. It only states 'semantic search' and omits critical behavioral traits such as result ordering, pagination, prerequisites (like user_id), performance implications, or read-only status.

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 a single, concise sentence that starts with the action verb and resource, wasting no words. It is optimally structured for quick comprehension.

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

Completeness2/5

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

With no output schema, the description should explain return values and search behavior, but it does not. It also lacks details on default limit, user_id handling, and ranking semantics, making it incomplete for a search tool.

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?

The schema includes descriptions for all three parameters (query, limit, user_id), providing 100% coverage. The description adds no extra parameter meaning beyond the schema, so it earns the baseline score of 3.

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 the tool performs a semantic search over memories, with a specific verb and resource. It distinguishes from sibling tools like get_memories by highlighting 'semantic search', though it could more explicitly contrast with them.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives like get_memories or add_memory. The description only defines what it does, leaving the agent without directional context for selection.

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/emasoudy/mem0-custom-mcp'

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