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 Subgraphs

Read a subgraph's schema, publish a subgraph, and delete a subgraph from a variant


The tools described in this section let your agent read a subgraph's schema and change which subgraphs a variant contains.

note
These tools act on your organization's data, so they require authentication. For instructions on how to authenticate, refer to the Authentication section.
caution
Publish Subgraph and Delete Subgraph are tools that update your graph. Confirm the graph, the variant, the subgraph, and run the necessary schema checks before allowing your agent to run these tools.

Get Subgraph Schema

Purpose: Retrieve a subgraph's published schema from a variant, with its routing URL, revision, and last update time. Retrieves one subgraph at a time; a supergraph document is much larger and can exceed the context window of the model. Use Get Variant Details first if you do not know the subgraph names.

Example: "Show me the schema for the products subgraph on my production variant."

Publish Subgraph

caution
Publish Subgraph updates your graph. Before running this tool, confirm the graph, the variant, the subgraph, and run the necessary schema checks.

Purpose: Publish a subgraph schema to a variant, which triggers composition. Returns whether the subgraph was created or updated, any composition errors, and the launch that started. Provide the routing URL when you add a new subgraph or need to update the subgraph's endpoint. Run the Run Subgraph Check tool first to see the impact on client operations.

Example: "Publish this schema to the products subgraph on my staging variant."

Delete Subgraph

caution
Delete Subgraph updates your graph. Before running this tool, confirm the graph, the variant, and the subgraph, and run it once with the dry run option enabled.

Purpose: Remove a subgraph from a variant, which triggers composition and a new launch. Returns the composition errors that the removal causes. If you enable the dry run option, the tool will not remove the subgraph but instead reports the composition result that the removal would produce. Apollo recommends running this tool with the dry run option enabled first before proceeding.

Example: "What would break if I removed the inventory subgraph? Do a dry run first." Then, if the dry run is successful, you can follow up with "Remove the inventory subgraph."