Skip to main content
Glama
agentic-catalog

agentic-catalog

by Renato425636

run_sql

Executes read-only SELECT queries through a governed gateway that masks restricted columns and rejects queries touching denied fields, so agents query data without exposing sensitive values.

Instructions

Run a read-only SELECT. Masked columns come back hashed; denied columns reject the query.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sql": "<sql>"
    },
    "name": "run_sql"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose two real behaviors: results are permission-scoped with masked columns returned hashed rather than omitted, and denied columns cause the whole query to reject rather than partially succeed. That error-vs-partial-result distinction is genuinely useful and would otherwise be discovered only by failure. It stops short of row limits, timeouts, or dialect specifics.

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?

Two short sentences, zero filler, with the safety constraint front-loaded before the permission behavior. Every clause conveys an operational fact.

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?

An output schema exists, so return shape needs no explanation, and the description covers the two things an agent most needs for a read-only SQL tool: the statement restriction and the masking/denial semantics. Completeness would be higher with a note on result-size limits or dialect, the most likely cause of a failed call.

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 0% for the single `sql` parameter, but the description adds the key constraint that the statement must be a SELECT, which is real semantic guidance the schema lacks. It adds nothing about dialect, whether trailing semicolons or parameter binding are allowed, or size limits, so some of the compensation burden remains unmet.

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?

"Run a read-only SELECT" pairs a specific verb with a specific resource and immediately constrains it to read-only, which is more than a restatement of the name. It does not name or contrast the sibling metadata tools (describe_table, search_tables), so an agent must infer that this is the data-querying counterpart rather than the schema-inspection one.

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?

Read-only SELECT framing implies when this tool applies (fetching actual rows) versus metadata siblings, but no explicit when-to-use or when-not-to-use rule is given. There is no statement about preferring describe_table first to learn column names, and no guidance on query cost or iteration.

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