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개