Skip to main content
Glama
gswartwood

sqlfluff-mcp-server

by gswartwood

parse_sql

Parses raw SQL with a specified dialect to return its parse tree for syntax validation and structural analysis.

Instructions

Parse a raw SQL string using an explicitly specified dialect and return its parse tree.

Args: sql: The SQL text to parse. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
dialectYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It states the operation (parse and return tree) but does not mention side effects, error behavior, or non-destructive guarantees. The agent is left to infer safety and failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One clear sentence followed by a compact Args list. Each word earns its place, and the primary purpose is front-loaded without unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 2-parameter tool with an output schema, the description adequately covers the core operation and parameters. It lacks usage alternatives and error behavior, but these are addressed in other dimensions, and the output schema obviates the need to describe return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage with only titles 'Sql' and 'Dialect'. The description adds full meaning: 'The SQL text to parse' and 'SQLFluff dialect name, e.g. ...' with example values, which is essential for correct invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Parse' with a resource 'raw SQL string' and explicitly states it returns a parse tree. It clearly distinguishes from siblings like parse_file and lint_sql by emphasizing the raw string input and required dialect.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for raw SQL strings and requires an explicit dialect, but does not mention alternatives or when not to use. Sibling names like parse_file hint at a file-vs-string contrast, but the description itself provides no explicit guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/gswartwood/sqlfluff-mcp-server'

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