Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man sql-query-review

/sql-query-review

agentutility / compose / sql-query-review
PRICE / CALL
$0.04
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
compose
CATEGORY
uncategorized
STATUS
live
NAME
sql-query-review generates sql and reviews it in one call
SYNOPSIS
POST https://x402.agentutility.ai/sql-query-review
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Generates SQL and reviews it in one call. Composite: one call runs sql-from-prompt, then summarize-text over the generated SQL, explanation, destructive flag, and warnings. Returns SQL, referenced tables, risk flags, warnings, and an executive review. Use it as a text-to-SQL review API, SQL guard brief, or natural-language query plus safety summary.

INPUTrequest schema
propertytypedescriptionreq?
promptstringNatural-language analytics or database request. Max 5000 chars.required
schemastringOptional schema DDL or table/column description. Max 30000 chars.optional
dialectstringSQL dialect. Default postgres.
enum: postgres · mysql · sqlite · bigquery · snowflake · mssql · duckdb · ansi
optional
OUTPUTresponse shape
fieldtypedescription
sqlstring
dialectstring
is_destructivestring
warningsstring
reviewstring
composed_ofstring
componentsstring
degradedstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/sql-query-review \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the sql-query-review tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
composesqlqueryreviewsql-query-review
methods
POST
cluster
compose
price
$0.04 USDC per call
ADJACENTother endpoints in compose
endpointdescriptionprice
agent-input-guardOne guardrail call an agent makes before trusting untrusted inbound text — a scraped webpage, an email, a tool result, or a user message.$0.04
article-briefAnalyzes a news article from its URL into a summary, named entities, and sentiment in one call.$0.04
company-verify-packChecks that a company exists and its public signals are consistent, in one call: profile, registrar, domain age, and TLS.$0.04
content-quality-packRuns the standard pre-publish content checks on text in one call: AI-detection, PII scan, moderation, and sentiment.$0.04
contract-trust-packGathers smart-contract due-diligence data in one call: source verification, honeypot simulation, and LP lock check.$0.04
defi-protocol-dossierProfiles a DeFi protocol's TVL and yield pools in one call using DeFiLlama data.$0.04
domain-dossierBuilds a full domain report in one call: WHOIS, DNS, TLS, age, risk, and DMARC.$0.04
image-caption-localizeCaptions an image and translates the caption into any of 100+ languages in one call.$0.04
SEE ALSO
agentutility · compose · x402 · mcp · llms.txt · registry.json · bazaar.x402.org