Skip to main content
Glama

vector_quantization_product_quantizer

Compress 1536-dimensional floating-point embeddings into 8-bit codebook centroids, reducing size by 95% for efficient vector storage and retrieval.

Instructions

Product Quantization (PQ) engine compressing 1536-dimensional floating point embeddings by 95% into discrete 8-bit codebook centroids. (0.040 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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It adds meaningful details—95% compression, 8-bit centroids, and a 0.040 USDC Base L2 cost—but omits what the response contains, whether the codebook is trained per-call, and how payment is enforced. It is informative but not fully 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?

Two short sentences with no filler: the algorithm and compression ratio are front-loaded, and the cost is stated separately. Every word contributes useful information.

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

Completeness2/5

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

Given no output schema, no annotations, and a generic payload parameter, the agent cannot confidently construct a valid request. The payload format is unspecified and the return value is undefined, so the description hints at purpose but not at how to invoke the tool correctly.

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 description adds context about 1536-dimensional embeddings but does not explain how to structure them inside the generic payload string or what paymentSignature should represent beyond the schema's own description.

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 operation: compressing 1536-dimensional float embeddings via Product Quantization into 8-bit codebook centroids, with a 95% compression ratio. This clearly differentiates it from sibling embedding/dimensionality tools by naming the PQ mechanism and output representation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given about when to use this tool versus alternatives like vector_embedding_dimension_reducer_pca or vector_embedding_cosine_hnsw_indexer. The only usage signal is the implied one that it compresses embeddings, with no exclusions, prerequisites, or alternative routing.

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