Skip to main content
Glama

vector_store_add

Add text to a named vector store collection with embeddings for later similarity search. Specify collection and text; optional metadata, model, and provider overrides.

Instructions

Embed and store text in a named collection for later similarity search.

Embeddings use your configured keys in order: Voyage → OpenAI → Gemini → local hash, unless overridden via provider/model/dimensions params or EMBEDDING_* env vars.

Args: collection: Logical bucket name (e.g. "project-docs", "kb"). text: Full text to embed and store. doc_id: Optional stable id; a UUID is generated if omitted. metadata_json: Optional JSON object string (e.g. {"source":"readme.md"}). provider: Embedding provider override (openai, voyage, gemini, local). Empty = auto-detect. model: Embedding model override (e.g. "text-embedding-3-large"). Empty = provider default. dimensions: Output dimensions override (integer as string). Empty = provider default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
modelNo
doc_idNo
providerNo
collectionYes
dimensionsNo
metadata_jsonNo{}

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully carries the burden and excels. It discloses the provider selection order (Voyage → OpenAI → Gemini → local hash), override mechanisms, env var config, optional doc_id UUID generation, and the metadata_json format. This goes well beyond the bare schema and gives the agent critical operational knowledge.

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 well-structured and appropriately sized. The opening sentence states the purpose, the provider order is a necessary complexity, and the Args list is compact and scannable. Every sentence contributes value without bloat.

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?

For a tool with 7 parameters, no annotations, and no schema descriptions, the description is remarkably complete. It covers the embedding pipeline, all parameters, provider override logic, and configuration via env vars. With an output schema present, the lack of return value detail is acceptable. The only minor omission is behavior for unknown collections, but this does not undermine overall completeness.

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%, but the description thoroughly explains every parameter in the Args section: collection's logical name, text's full text to embed, doc_id's optional stable id, metadata_json's form, and provider/model/dimensions as overrides. This adds substantial meaning beyond the schema's bare types and defaults.

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's function: 'Embed and store text in a named collection for later similarity search.' The verb 'embed and store' plus resource 'named collection' is specific and distinguishes it from sibling tools like vector_store_search and vector_store_list.

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 gives strong context for when to use this tool (when adding text to a vector store for later retrieval) and implicitly contrasts with search/list siblings. However, it does not explicitly state alternatives or when-not-to-use, such as 'use vector_store_search to query.'

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/YokiiDesu/vending-machine-mcp'

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