Skip to main content
Glama

vector_embedding_cosine_hnsw_indexer

Build HNSW graphs for cosine-based ANN retrieval, enabling sub-millisecond nearest neighbor searches.

Instructions

Builds high-performance Hierarchical Navigable Small World (HNSW) vector graphs for sub-millisecond approximate nearest neighbor (ANN) retrieval. (0.045 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does add valuable context: the cost ('0.045 USDC on Base L2') signals this is a paid operation tied to the paymentSignature parameter, and it discloses that the tool constructs an index graph. However, it omits other behavioral traits an agent would want for an index builder — input format expectations (vector dimensions, data volume), persistence/statefulness of the built index, and how results are returned.

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?

A single, front-loaded sentence that opens with the core verb and resource before appending the cost as a parenthetical. The quality claims ('high-performance', 'sub-millisecond') double as use-case signals rather than pure marketing fluff, so they earn their place. Only minor phrasing polish could improve it.

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?

For a complex index-building tool with no output schema and only generic schema descriptions, the description explains the purpose and cost well but leaves critical operational gaps. An agent still cannot determine what to put in the payload to actually build an index (expected vector format, dimension requirements, return shape such as an index ID). The presence of the cosine metric is only inferable from the tool name, not the description.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3. The paymentSignature description is fairly specific ('Base L2 USDC micropayment signature or transaction hash for x402 settlement') and the tool description's cost hint reinforces it. However, the payload description 'Input parameters or JSON string payload for the tool execution' is generic boilerplate that gives an agent no clue what an HNSW index build actually requires (vectors, dimension, metric), and the description doesn't compensate for that gap.

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 states a specific verb ('Builds'), a concrete resource ('HNSW vector graphs'), and an explicit purpose ('sub-millisecond approximate nearest neighbor (ANN) retrieval'). This clearly distinguishes it from sibling vector tools like vector_quantization_product_quantizer, vector_embedding_dimension_reducer_pca, and deduplicate_embeddings_cosine, which do compression, reduction, and dedup respectively — none build ANN indexes. An agent can identify what this tool does without opening the schema.

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 a use case through performance language ('high-performance', 'sub-millisecond') and the ANN purpose, suggesting it's for fast similarity search at scale. However, it names no alternatives and gives no when/when-not guidance against the many vector-processing siblings (product quantizer, PCA reducer, cosine dedup) that an agent might otherwise confuse it with. The guidance is implied rather than explicit.

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

Deploy Server

Other Tools