Skip to main content
Glama

Control the Parity Check

parity_check
Destructive

Starts, pauses, resumes, or cancels an Unraid parity check, optionally writing corrections on start. Requires confirmation; verify results with array status afterward.

Instructions

Starts, pauses, resumes, or cancels a parity check. action: "start" accepts correct (true = write corrections to parity, like the web UI checkbox; default false = read-only check). Requires confirm: true. The mutations return no usable status — run array_status afterward to confirm (status reads may lag a few seconds); pause/resume/cancel with no check running may be accepted with no effect. Requires an Unraid API key with ADMIN role. Behavior validated against Unraid API v4.35.0 (upstream marks these mutations WIP).

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": {
      "action": "<action>"
    },
    "name": "parity_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes`start` begins a check (refused while one is running); `pause`, `resume`, and `cancel` act on the running check.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
correctNoOnly with `start`: `true` writes corrections to parity; omitted or `false` runs a read-only check.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / action / description
      Added value: +"`start` begins a check (refused while one is running); `pause`, `resume`, and `cancel` act on the running check."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / correct / description
      Added value: +"Only with `start`: `true` writes corrections to parity; omitted or `false` runs a read-only check."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and non-idempotent, but the description goes well beyond them: it discloses that corrections are only written when `correct: true` (default read-only), that the confirm flag must be user-approved, that an ADMIN-role API key is required, that pause/resume/cancel can no-op, and that upstream marks these mutations WIP against v4.35.0. That is exactly the extra context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Action list is front-loaded in the first sentence, followed by parameter caveats, side-effect warnings, and prerequisites in descending order of importance. No sentence is filler; every clause carries an operational constraint.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by stating that mutation responses carry no usable status and pointing to `array_status` for verification. For a four-parameter destructive control tool this covers nearly everything an agent needs, though it could say more about what a successful response text contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so `action`, `confirm`, `correct`, and `response_format` are already fully described. The description mostly restates the confirm requirement and the start-only scope of `correct`, adding only the web-UI checkbox analogy; the read-only-versus-corrective distinction is already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States four specific verbs (starts, pauses, resumes, cancels) against a named resource (parity check), and immediately routes status-reading to the sibling `array_status`. An agent can distinguish this mutation control tool from the read-only status siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to run `array_status` afterward because mutations return no usable status, warns that status reads lag, and notes that pause/resume/cancel with no check running may be silently accepted with no effect. The `start` precondition (refused while one is running) comes from the schema and the description reinforces the confirm gate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.