Veto — SQL Safety & Cost Oracle is an MCP server published by com.vetosql, hosted at vetosql.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 3 tools, including analyze_sql, set_policies, get_policies.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
15 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Analyze Postgres SQL/migrations for destructive operations, locking risk, correctness traps (NULL handling that silently returns wrong results), anti-patterns, and query cost. Returns a deterministic verdict (ok/warn/block) with findings. Pass the optional `schema` argument (your CREATE TABLE/INDEX DDL) to also get EXPLAIN-based cost analysis run on a throwaway scratch Postgres — no separate tool or DB connection needed.
| Parameter | Type | Description |
|---|---|---|
| sql * | string | The SQL to analyze (one or more statements). |
| schema | string | Optional CREATE TABLE/INDEX DDL. Providing it enables EXPLAIN-based cost analysis (seq scans on large tables, etc.) on a throwaway scratch Postgres; omit it for static safety analysis only. |
| dialect | string | |
| rowCountHints | object | Optional map of table name to estimated row count for realistic cost estimates. |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
{
"name": "analyze_sql",
"title": "Analyze SQL safety & cost",
"description": "Analyze Postgres SQL/migrations for destructive operations, locking risk, correctness traps (NULL handling that silently returns wrong results), anti-patterns, and query cost. Returns a deterministic verdict (ok/warn/block) with findings. Pass the optional `schema` argument (your CREATE TABLE/INDEX DDL) to also get EXPLAIN-based cost analysis run on a throwaway scratch Postgres — no separate tool or DB connection needed.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"sql"
],
"properties": {
"sql": {
"type": "string",
"description": "The SQL to analyze (one or more statements)."
},
"schema": {
"type": "string",
"description": "Optional CREATE TABLE/INDEX DDL. Providing it enables EXPLAIN-based cost analysis (seq scans on large tables, etc.) on a throwaway scratch Postgres; omit it for static safety analysis only."
},
"dialect": {
"type": "string",
"const": "postgres"
},
"rowCountHints": {
"type": "object",
"description": "Optional map of table name to estimated row count for realistic cost estimates.",
"additionalProperties": {
"type": "number"
}
}
},
"additionalProperties": false
}
}Replace the stored custom org policy set for your Pro key (this is also how you update or clear them: send the full new set to update, or an empty array to remove all). Each policy blocks or warns on an operation against matching tables (e.g. no DELETE on payments). Policies are declarative data — validated, never executed — and apply transparently to every later analyze_sql call made with this key. Use get_policies to read the current set.
| Parameter | Type | Description |
|---|---|---|
| policies * | array | The full policy set (replaces any previously stored set; max 50). |
{
"name": "set_policies",
"title": "Set custom org policies (Pro)",
"description": "Replace the stored custom org policy set for your Pro key (this is also how you update or clear them: send the full new set to update, or an empty array to remove all). Each policy blocks or warns on an operation against matching tables (e.g. no DELETE on payments). Policies are declarative data — validated, never executed — and apply transparently to every later analyze_sql call made with this key. Use get_policies to read the current set.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"policies"
],
"properties": {
"policies": {
"type": "array",
"items": {
"type": "object",
"required": [
"table",
"operations",
"action"
],
"properties": {
"table": {
"type": "string",
"description": "Exact table name or glob, e.g. \"payments\", \"audit_*\", \"*\"."
},
"action": {
"enum": [
"block",
"warn"
],
"type": "string"
},
"message": {
"type": "string",
"description": "Optional human message shown in the finding."
},
"operations": {
"type": "array",
"items": {
"enum": [
"select",
"insert",
"update",
"delete",
"truncate",
"drop",
"alter"
],
"type": "string"
},
"description": "Operations this rule applies to."
}
},
"additionalProperties": false
},
"description": "The full policy set (replaces any previously stored set; max 50)."
}
},
"additionalProperties": false
}
}Return the custom org policy set currently stored for your Pro key — the same rules analyze_sql enforces on top of the built-ins. Read-only; returns an empty list if none are set. Use set_policies to change them.
No parameters.
{
"name": "get_policies",
"title": "Get custom org policies (Pro)",
"description": "Return the custom org policy set currently stored for your Pro key — the same rules analyze_sql enforces on top of the built-ins. Read-only; returns an empty list if none are set. Use set_policies to change them.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}
}Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.