LintSchema
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.
The rules that run are the ones enabled in the graph's linter configuration, so a missing diagnostic can mean the rule is turned off.
Optionally provide baseSdl to report only the diagnostics that the new schema introduces against that base; empty diagnostics then mean the new schema introduces no violations of the enabled rules, and ignored diagnostics are counted in ignoredCount, not listed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graphId": "<graphId>",
"sdl": "<sdl>"
},
"name": "LintSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdl | Yes | The schema to lint. | |
| baseSdl | No | The schema to diff rule violations against, if not provided the full set of rule violations will be returned for the proposed sdl. | |
| graphId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |