Skip to main content
Glama

vector_store_search

Search a vector collection using natural-language queries. Auto-matches the embedding provider/model used at creation, with optional overrides.

Instructions

Semantic search over a collection using the same embedding route as vector_store_add.

By default, the query embedding is auto-matched to the collection's stored provider/model. Use provider/model/dimensions to override.

Args: collection: Collection name used with vector_store_add. query: Natural-language query. limit: Max results (1–50). provider: Embedding provider override for the query (openai, voyage, gemini, local). Empty = auto-detect from collection. model: Embedding model override (e.g. "voyage-code-3"). Empty = auto-detect from collection. dimensions: Output dimensions override (integer as string). Empty = auto-detect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
modelNo
queryYes
providerNo
collectionYes
dimensionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It explains the auto-matching of provider/model and the ability to override, which are valuable non-obvious behaviors. It stops short of covering auth, rate limits, or error cases, but the core behavior is transparent.

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 front-loaded with a clear purpose, includes a brief default-behavior note, and then provides a compact Arg list. Every sentence contributes value, with no redundancy or filler.

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 that an output schema exists, the description sufficiently covers the tool's behavior and all parameters. It provides enough context for an agent to select and invoke the tool correctly, even without explicit failure-mode details.

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 Args section adds detailed meaning to all six parameters, including the relationship to vector_store_add, the natural-language nature of the query, the 1–50 limit bound, valid provider values, an example model, and the string form of dimensions. This fully compensates for the schema's lack of parameter descriptions.

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 opens with a specific verb ('Semantic search') and identifies the resource ('collection'), and it ties the behavior to vector_store_add's embedding route. This makes the tool's purpose clear and distinguishes it from generic search tools.

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 collections created with vector_store_add, which gives some context for when to use it. However, it does not explicitly mention alternatives like query_knowledge or provide exclusions, so usage guidance is largely implied rather than 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/YokiiDesu/vending-machine-mcp'

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