Skip to main content
Glama
zvec-ai

zvec-mcp-server

Official
by zvec-ai

embedding_search

Read-onlyIdempotent

Search Zvec vector stores by converting natural language queries into embeddings and retrieving similar items from a specified collection.

Instructions

Convert a natural language query to a vector and perform similarity search.

Embeds query_text using OpenAIDenseEmbedding, then runs a vector similarity search against the specified field in the collection. This is the high-level search interface: supply a natural language query, get ranked results.

OpenAI connection is read from environment variables: OPENAI_API_KEY, OPENAI_BASE_URL (optional), OPENAI_EMBEDDING_MODEL (optional). The embedding dimension is inferred from the collection schema automatically.

Args: params (EmbeddingSearchInput): - collection_name: Target collection - field_name: Vector field to search - query_text: Natural language query to embed and search with - topk: Number of results (default: 10) - filter: Optional scalar filter expression - response_format: Output format ('markdown' or 'json')

Returns: str: Search results sorted by similarity, or error

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare the tool as read-only, non-destructive, idempotent, and open-world. The description adds valuable behavioral details: it uses OpenAI embeddings via environment variables, infers embedding dimension from the schema, and returns results sorted by similarity. This goes beyond annotations but does not cover error specifics or rate limits.

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 and well-structured: it opens with a one-sentence summary of the core functionality, then provides process details, environment setup, parameter overview, and return value. Every sentence adds diagnostic value without 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's moderate complexity, the description covers the essential workflow, prerequisites (env vars), input parameters, and return type. It lacks explicit error handling details, but the output schema exists and the description mentions error returns, making it sufficiently complete for an agent to use correctly.

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?

The input schema has parameter descriptions, but the top-level schema description coverage is 0%. The tool description compensates by explaining the embedding process, environment variable requirements, and the overall workflow, adding meaning beyond the schema for critical parameters like 'query_text' and 'field_name'.

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 the tool converts a natural language query to a vector and performs similarity search. It distinguishes itself from sibling tools like 'vector_query' and 'generate_dense_embedding' by labeling itself as the 'high-level search interface', making its role and scope immediately clear.

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 positions this tool as the 'high-level search interface' for natural language queries, implying it should be used for general semantic search. However, it does not explicitly state when to avoid it or mention specific alternatives among siblings like 'multi_vector_query' or 'vector_query', leaving some ambiguity.

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/zvec-ai/zvec-mcp-server'

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