Skip to main content
Glama

ScorpTech x402 Tools

Sql Format

sql_format
Read-onlyIdempotent

Format and lint SQL: consistent keyword case, one clause per line, indented select lists, joins, AND/OR conditions and subqueries, comments and string literals preserved; or minify. The linter flags UPDATE/DELETE without WHERE, SELECT *, implicit comma joins, leading-wildcard LIKE, ORDER BY RAND(), NOT IN with subqueries and string-concatenation injection smells, and lists statement types and referenced tables. POST JSON body {sql}. Returns JSON with: formatted, statements, statementTypes, tables, issues. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/sql-format

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

Input Schema

NameRequiredDescriptionDefault
sqlYes
indentNo
minifyNo
keywordCaseNoupper

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-structured context: the x402 payment model ($0.002 USDC per successful call on Base or Solana) and an alternate HTTPS endpoint, which an agent needs before invoking. It stops short of describing failure/refund behavior or rate limits, keeping it below a 5.

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?

The core capability is front-loaded in the first clause, with lint rules, I/O contract, and pricing following in a logical order. The single long sentence is dense but each segment carries distinct information; minor cost is readability from packing lint rules into one run-on list.

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?

With no output schema, the description explicitly names the return fields (formatted, statements, statementTypes, tables, issues) and the request body shape ({sql}), and it discloses the payment/transport requirements. For a 4-parameter, single-purpose tool this leaves nothing an agent needs 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?

Schema description coverage is 0%, so the description must carry the load, and it largely does: 'consistent keyword case' maps to keywordCase, 'indented select lists' to indent, and 'or minify' to minify. The maxLength bound and the enum values themselves are left to the schema, so it is not fully compensating.

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 opens with a specific verb+resource pair ('Format and lint SQL') and enumerates the exact transformations (keyword case, clause-per-line, indented select lists, joins, AND/OR, subqueries) plus the alternative mode ('or minify'). This clearly separates it from siblings like csv_to_sql or format_convert, which operate on different inputs.

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?

Usage is implied through the feature list: an agent can infer it should call this when it needs SQL normalized or audited for the listed anti-patterns. However, there is no explicit when-to-use/when-not statement and no named alternative for related tasks, so routing guidance is only implicit.

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.

Resources