Skip to main content
Glama
ishay60

mcpolyglot

demo.query

Run read-only SQL queries against the demo database with parameterized inputs; writes and DDL are rejected, and a dry-run option returns the policy decision.

Instructions

Run a read-only SQL query against the demo database. Use parameterized form ($1, $2, ...). Writes are rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSQL query string. Read-only — INSERT/UPDATE/DELETE/DDL will be rejected.
limitNo
dryRunNoReturn the policy decision without executing the query.
paramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the read-only policy and that writes are rejected, plus the required parameterization style. It omits auth/permission requirements, rate limits, and result/pagination behavior, so key behavioral context is still missing.

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?

Three short sentences, front-loaded with purpose and then the two operative constraints. No filler, no restatement of the tool name, every clause earns its place.

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?

For a read-only query tool with no output schema, the description covers the safety profile (read-only, writes rejected) and the parameterization contract. The main gap is the meaning/effect of 'limit' and whether results are capped, which is relevant to correct invocation.

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 coverage is 50%: 'sql' and 'dryRun' are documented in the schema, while 'limit' and 'params' are not. The description partially compensates by explaining the $1/$2 placeholder convention that the undocumented 'params' array feeds, but 'limit' remains unexplained in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a read-only SQL query against the demo database'), which is clearly distinct from the schema-exploration siblings demo.describe_table and demo.list_tables. It does not explicitly name those siblings, but the scope is unambiguous.

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

Usage Guidelines3/5

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

Gives an operational instruction ('Use parameterized form ($1, $2, ...)') and a constraint (writes rejected), which implies the intended usage. It never says when to prefer this over demo.describe_table or demo.list_tables, so routing is left to inference.

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

Deploy Server

Other Tools