Skip to main content
Glama

memory_semantic_search

Search memories using vector embeddings to find semantically similar content. Filter by metadata, score threshold, and lineage mode.

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 explains the default content mode, the effect of `content_mode`, `preview_chars`, and the `follow` lineage modes. It also describes the return format changes based on `fields`. No side effects are relevant for a read tool. Good disclosure of key behaviors.

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

Conciseness3/5

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

The description is moderately concise. It starts with a clear one-liner, then uses an `Args` section for details. However, some explanations (e.g., for `fields` and `follow`) are verbose and could be tightened without losing clarity. It earns its keep but has some redundancy.

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

Completeness4/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, 1 required, and an output schema, the description covers the main behavior and return format. It explains the two content modes, lineage resolution, and field selection. It does not address error handling or edge cases, but it is sufficient for an AI agent to use the tool correctly in most situations.

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?

Schema description coverage is 0%, so the description must compensate. It does so comprehensively: each of the 8 parameters is described with its purpose, default value, and behavior. For example, `fields` explains the envelope vs. flat list distinction, and `follow` details the three lineage modes. This significantly adds value over the raw schema.

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?

Clearly states it performs semantic search using vector embeddings. The description differentiates from other search tools like hybrid search by name, but doesn't explicitly contrast them. The verb 'performs' and resource 'semantic search' are specific.

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?

Provides guidance on default preview mode and how to get full content, and explains the `follow` and `fields` parameters. However, it does not explicitly state when to use this tool versus siblings like memory_hybrid_search or memory_list, nor when not to use it.

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