Sqlproctor

•

Provides deterministic semantic verification for agent-generated SQL, catching wrong queries before they execute.

Sqlproctor offers a critical guardrail for AI agents tasked with generating SQL queries. It operates by sitting between the agent and the database, enforcing a git-versioned semantic contract that defines valid database interactions. This tool is designed to identify and block common, yet hard-to-detect, errors such as hallucinated columns, incorrect join paths, missing mandatory filters, or fan-out joins that silently inflate aggregate results. By providing structured feedback to the agent on violations, sqlproctor enables self-correction, significantly improving query accuracy, preventing costly erroneous computations on usage-billed data warehouses, and ensuring the reliability of AI-driven analytics.

주요 기능

010 GitHub stars
02Provides structured feedback to AI agents for autonomous query self-correction
03Deterministic semantic verification via five core structural checks (SURFACE, JOIN_PATH, REQUIRED_FILTER, FAN_OUT, METRIC)
04Supports over 30 SQL dialects powered by sqlglot for broad compatibility
05Enforces git-versioned semantic contracts for data quality and business rules
06Operates as an MCP server, CLI tool, or verifying proxy for existing database services

사용 사례

01Guarding AI agents against generating incorrect or costly SQL queries for analytics
02Ensuring data contract adherence and quality in text-to-SQL applications
03Reducing cloud warehouse costs by blocking inefficient or erroneous agent-generated queries