Skip to main content
Glama
gswartwood

sqlfluff-mcp-server

by gswartwood

sqlfluff-mcp-server

PyPI Python versions CI License: MIT

An MCP server that exposes SQLFluff's linting, fixing, and parsing over the Model Context Protocol, so any MCP-aware client (Claude, other agents, IDE integrations) can lint and fix SQL directly.

This project is independent of the SQLFluff maintainers — it's a thin wrapper around the public sqlfluff Python package.

Tools

Tool

Input

Config resolution

lint_file

path on disk

walks up from the file for .sqlfluff / pyproject.toml / etc.

fix_file

path on disk (+ write flag)

same directory walk

parse_file

path on disk

same directory walk

lint_sql

raw SQL text + dialect

none — dialect supplied explicitly

fix_sql

raw SQL text + dialect

none — dialect supplied explicitly

parse_sql

raw SQL text + dialect

none — dialect supplied explicitly

list_dialects

lists supported dialect names

clear_config_cache

clears SQLFluff's cached config-file contents

The *_file tools honor project config the same way the sqlfluff CLI does (via FluffConfig.from_path, which walks up the directory tree looking for .sqlfluff, pyproject.toml, setup.cfg, or tox.ini). The *_sql tools are for content that hasn't been written to disk (e.g. streamed from an editor buffer) and require you to pass dialect explicitly since there's no file location to resolve config from.

Config caching

SQLFluff caches the contents of config files it reads while walking a directory tree, for the lifetime of the process. Because this server is long-running (unlike the sqlfluff CLI, which is a fresh process per invocation), editing a .sqlfluff file after the server has started won't be picked up by lint_file / fix_file / parse_file until you call clear_config_cache. Call it whenever config on disk changes, or just proactively before a lint/fix/parse call if you're unsure.

Related MCP server: dbt-mcp

Requirements

  • Python 3.10+

  • uv (recommended) or pipx/pip

  • mcp >=2.0.0,<3.0.0 and sqlfluff >=3.0.0 (installed automatically as dependencies — see Notes on dependencies)

Registering with an MCP client

This package is published on PyPI, so there's nothing to clone or install ahead of time. Point your MCP client's config (e.g. .claude.json / .mcp.json for Claude Code, or Claude Desktop's config file) at it via uvx, and it's fetched into an isolated cache and launched on demand:

{
  "mcpServers": {
    "sqlfluff": {
      "command": "uvx",
      "args": ["sqlfluff-mcp-server"]
    }
  }
}

No uv? pipx run sqlfluff-mcp-server as the command/args works the same way.

For stdio-based servers like this one, the client itself launches the process — automatically, when the client session starts, not when a prompt first needs it. Once it's registered, just ask the client to lint or fix a SQL file; the server is already running in the background and the tools are already available. If the server process crashes, the client restarts it for you.

Running it manually (for local testing/debugging)

uvx sqlfluff-mcp-server

This starts the server over stdio and blocks, waiting for an MCP client to speak the protocol to it on stdin/stdout — it's not something you'd run interactively day to day, just useful for sanity-checking the install or piping through the MCP Inspector.

Development

Clone the repo to work on the server itself (rather than just consuming it via uvx):

git clone <this-repo-url>
cd sqlfluff-mcp-server
uv sync --extra dev
uv run pytest
uv run ruff check .

To point an MCP client at your local checkout instead of the PyPI release (e.g. to test unreleased changes):

{
  "mcpServers": {
    "sqlfluff": {
      "command": "uv",
      "args": ["--directory", "/path/to/sqlfluff-mcp-server", "run", "sqlfluff-mcp-server"]
    }
  }
}

Notes on dependencies

  • mcp is pinned to >=2.0.0,<3.0.0. The SDK's 2.0 line renamed mcp.server.fastmcp.FastMCP to mcp.server.mcpserver.MCPServer and moved transport selection to run(transport=...); the @mcp.tool() decorator API is unchanged.

  • sqlfluff is left unpinned above 3.0.0 — SQLFluff releases fairly often and this server only depends on its stable Linter / FluffConfig API.

License

MIT — see LICENSE.

Available Tools

8 tools
clear_config_cacheA

Clear SQLFluff's internal config-file cache.

SQLFluff caches the contents of .sqlfluff / pyproject.toml / setup.cfg / tox.ini files it reads while walking up a directory tree (keyed by file path, for the lifetime of this server process). If you edit a config file on disk while this server is running, the *_file tools may keep returning results based on the old contents until this cache is cleared. Call this tool after editing any SQLFluff config file to force the next lint_file / fix_file / parse_file call to re-read it from disk.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral transparency. It thoroughly discloses the cache's scope (keyed by file path), lifetime (server process), and the effect of clearing it (next calls re-read from disk). It also clarifies the tool's side effects (invalidates cache, does not modify config files). No contradictions with annotations.

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?

The description is well-structured, beginning with a clear one-sentence summary followed by a concise paragraph linking the cache behavior to practical implications. Every sentence adds value, and the information is front-loaded for quick scanning.

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

Completeness5/5

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

For a zero-parameter, side-effect-free (non-destructive) utility tool, the description fully covers what the tool does, when to use it, and what to expect. The presence of an output schema is irrelevant here, but the description does not need to mention return values given the output schema exists. The description is completely adequate for an agent to know exactly when and how to invoke it.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline of 4 applies. The schema is trivially complete, and the description adds no parameter documentation because none is needed. However, the description's emphasis on 'no arguments required' is implicit, which is acceptable.

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 clearly states the tool's function: 'Clear SQLFluff's internal config-file cache.' It uses a specific verb ('Clear'), identifies the resource ('SQLFluff's internal config-file cache'), and differentiates itself from sibling tools like lint_file and fix_file by explaining that it handles cache invalidation, not file operations.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool: 'Call this tool after editing any SQLFluff config file to force the next lint_file / fix_file / parse_file call to re-read it from disk.' It also explains the underlying problem (caching) and the consequence of not using it (stale results), giving clear contextual guidance without needing exclusions.

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

fix_fileA

Fix a SQL file on disk, honoring discovered .sqlfluff config.

Args: path: Path to the SQL file to fix. write: If True, overwrite the file in place with the fixed SQL. If False (default), just return the fixed SQL without touching the file. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
writeNo
config_pathNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so by explaining the write flag: overwriting in place when True, and returning fixed SQL without touching the file when False. It also notes config layering behavior, though it omits error/permission details.

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?

The description is short, front-loaded, and uses a clear Args list. Every sentence adds useful information with no filler.

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

Completeness5/5

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

Given the simple 3-parameter tool and presence of an output schema, the description covers purpose, side effects, and parameter behavior completely. It does not need to restate return values thanks to the output schema.

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?

Schema description coverage is 0%, but the Args block fully explains path, write semantics, and config_path layering. This adds meaning beyond the bare schema and compensates for the lack of structured descriptions.

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 opening line 'Fix a SQL file on disk' uses a specific verb and resource, immediately clarifying the tool's function. It also distinguishes from sibling fix_sql by scoping to files, and mentions config honoring.

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

Usage Guidelines4/5

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

The description clearly implies file-based usage via 'on disk' and the path parameter, giving context for when to choose this over SQL-string tools. It does not explicitly name alternatives or exclusions, but the file scope is unambiguous.

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

fix_sqlA

Fix a raw SQL string using an explicitly specified dialect and return the fixed SQL text (does not touch any file).

Args: sql: The SQL text to fix. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres". rules: Optional list of rule codes/names to restrict fixing to.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYes
rulesNo
dialectYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden. It discloses that it returns the fixed SQL text, does not touch any file, and requires an explicitly specified dialect. It lacks details on error handling or side effects, but these are minimal for a pure string transformation.

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?

The description is concise and front-loaded with the purpose, followed by a compact Args section. Every sentence adds value, with no redundancy.

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

Completeness5/5

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

The tool is simple (fix SQL string), and the description covers its purpose, parameters, return value, and safety property ('does not touch any file'). Although an output schema exists, the description already states the return type, making it complete.

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?

Schema description coverage is 0%, but the description fully compensates by explaining each parameter: 'sql' as text to fix, 'dialect' with concrete SQLFluff examples, and 'rules' as optional restrictions. This adds meaning beyond the bare schema.

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 clearly states the action: 'Fix a raw SQL string using an explicitly specified dialect and return the fixed SQL text'. It also explicitly notes 'does not touch any file', distinguishing it from file-based siblings like fix_file.

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

Usage Guidelines4/5

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

The description implies when to use this tool (for raw SQL strings) and, via the parenthetical 'does not touch any file', distinguishes it from file-based tools. It does not explicitly name alternatives or state exclusions, but the scope is clear.

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

lint_fileA

Lint a SQL file on disk, honoring any .sqlfluff / pyproject.toml config found by walking up from the file's directory.

Args: path: Path to the SQL file to lint. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
config_pathNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses config walking and layering behavior, which is useful context. Yet it does not explicitly state whether the operation is read-only or what happens on error, leaving some ambiguity about safety and outcomes.

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?

The description is concise, front-loaded with the core purpose, and includes a clean Args section. Every sentence adds value with no fluff, and the structure is easy to scan.

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?

The tool is simple (2 parameters, no nested objects), and an output schema exists, so return values don't need to be in the description. The description covers config discovery and parameter semantics well. The only minor gap is the lack of an explicit statement about side effects, but 'lint' generally implies non-destructive.

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 input schema provides only bare titles with no descriptions, leaving the Args section in the description to carry all parameter semantics. It fully explains both path and optional config_path, including layering behavior, which is more than the schema offers.

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 clearly states the action (lint), the resource (SQL file on disk), and adds scope by mentioning config discovery. The phrase 'on disk' differentiates from sibling tools like lint_sql, which likely lints SQL strings.

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

Usage Guidelines4/5

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

The description implies usage for linting files on disk and explains config discovery, providing clear context. However, it does not explicitly name alternatives or state when not to use this tool, though the 'on disk' phrasing naturally separates it from string-based linting.

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

lint_sqlA

Lint a raw SQL string using an explicitly specified dialect.

Args: sql: The SQL text to lint. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres". See sqlfluff.list_dialects() for the full set. rules: Optional list of rule codes/names to restrict linting to.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYes
rulesNo
dialectYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden of explaining behavior. 'Lint' implies a read-only analysis, but the description does not explicitly state it will not modify anything or what the return value looks like. However, the presence of an output schema mitigates the need to describe return values, and the tool's nature as a linter makes destructive side effects unlikely.

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?

The description opens with a clear, direct one-line purpose, then efficiently breaks down parameters in a structured Args block. Every sentence and piece of documentation adds value—no fluff, no repetition of schema titles. This is an model of concise, scannable tool documentation.

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

Completeness5/5

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

Given the tool complexity (3 parameters, no annotations), the description covers all necessary aspects: what it does, how to use each parameter, and where to find valid dialect values. Since an output schema exists, the lack of return-value explanation is acceptable. The description is complete enough for an agent to select and invoke this tool correctly.

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, so the description must fully document parameters. It does so comprehensively: 'sql' is defined as the SQL text to lint, 'dialect' includes concrete examples and a pointer to list_dialects(), and 'rules' explains its optional filtering purpose. This adds real meaning beyond the bare schema.

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 clearly states the action ('Lint') and the resource ('a raw SQL string'), and adds a crucial differentiator: it uses an explicitly specified dialect. This distinguishes it from sibling tools like lint_file (which handles files) and fix_sql (which fixes rather than lints).

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

Usage Guidelines4/5

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

The description implies when to use this tool: when you have a raw SQL string and need to specify a dialect. It does not explicitly mention alternatives or exclusions, but the phrase 'raw SQL string' strongly signals the file-based alternative (lint_file). The dialect reference to list_dialects is also a clear instruction for usage.

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

list_dialectsA

List the SQL dialects SQLFluff supports (for use with lint_sql / fix_sql / parse_sql).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It clearly states the read-only listing behavior and the subject matter (supported SQL dialects). It does not detail output format or ordering, but for a simple enumeration tool this is acceptable and not misleading.

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?

The description is a single, front-loaded sentence with no filler. It efficiently states what the tool does and its intended companion tools, every word earns its place.

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

Completeness5/5

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

With zero parameters, an output schema present, and low complexity, the description fully covers the tool's purpose and usage context. It doesn't need to explain return values because the output schema exists, and there are no potential user-input pitfalls to warn about.

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

Parameters4/5

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

The input schema has zero properties, so there are no parameters to describe. The baseline of 4 applies because the schema coverage is complete and the description adds relevant context about the tool's purpose, even though no param details are needed.

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 the specific verb 'List' and clearly names the resource ('SQL dialects SQLFluff supports'). It distinguishes the tool from sibling tools like lint_sql or fix_sql, which are operations on specific SQL content rather than meta-information.

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

Usage Guidelines4/5

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

The description explicitly says 'for use with lint_sql / fix_sql / parse_sql', providing clear usage context as a prerequisite for those tools. It does not mention when not to use it or alternative tools, but given there are no other listing tools, the context is sufficient.

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

parse_fileA

Parse a SQL file on disk and return its parse tree, honoring discovered .sqlfluff config.

Args: path: Path to the SQL file to parse. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
config_pathNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral disclosure burden. It transparently discloses config discovery behavior ('honoring discovered .sqlfluff config') and how config_path layers on top, which adds value. However, it does not mention side effects (though parse implies read-only) or error behavior, so it is adequate but not highly detailed.

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?

The description is extremely concise: a one-line purpose statement followed by a compact Args list. No redundant or filler sentences—every word contributes to understanding the tool's function and parameters.

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?

Given the tool's simplicity and the presence of an output schema, the description covers the essential context: file parsing, config honoring, and parameter semantics. It does not explicitly mention how this differs from parse_sql, but that is not required for using the tool correctly. The description is complete for its scope.

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

Parameters4/5

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

Schema description coverage is 0%, so the description compensates by providing an Args section explaining both parameters: path is the file to parse, and config_path is an optional extra config file layered on discovered config. This adds meaning beyond the schema's plain type/title fields, though examples or edge cases are not included.

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 clearly states the tool's function: 'Parse a SQL file on disk and return its parse tree.' The verb 'parse' and resource 'SQL file on disk' are specific, and the phrase 'on disk' distinguishes it from sibling parse_sql, which likely parses SQL strings.

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 file-based parsing ('file on disk') and mentions honoring .sqlfluff config, but it does not explicitly contrast with alternatives like parse_sql or state when not to use this tool. The context is clear, but no explicit when-to-use or exclusion is given.

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

parse_sqlA

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".

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYes
dialectYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.9/5.0
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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: the three file-based tools operate on paths, the three SQL-based tools operate on raw strings, and list_dialects/clear_config_cache serve separate helper roles. No two tools overlap in a way that would confuse an agent.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: lint/fix/parse paired with file/sql, plus list_dialects and clear_config_cache. The style is uniform (lowercase with underscores) with no mixed conventions.

Tool Count5/5

Eight tools is well-scoped for a SQLFluff wrapper: it covers the core operations (lint, fix, parse) for both file and string inputs, plus a dialect listing and cache-clearing utility. No redundancy and no missing essential operation.

Completeness4/5

The tool surface covers the main SQLFluff functionality comprehensively—lint, fix, and parse for both files and raw SQL. A few advanced capabilities like rendering or rule-specific configuration are absent, but core workflows are fully supported.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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