graphql_mutate
Execute a GraphQL write operation (mutation) to create, update, or delete data. Provide the mutation query and optional variables; enabled only when GRAPHMCP_ALLOW_MUTATIONS=1 is set.
Instructions
Execute a GraphQL mutation (write operation).
Only permitted when the server is started with GRAPHMCP_ALLOW_MUTATIONS=1. Example:
mutation($input: CreatePostInput!) { createPost(input: $input) { id } }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mutation": "<mutation>"
},
"name": "graphql_mutate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mutation | Yes | ||
| variables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||