Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Explain SQL policy

explain_sql_policy
Read-only

Read SQL validation policy without a DB connection to see accepted statements, rejected constructs, and enforcement layers. Use before unfamiliar SQL or after refusal to pick supported read query.

Instructions

Read the SQL validation policy without connecting to a database. Returns accepted statement categories, rejected constructs and functions, and enforcement layers. Use after a policy refusal to choose a supported read query, or before submitting unfamiliar SQL.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_sql_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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, openWorldHint=false, and destructiveHint=false, so the safety profile is covered; the description adds the non-obvious trait that no database connection is made, which is valuable since the neighboring tools all involve connections. It does not discuss caching, policy versioning, or freshness, so it is not fully exhaustive.

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 tight sentences: the first establishes what it does and the key constraint, the second gives the returned payload and the usage trigger. No filler, and the core identity is front-loaded.

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?

An output schema exists, so the description is not obligated to detail return structure, yet it still summarizes the payload enough to set expectations. For a zero-parameter, read-only introspection tool, nothing an agent needs in order to invoke it correctly is missing.

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?

The tool takes zero parameters, so the baseline is 4; there is no parameter meaning the description could or should add. Nothing here contradicts or duplicates a schema field.

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 ('Read the SQL validation policy') and scopes it with 'without connecting to a database', which immediately separates it from the schema- and query-oriented siblings. The second sentence enumerates the returned content (accepted categories, rejected constructs/functions, enforcement layers), so an agent knows exactly what this tool produces.

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?

Gives two concrete triggering situations: after a policy refusal to pick a supported read query, and before submitting unfamiliar SQL. That is clear when-to-use guidance, though it does not explicitly name an alternative tool or state a when-not condition.

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