Raw GraphQL Mutation
graphql_mutationRun arbitrary GraphQL mutations against the Unraid API to perform write operations not covered by dedicated tools, with confirmation and risk acknowledgement required.
Instructions
⚠ Advanced escape hatch. Runs an arbitrary GraphQL mutation against the Unraid API, reaching write operations no dedicated tool covers yet (server identity, SSH settings, system time, Docker folders, ...). Requires confirm: true on every call, and additionally acknowledge_risk: true when the mutation selects a known-dangerous field; without them the tool refuses and never touches your server. Prefer the dedicated gated tools when one exists: they encode server quirks (stale read-backs, replace-vs-merge semantics) this passthrough does not, so verify results with a follow-up read. Only mutation operations are accepted (use graphql_query for queries). Every document is validated against the vendored schema before the confirm gate (typos get did-you-mean hints); dry_run: true validates only. The schema is in this package's schema/unraid.graphql; results are subject to the API key's permissions.
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_mutation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| dry_run | No | `true` validates the document against the vendored schema and returns without sending it; no `confirm` needed. | |
| mutation | Yes | GraphQL document containing exactly one `mutation` operation. | |
| variables | No | Values for the variables the document declares, keyed by name without the `$`. | |
| acknowledge_risk | No | Set `true` only after the user accepts the risk; needed when the mutation selects `setState`, `forceStop`, `reset` or `configureUps`, ignored otherwise. |