Home / Directory / Apollo GraphOS / ValidateOperations
ValidateOperations
An MCP tool from the Apollo GraphOS server, run by Apollo.
Validate client GraphQL operations against a variant's published schema and return each problem's type (FAILURE, WARNING, INVALID), code, description, and the name of the operation it came from. This is the same check that `rover client check` runs. Nothing is published and no state changes. Provide the graph ID and the operations, each one a body and an optional name. Optionally name the variant to validate against; the default is "current".
Name on the gateway: apollo_graphos__ValidateOperations.
Parameters
| Name | Type | Description |
|---|---|---|
graphId required | string | |
operations required | array | |
variant | mixed |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "apollo_graphos__ValidateOperations",
"arguments": {
"graphId": "…",
"operations": []
}
}The first call connects Apollo GraphOS to your account automatically; nothing to set up. About this server.
Try asking
Use the validateoperations tool with graphId set to ….