Skip to main content
Glama
zvec-ai

zvec-mcp-server

Official
by zvec-ai

generate_dense_embedding

Read-onlyIdempotent

Generate dense embedding vectors from text for similarity search using OpenAI's embedding API.

Instructions

Generate a dense embedding vector for a piece of text using OpenAIDenseEmbedding.

Converts text into a fixed-length dense vector via the OpenAI (or compatible) embedding API. The resulting vector can be directly used for similarity search.

Args: params (GenerateDenseEmbeddingInput): - text: Text to embed - api_key: OpenAI API key (or OPENAI_API_KEY env var) - base_url: Custom API base URL for OpenAI-compatible endpoints - model: Embedding model name (default: text-embedding-3-small) - dimension: Output vector dimension (default: 1536)

Returns: str: JSON with text preview, model, dimension, and the dense vector

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is clear. The description adds return format details (JSON with preview, model, dimension, vector) but does not disclose behavioral traits like rate limits, cost implications, or fallback behavior when env vars are missing, which would be valuable given the reliance on an external API.

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 well-structured with an opening sentence stating the purpose, followed by an Args list and return type. It is appropriately sized for the complexity of the tool, though the bullet list could be slightly more concise. No redundant information is present.

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?

The description provides a complete picture of the tool's behavior: what it does, how to use it (parameters with defaults and env var fallbacks), and what it returns (JSON with specific fields). No output schema is provided, so the description compensates fully. The tool is simple and the description covers all necessary information for correct invocation.

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?

Despite schema description coverage being 0% (schema has descriptions for each parameter), the tool description adds meaningful context beyond the schema by summarizing each parameter with defaults and env var fallback (e.g., 'api_key: OpenAI API key (or OPENAI_API_KEY env var)'). This helps an agent understand the parameter semantics without inspecting 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 the tool generates a dense embedding vector from text using OpenAIDenseEmbedding, with explicit mention of converting text into a fixed-length vector for similarity search. This distinct purpose is well differentiated from sibling tools like embedding_search or vector_query, which use embeddings rather than generate them.

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?

The description implies use for generating embeddings for similarity search but does not explicitly state when to use this tool versus alternatives like embedding_search or vector_query. No exclusion criteria or comparison to siblings is provided, leaving the agent to infer usage without clear guidance.

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