Skip to main content
Glama

Tidy Byte Tools API

Format SQL

sql_format
Read-onlyIdempotent

Pretty-print a SQL query. This is a lightweight formatter, not a full SQL parser.

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": "sql_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlNoThe SQL query text to pretty-print.
keywordCaseNoHow to write SQL keywords: "upper" (the default), "lower", or "keep".

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / keywordCase
      Added value: +{
      +  "description": "How to write SQL keywords: \"upper\" (the default), \"lower\", or \"keep\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / sql / description
      Added value: +"The SQL query text to pretty-print."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuine piece of behavioral context — that formatting is lightweight and not a full parse — but does not say what happens with malformed or dialect-specific SQL, which is the main failure mode an agent needs to know about.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action, and no filler or restatement of the title. The second sentence is terse to the point of being slightly under-specified, which is the only mark against it.

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?

This is a low-complexity, 2-parameter, non-destructive tool with an output schema and rich annotations, so most of the burden is lifted. Still, the description leaves ambiguous whether unsupported SQL errors out or passes through, which materially affects how an agent should call it.

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 100%: the schema already documents both the sql text and keywordCase, including the "upper" default and allowed values. The description adds nothing beyond that, so the baseline 3 for fully-covered schemas is appropriate.

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?

"Pretty-print a SQL query" gives a concrete verb (pretty-print) and resource (SQL query), which cleanly separates it from sibling formatters like json_format or xml_json. It stops short of explicitly contrasting itself with those siblings, keeping it at a solid 4 rather than 5.

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?

"This is a lightweight formatter, not a full SQL parser" implies usage context by setting expectations about scope, but it never states when to prefer this over another tool or what inputs are out of scope (dialects, invalid SQL). Guidance is implied rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.