Veto — SQL Safety & Cost Oracle

Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
75%
命名の品質
100%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~620トークン数(ツール定義)
~1.5 KB一般的なレスポンスサイズ
注意への影響は最小限(128k コンテキストの 0.48%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "veto": {
      "url": "https://vetosql.com/mcp"
    }
  }
}

リモートエンドポイント

https://vetosql.com/mcpstreamable-http

できること

ツール一覧

ツール(3)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟡analyze_sql(sql, schema, rowCountHints, dialect)

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.

入力スキーマ

{
  "type": "object",
  "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."
    },
    "rowCountHints": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Optional map of table name to estimated row count for realistic cost estimates."
    },
    "dialect": {
      "type": "string",
      "const": "postgres"
    }
  },
  "required": [
    "sql"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴set_policies(policies)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "policies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "table": {
            "type": "string",
            "description": "Exact table name or glob, e.g. \"payments\", \"audit_*\", \"*\"."
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "select",
                "insert",
                "update",
                "delete",
                "truncate",
                "drop",
                "alter"
              ]
            },
            "description": "Operations this rule applies to."
          },
          "action": {
            "type": "string",
            "enum": [
              "block",
              "warn"
            ]
          },
          "message": {
            "type": "string",
            "description": "Optional human message shown in the finding."
          }
        },
        "required": [
          "table",
          "operations",
          "action"
        ],
        "additionalProperties": false
      },
      "description": "The full policy set (replaces any previously stored set; max 50)."
    }
  },
  "required": [
    "policies"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡get_policies

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.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 3 件
検証済みバージョンは記録されていませんツール 3 件
検証済みバージョンは記録されていませんツール 3 件