Skip to main content
Glama

LintSchema

Read-onlyIdempotent

Lint a GraphQL schema document against the graph's lint rules and return each diagnostic's coordinate, severity level, message, rule, and source location, plus the error, warning, total, and ignored counts. This is the same check that rover graph lint and rover subgraph lint run. Nothing is published and no state changes. Provide the graph ID and the schema as SDL. Optionally provide baseSdl to report only the diagnostics that the new schema introduces against that base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sdlYesThe schema to lint.
baseSdlNoThe schema to diff rule violations against, if not provided the full set of rule violations will be returned for the proposed sdl.
graphIdYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorsNo
extensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered by structured data. The description still adds value by asserting explicitly that 'Nothing is published and no state changes', and by naming the CLI check equivalence and the baseSdl diff semantics.

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?

Three tight sentences: what it does and returns, the CLI equivalence and safety note, then the parameter guidance. Front-loaded and waste-free.

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?

An output schema exists, so return values needn't be re-explained; the description still usefully lists the diagnostic fields and count fields. For a 3-param, read-only tool this is near-complete, missing only a description for graphId and explicit sibling-routing guidance.

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

Parameters3/5

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

Schema coverage is 67%: sdl and baseSdl are documented in the schema, but graphId has no description anywhere. The description adds the SDL format requirement ('as SDL') and the baseSdl diff behavior, which roughly matches the schema text rather than exceeding it. Baseline 3 is appropriate.

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?

States a specific verb (lint) and resource (a GraphQL schema document), and describes the return payload's shape. Distinguishes itself from siblings like RunSchemaCheck and ValidateOperations by stating it runs the same rules as `rover graph lint`/`rover subgraph lint`.

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?

Implies usage by drawing an equivalence to `rover graph lint` and by describing baseSdl as an optional diff mode, but never states when to prefer this tool over RunSchemaCheck or GetLintResults. The when/when-not is left for the agent to infer.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources