Skip to main content
Glama

search_memories

Search short-term memories using natural language questions. Retrieve relevant past decisions, context, or previously discussed topics by semantic meaning, not just keywords.

Instructions

Semantic search across short-term memories in demo.memories using Jina embeddings. Finds memories by meaning, not just keywords — ask a natural language question and get the most relevant matches. Use this to recall past decisions, find related context, or check if something was already discussed recently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language search query. Describe what you are looking for — semantic matching finds relevant results even without exact keywords.
limitNoMaximum number of results to return
sourceNo
unexpired_onlyNoWhen true (default), exclude expired memories from results
min_similarityNoMinimum cosine similarity threshold for results (range -1 to 1). Higher values return fewer but more relevant matches.
scopeNoSearch scope: "this_body" searches only the current profile, "all_bodies" searches across all personas.this_body
agent_bodyNoFilter results to a specific persona/body (e.g. "coco", "toto")
environmentNoFilter results to a specific environment (e.g. "production", "staging")
Behavior4/5

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

Without annotations, the description carries the full burden. It explains the semantic matching mechanism and relevance ranking, but does not explicitly state if the tool is read-only or describe side effects. However, the search nature implies non-destructiveness, and the description covers key behavioral aspects.

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 concise (three sentences) and front-loaded with the core purpose, followed by use cases. Every sentence adds value without redundancy.

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 the tool has 8 parameters and no output schema, the description is moderately complete. It explains the main functionality and use cases but does not clarify the return format (e.g., fields in results, sorting). This gap reduces completeness.

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 88%, so baseline is 3. The description adds value by explaining the 'query' parameter's semantic nature but does not enhance understanding of other parameters like 'limit', 'source', or 'min_similarity' beyond what schema already provides.

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 it performs semantic search across short-term memories using Jina embeddings, finding by meaning rather than keywords. It distinguishes from sibling tools like list_memories and recall by emphasizing natural language querying.

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?

The description provides explicit use cases: recalling past decisions, finding context, checking recent discussions. However, it lacks guidance on when not to use this tool versus alternatives, which would improve clarity further.

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/Marsmanleo/MarsNMe'

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