Skip to main content
Glama

reqs_batch_embed

Store precomputed embedding vectors for multiple requirements in one call, keeping requirement text private and data local. Ensures consistent vector dimensions across all stored embeddings.

Instructions

Store embeddings for multiple requirements at once.

Same preconditions as reqs_embed: you compute the vectors yourself and pass finished numbers, the requirement text never reaches this tool, and codebugs stores them locally and sends them nowhere.

Every vector in one call must have the same number of components as every other vector in the call AND as the vectors already stored in this tracker; empty vectors, non-numbers, NaN and infinity are refused. The self-consistency rule is a separate one: in an empty tracker there is nothing to compare against, so without it a single call could create the mixed state the rules exist to prevent.

Args:

  • embeddings: Dict mapping requirement ID to float vector

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
embeddingsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.2

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses local-only storage, no exfiltration, strict dimension consistency across the call and tracker, refusal of empty/non-number/NaN/infinity values, and the rationale for the self-consistency rule.

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?

Purpose is front-loaded and each block adds preconditions, validation, or argument semantics. The self-consistency explanation is somewhat verbose but still earns its place by clarifying an otherwise surprising edge case.

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?

With a single parameter and a detailed description covering preconditions, privacy, validation, and dimensionality, an agent has enough to invoke it correctly. An output schema exists, so the lack of return-value discussion is not a gap.

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 maps 'embeddings' to a dict of requirement ID to float vector, which adds meaning beyond the generic object schema. It also clarifies per-vector constraints such as same dimensionality and rejecting NaN/infinity.

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 first sentence names a specific verb ('Store') and resource ('embeddings for multiple requirements'), and the phrase 'multiple... at once' plus the reference to reqs_embed distinguishes this batch tool from the single-embedding sibling.

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?

It states clear preconditions: callers compute vectors themselves, pass finished numbers, and requirement text never reaches the tool. The alternative reqs_embed is referenced, but it does not explicitly say 'use reqs_embed for a single requirement,' so the when-not-to-use guidance is slightly implicit.

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

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/faxik/codebugs'

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