EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/docs/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Tools for Schema Linting
Read a variant's lint results and lint a schema
The tools described in this section give your agent access to your graph's schema linting results, and run a schema lint check.
Get Lint Results
Purpose: Retrieve schema lint violations from a graph's most recent schema checks. Returns each diagnostic's coordinate, severity level, message, rule, and source location, plus error, warning, total, and ignored counts. Use this to assess schema quality and identify naming or best-practice violations.
Example: "Are there any schema lint violations in my graph? Show errors before warnings."
Lint Schema
Purpose: Run a lint check on your schema against your 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. Optionally, you can supply a base schema to report only the diagnostics that the new schema introduces. Nothing is published to the graph.
Example: "Run a lint check on this schema and show me only the new violations."