Apollo GraphOS Platform
OverviewQuickstart
APIs and Tools
Schema Management
Explorer IDE
Graph Security
Metrics and Insights
Access Management
Graph Management
Production Readiness
Platform Limits

Tools for Schema Checks

Read schema check results, run schema and subgraph checks, and validate client operations against a schema


The tools described in this section let your agent read previous schema checks, run schema checks, and validate client operations against a published schema.

note
These tools read your organization's data, so they require authentication. For instructions on how to authenticate, refer to the Authentication section.

Get Schema Checks

Purpose: List previous schema checks for a graph, most recent first. Each entry includes the check ID, status, timestamps, the subgraph that was checked, the variant it ran against, the commit, and the status of each task in the run. Filter by status, subgraph, branch, variant, author, or check ID, and page through the results with a limit and offset. Use this to find a check, then pass its ID to Get Check Results.

Example: "Show the schema checks that failed on my graph this week."

Get Check Results

Purpose: Read the outcome of a single check run: the overall status, and for each task in the run the composition errors, the lint diagnostics, the schema changes with the client operations they affect, the downstream variant results, and the custom check violations. Use this after Get Schema Checks gives you a check ID.

Example: "Why did check 509219cd fail, and which client operations would break?"

Run Schema Check

Purpose: Run a schema check of a proposed schema against a variant. Use this for a monograph or supergraph schema. The check runs in the background, so the tool returns a check ID and a link to the results in GraphOS. Pass the check ID to Get Check Results to read the result.

Example: "Check this schema against my production variant, then show me the results."

Run Subgraph Check

Purpose: Runs a schema check of a proposed subgraph schema against a variant. The check runs in the background, so the tool returns a check ID and a link to the results in GraphOS. Pass the check ID to Get Check Results to read the result.

Example: "Check my proposed changes to the products subgraph."

Validate Operations

Purpose: Validate client GraphQL operations against a variant's published schema and return each problem's type, code, description, and the operation it came from. Use this to check whether client operations still work against a schema. Nothing is published.

Example: "Are the operations in my client still valid against the production schema?"