list_subgraphs
List Subgraphs
Lists all published subgraphs in a branch of a federated graph. Returns each subgraph's name, endpoint URL, and schema definition.
list_subgraphs
Lists all published subgraphs in a branch of a federated graph. Returns each subgraph's name, endpoint URL, and schema definition.
delete_branch
Deletes a branch from a federated graph. The production branch (typically "main") cannot be deleted.
get_branch
Retrieves details about a specific branch of a federated graph, including its configuration and operation check settings.
get_graph
Retrieves details about a federated graph including its branches, account information, and configuration. Look up by account/graph slug pair or by graph ID directly.
publish_subgraph
Publishes a subgraph schema to the Grafbase schema registry. When published, the registry composes the subgraph with all other subgraphs in the branch to create a unified federated schema. Republishing an unchanged schema is safe and has no side effects. If composition fails, the federated graph continues running with the previous working schema.
create_branch
Creates a new branch on a federated graph. Branches enable different environments (e.g., staging, development) with independent schema registries and configurations.
execute_graphql
Executes an arbitrary GraphQL query or mutation against the Grafbase Management API. Use this for operations not covered by other tools, or to access the full capabilities of the Grafbase API. The Grafbase API has introspection enabled, so you can use this to explore the schema with introspection queries.
create_graph
Creates a new federated graph in a Grafbase account. Requires the account ID and a slug for the new graph. The slug must be unique within the account.
check_subgraph
Runs composition and breaking change checks against a subgraph schema without publishing it. Use this in CI/CD workflows to validate schema changes before they go live. Detects breaking changes including: field removals, type changes, removed arguments, new required fields, and more. Also runs lint checks for naming conventions.
delete_graph
Permanently deletes a federated graph and all its branches, subgraphs, and associated data. This action cannot be undone.
get_schema
Retrieves the GraphQL schema for a federated graph. Can fetch either the composed federated schema or an individual subgraph's schema. Use without a subgraph name to get the full composed schema. Specify a subgraph name to get that specific subgraph's SDL.
get_viewer
Retrieves the authenticated user's profile and their organization memberships. Use this to discover the current user's identity, available organizations, and account slugs needed for other operations.
Manage GraphQL federation infrastructure through the Grafbase Management API. Create and configure federated graphs, publish and compose subgraph schemas via the schema registry, run schema checks to detect breaking changes, and manage schema proposals for collaborative governance. Manage organizations, memberships, and access tokens programmatically. Access audit logs for compliance tracking and retrieve observability data including traces, metrics, and operation analytics for federated graphs.
Common questions about connecting Grafbase to AI agents with Metorial.