Skip to main content
Glama
rush-db

RushDB MCP Server

Official
by rush-db

semanticSearch

Read-only

Run direct vector similarity search over records whose property is indexed with createEmbeddingIndex. Deprecated alias for vectorSearch; use vectorSearch for new integrations.

Instructions

Deprecated alias for vectorSearch. Performs direct vector similarity search over records whose propertyName has been indexed with createEmbeddingIndex. Prefer vectorSearch for new integrations. For natural-language schema-aware querying, use smartSearch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
efNoANN gather breadth when the search runs on the ANN graph.
modeNoHow to rank candidates. "auto" (default): exact on small indexes, the ANN graph on large ones. "exact"/"ann" force a path ("ann" needs a cosine index).
skipNoNumber of results to skip for pagination (default 0).
limitNoMaximum number of results to return (default 10).
queryNoFree-text query to embed and compare against stored vectors (managed indexes only). Mutually exclusive with queryVector.
whereNoOptional filter applied before scoring (activates prefilter mode).
labelsYesOne or more record labels to scope the search. The first label is used to resolve the embedding index.
dimensionsNoDisambiguates when multiple indexes share the same label+property. Inferred from queryVector length when queryVector is supplied.
sourceTypeNoSelect which index type to search. Required when both managed and external indexes exist for the same label+property.
queryVectorNoPre-computed embedding vector to search with (external indexes). Mutually exclusive with query. Length must match index dimensions.
propertyNameYesName of the indexed property to search against.
scoreThresholdNoKeep only results scoring at least this much (scores depend on the embedding model).
similarityFunctionNoDisambiguates when multiple indexes share the same label+property+sourceType.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
totalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: deprecation status and the hard prerequisite that the property must have an embedding index created first. It does not discuss result ranking or index-type behavior, but the schema covers those.

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?

Four short sentences, with the most decision-relevant fact (deprecation) front-loaded, followed by what it does, then the two routing alternatives. No filler.

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?

Given an output schema exists, return values need no explanation, and with 100% schema coverage the 13 parameters are self-documenting. The description supplies exactly what structured fields cannot: deprecation, the indexing prerequisite, and sibling routing.

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 description coverage is 100% across all 13 parameters, including enums for mode, sourceType, and similarityFunction, so the schema already carries the parameter semantics. The description only reinforces propertyName's indexing prerequisite; baseline 3 is appropriate.

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?

States a specific verb and resource ('direct vector similarity search over records') plus the precondition that propertyName must be indexed with createEmbeddingIndex. It explicitly distinguishes itself from vectorSearch (the preferred replacement) and smartSearch, so an agent can route without opening any schema.

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?

Gives explicit when-not-to-use guidance: it is deprecated, new integrations should use vectorSearch, and natural-language schema-aware querying should use smartSearch. This is a complete routing decision with named alternatives.

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