Skip to main content
Glama

memory_semantic_search

Find relevant memories by semantic similarity using vector embeddings. Supports previews, filters, and version tracking.

Instructions

Perform a semantic search using vector embeddings.

Returns compact previews by default. Use content_mode="full" for complete content.

Args: query: Search query text top_k: Maximum number of results (default: 5) metadata_filters: Optional metadata filters min_score: Minimum similarity score threshold content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content preview_chars: Max chars for preview (default: 300, ignored when content_mode="full") fields: Optional list of fields to return. Include "score" to keep {memory, score} envelope; omit "score" for flat list of memory dicts. follow: Lineage mode — "latest" resolves each result to its current version, "active" excludes superseded memories, "full_history" expands supersession chains.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo
metadata_filtersNo
min_scoreNo
content_modeNopreview
preview_charsNo
fieldsNo
followNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It details follow modes, content_mode behavior, fields parameter effects, and preview truncation. However, it does not mention performance implications, rate limits, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is detailed and well-structured with a clear args list, but it is somewhat lengthy. Every sentence adds value, but slight trimming could improve conciseness without losing 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 (8 parameters, rich schema, and an output schema), the description covers all key aspects: search behavior, content modes, follow lineage, and field customization. It is complete and leaves no major gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, but the description provides thorough explanations for all 8 parameters, including default values and behaviors (e.g., content_mode, follow modes, fields envelope). This adds significant meaning 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 it performs semantic search using vector embeddings, which is specific and distinct from siblings like memory_hybrid_search. It explains that it returns compact previews by default and covers content modes.

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?

While the description explains content_mode and follow options, it lacks explicit guidance on when to use this tool versus alternatives such as memory_hybrid_search or memory_list. The usage context is implied but not directly stated.

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/agentic-box/memora'

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