Skip to main content
Glama

GoSQLX

Server Details

SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
ajitpratap0/GoSQLX
GitHub Stars
120
Server Listing
GoSQLX

TDQS

Score is being calculated.

Available Tools

7 tools
analyze_sql
Read-onlyIdempotent
Inspect

Use this when the user wants a complete review of a SQL query. Runs validate, parse, metadata, security, lint, and format concurrently and returns one composite report; hosts that support MCP Apps render it as an interactive report.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to analyze
extract_metadata
Read-onlyIdempotent
Inspect

Use this when the user wants the tables, columns, and functions a SQL query references (e.g. for lineage or impact analysis). Returns {tables, columns, functions}.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to analyze
format_sql
Read-onlyIdempotent
Inspect

Use this when the user wants SQL pretty-printed or reformatted: one clause per line, optional upper-case keywords and trailing semicolon. Comments are not kept. Returns {formatted_sql, options}.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to format
indent_sizeNoSpaces per indent level for nested blocks such as CREATE TABLE columns; clauses always start at column 0. 0 puts each statement on one line (default: 2)
add_semicolonNoAppend a trailing semicolon (default: false)
uppercase_keywordsNotrue upper-cases all SQL keywords (AND, IN, CASE, ...), but not data type names. false keeps the formatter's casing: clause keywords (SELECT, FROM, WHERE, ...) upper-case, other keywords (e.g. and, or) may keep their input case (default: false)
lint_sql
Read-onlyIdempotent
Inspect

Use this when the user wants SQL style feedback. Applies the same 10 rules as gosqlx lint: L001 trailing whitespace, L002 mixed indentation, L003 consecutive blank lines, L004 indentation depth, L005 line length (>100), L006 column alignment, L007 keyword case (upper), L008 comma placement (trailing), L009 aliasing consistency, L010 redundant whitespace. Returns {violation_count, violations}.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to lint
parse_sql
Read-onlyIdempotent
Inspect

Use this when the user wants to know how SQL parses: returns an AST summary with the statement count and the type of each statement.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to parse
security_scan
Read-onlyIdempotent
Inspect

Use this when the user wants SQL checked for injection patterns: tautologies, UNION attacks, stacked queries, comment bypasses, and more. Returns findings with severity counts.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to scan
validate_sql
Read-onlyIdempotent
Inspect

Use this when the user wants to know whether a SQL statement is syntactically valid, optionally for a specific dialect. Returns {valid: bool, error?: string, dialect?: string}.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL string to validate
dialectNoSQL dialect: generic, postgresql, mysql, mariadb, sqlserver, oracle, sqlite, snowflake, bigquery, redshift, clickhouse

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updates
    • First observedanalyze_sql
    • First observedextract_metadata
    • First observedformat_sql
    • First observedlint_sql
    • First observedparse_sql
    • First observedsecurity_scan
    • First observedvalidate_sql

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Deterministic SQL static analysis and query-equivalence checking for Postgres, MySQL, SQLite, and SQL Server. Tokenizes locally before forwarding to the API.
    7
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides SQL parsing, transpilation, formatting, extraction, and condition injection via MCP protocol, enabling agents to validate, analyze, and transform SQL.
    -
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to format SQL, explain queries in plain English, analyze schemas, build queries from natural language, and generate migrations, all without requiring a database connection.
    5
    29 npm
    MIT
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.