Skip to main content
Glama
timsuv

sql-explorer-mcp

by timsuv

Query table with filter

query_table

Select rows from a table using one validated filter (column, operator, value) and control result count up to 200 rows.

Instructions

Select rows from a table with a single WHERE condition (column, operator, value). Column and operator are validated against the real schema. Max 200 rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRow limit (default 50, max 200)
tableYesTable name
valueYesValue to compare against
columnYesColumn to filter on — must exist on the table
schemaYesSchema name, e.g. 'dbo'
operatorYesComparison operator
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It reveals that column and operator are validated against the real schema, and that results are limited to 200 rows. This provides meaningful operational context beyond the raw schema, though it does not detail error handling or return format.

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 two sentences with no superfluous content. It front-loads the core purpose and key constraints, making it quick to parse and directly informative.

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

Completeness4/5

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

Given the moderate tool complexity (6 params, all documented in schema) and no output schema, the description adequately covers purpose, key limitation (single condition), validation behavior, and row limit. It omits explicit return format details, but for a row-returning query tool this is generally inferable.

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 coverage is 100%, so parameters are fully documented. The description adds semantic value by explaining that column and operator are validated against the real schema, which clarifies execution behavior. It also contextually links column, operator, and value as a single WHERE condition.

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 the action ('Select rows') and the specific scope ('from a table with a single WHERE condition'), which distinguishes it from sibling tools like join_tables or browse_table. The use of 'single WHERE condition' explicitly limits the tool's functionality, making its purpose unmistakable.

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 imparts clear context that this tool is for simple, single-condition queries without explicitly naming alternatives or exclusions. The phrase 'single WHERE condition' implies that more complex queries should use run_query or join_tables, but it does not state this directly.

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/timsuv/sql-explorer-mcp'

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