Skip to main content
Glama
igorolv

jdbc-mcp-server

queryLint

queryLint
Read-onlyIdempotent

Review SQL for indexing and metadata issues without execution. Detects unknown objects, SELECT *, conditionless joins, unindexed FKs, and non-leading predicate columns.

Instructions

Review authored SQL for advisory metadata and indexing problems without executing it. Reports unknown objects, SELECT *, conditionless joins, unindexed FKs and non-leading predicate/order columns; use validateQuery when database-driver acceptance is the question.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
schemaNo
connectionYesDatabase to run against. Call listConnections for valid names; do not guess.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
lintableYesTrue when query lint could combine parsed SQL with metadata checks.
warningsNoWarnings produced by SQL inspection and metadata-aware lint checks.
inspectionNoParsed query inspection that underpins lint (opaque; the inspectQuery tool returns the typed form).
warningCountNoNumber of warnings produced by inspection or lint.
tablesCheckedNoTables whose metadata was checked during query lint.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive. The description adds valuable behavioral detail by listing the specific problem categories it reports (unknown objects, SELECT *, conditionless joins, etc.) and reiterates that it does not execute the SQL, which is consistent with the annotations.

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

Conciseness4/5

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

The description is a single, dense sentence that front-loads the purpose and then enumerates the checks. It is efficient and well-structured, though the long list of issue types adds length without being verbose.

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

Completeness3/5

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

The description covers the tool's purpose, scope, and a key alternative. An output schema exists, so return values are covered. However, the lack of parameter explanations (especially 'schema') and the absence of any prerequisite or connection context leave gaps for a 3-parameter tool.

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

Parameters2/5

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

Schema description coverage is only 33% (only 'connection' has a description). The tool description does not explain the 'sql' or 'schema' parameters, nor their relationship. With low schema coverage, the description should compensate, but it provides no parameter-level guidance.

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 states a specific verb ('Review'), a specific resource ('authored SQL'), and a clear scope (advisory metadata and indexing problems). It also distinguishes itself from siblings by explicitly noting it does not execute the SQL, and names validateQuery as a specific alternative.

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?

It gives an explicit when-not condition ('use validateQuery when database-driver acceptance is the question') and implicitly narrows its use case to advisory checks. It does not cover all sibling distinctions, but the provided exclusion is clear and useful.

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