Skip to main content
Glama

reqs_search_similar

Find requirements semantically similar to a query embedding, ranked by cosine similarity, with optional status and similarity filters. Handles mismatched vector dimensions gracefully.

Instructions

Find requirements semantically similar to a query.

Pass a query embedding (from the same model used to embed requirements). You compute it yourself; no text is sent anywhere by this tool, and the query vector is not stored.

Requirements whose stored vector has a different number of components than your query are EXCLUDED from the search rather than compared, so one foreign vector can no longer make the whole search fail. That also means they are invisible here: if you get fewer results than you expect, call reqs_embedding_stats, which reports which widths this tracker holds. A query vector that is empty or contains NaN or infinity is refused, because it would match nothing and return an empty list indistinguishable from an empty tracker.

Returns requirements ranked by cosine similarity.

Args:

  • query_embedding: Query vector

  • limit: Max results (default 10)

  • min_similarity: Minimum cosine similarity (default 0.3)

  • status: Optional status filter

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
statusNo
min_similarityNo
query_embeddingYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. First observedv0.2.2

TDQS

A4.8/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 behavioral disclosure burden and does so thoroughly. It explains that mismatched-width vectors are excluded rather than failing the search, empty/NaN/infinity vectors are refused, the query is not stored, and results are ranked by cosine similarity.

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?

The description is longer than average but every section adds necessary behavioral or usage detail, and the Args list provides quick parameter reference. It is front-loaded with the core purpose and organized into digestible paragraphs with clear caveats.

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?

The tool has an output schema, so return-value details are not required. The description covers preconditions, edge cases, failure behavior, and even gives a follow-up tool for diagnostics. For a semantic-search tool with no annotations, this is highly complete.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It does so by explaining each parameter: query_embedding is the query vector with model-matching and validity constraints, limit is max results, min_similarity is a cosine threshold, and status is an optional filter. This adds meaningful semantics beyond the bare schema titles.

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 and resource: 'Find requirements semantically similar to a query.' It clearly differentiates this semantic-search tool from other requirement operations by emphasizing embedding-based similarity and even references the alternative reqs_embedding_stats for a related diagnostic case.

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

Usage Guidelines5/5

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

The description gives explicit usage conditions: pass a query embedding from the same model used for requirements, compute it yourself, and note that no text is sent or stored. It also tells the agent what to do when results are fewer than expected by naming reqs_embedding_stats as the diagnostic follow-up.

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