Skip to main content
Glama
Pawansingh3889

sql-steward

semantic_search

Search entities by semantic similarity: embed a natural language query and retrieve the closest matching rows from vector embeddings, with built-in PII protection.

Instructions

Vector similarity search over an entity's embedding column (pgvector).

query is embedded locally and matched against the entity's configured embedding; the closest rows are returned (the embedding itself never is). Requires the entity to have a search config and a local embedding model (SQL_STEWARD_EMBED_URL). PostgreSQL-only. Same PII refusal as everything else.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo
queryYes
entityYes
filtersNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden. It discloses that 'query' is embedded locally, uses pgvector, nearest rows are returned without the embedding, and mentions PII refusal. Missing details on error handling or performance, but sufficient for understanding core behavior.

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?

The description is exceptionally concise—6 sentences with no fluff. Front-loaded with the core purpose, every sentence adds essential context (prerequisites, behavioral notes, limitations).

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?

Given the complexity of a vector search tool with 4 parameters and an output schema present, the description covers the algorithm and prerequisites but lacks details on parameters (especially 'filters') and fails to explain the configuration requirement for the entity. Adequate but not comprehensive.

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

Parameters2/5

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

Schema coverage is 0%, so description must explain parameters. It mentions 'query' is embedded and that closest rows are returned (implying 'k'), but does not describe 'entity' beyond being the target, nor 'filters' (pre-filtering) or 'k' explicitly. This leaves ambiguity for the agent.

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 clearly states it performs vector similarity search over an entity's embedding column using pgvector. It specifies the action (search) and resource (entity's embedding column), and distinguishes from typical retrieval by noting the embedding itself is not returned.

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?

The description provides prerequisites: entity must have a 'search' config and a local embedding model, and it's PostgreSQL-only. However, it does not explicitly compare with sibling tools like 'get_records' to guide when to use this tool over alternatives.

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

Install Server

Other Tools

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/Pawansingh3889/sql-steward'

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