Skip to main content
Glama
gswartwood

sqlfluff-mcp-server

by gswartwood

lint_file

Lint a SQL file on disk, automatically honoring .sqlfluff or pyproject.toml config discovered from the file's directory.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
config_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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.

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