Skip to main content
Glama

validate_sql

Read-onlyIdempotent

Check SQL syntax for correctness across multiple database dialects including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, and Snowflake. Identify errors and validate query structure.

Instructions

Validate SQL syntax. Returns {valid: bool, error?: string, dialect?: string}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dialectNoSQL dialect: generic, mysql, postgresql, sqlite, sqlserver, oracle, snowflake
sqlYesThe SQL string to validate

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajitpratap0/GoSQLX'

If you have feedback or need assistance with the MCP directory API, please join our Discord server