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.
Ask your agent in plain language. Each of these maps to a real tool on the server.
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 change is not successfully published and the federated graph continues running with the previous working schema.
create_branch
Creates a new branch on a federated graph. Branches enable different environments with independent schema registries and configurations. Grafbase requires a self-hosted graph for branch creation.
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.
get_account
Retrieves an account by its slug and returns the account ID needed to create graphs. Call get_viewer to discover available organization slugs.
list_graphs
Lists a page of graphs in an account and returns graph IDs for graph, branch, publishing, and schema-check operations. Call get_viewer to discover available organization slugs.
Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.
{"mcpServers": {"metorial": {"url": "<your-magic-mcp-url>"}}}
claude mcp add --transport http metorial <your-magic-mcp-url>
codex mcp add metorial --url <your-magic-mcp-url>codex mcp login metorial
One governed layer for every app your agents reach, not a separate connector per tool.
Discover Grafbase accounts and graphs, manage federated graphs and branches, publish subgraph schemas, run schema checks, retrieve schema SDL, and execute custom GraphQL operations.
Common questions about connecting Grafbase to AI agents with Metorial.