Skip to main content
Glama

vector_retrieval

Read-onlyIdempotent

Rank caller-supplied embedding vectors by cosine similarity with deterministic tie-breaking to return the closest matches for a query vector.

Instructions

Rank supplied embedding vectors by cosine similarity with deterministic tie-breaking. No embedding generation or semantic truth verification. Caller-supplied provenance not verified.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>",
      "vectors": "<vectors>"
    },
    "name": "vector_retrieval"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
vectorsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, closed-world, non-destructive behavior, so the description only needs to add beyond that. It usefully adds deterministic tie-breaking and two explicit non-guarantees (no verification of provenance or semantic truth), which is meaningful context. It still says nothing about ordering guarantees on the output, handling of mismatched dimensions, or the 1000/256 caps.

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?

Three short sentences, front-loaded with the core behavior and followed by the two disclaimers. Every sentence earns its place and nothing is padded.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained and the description is adequate on the behavioral side. The missing piece is dimensional-compatibility guidance and the meaning of 'limit', which an agent cannot infer from a 0%-coverage schema for a numeric-vector tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it doesn't name or explain any of the three parameters — not the 1-1000 'limit', not the 256-dimension cap on query/vectors, and critically not the implied requirement that query and each vector share dimensionality. 'Supplied embedding vectors' only hints at the vectors parameter.

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?

The description opens with a specific verb+resource ('Rank supplied embedding vectors by cosine similarity') and states the algorithm, which pins down purpose unambiguously. It doesn't need to name siblings since entity_candidates, quote_integrity, and the rest are in unrelated domains; nothing in the description could be confused with them.

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?

'No embedding generation' and 'semantic truth verification' are genuine scope exclusions that tell an agent it must already hold vectors and must not treat the ranking as ground truth. There is no positive when-to-use sentence, but the negative boundaries effectively route usage for a single-purpose ranking tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.