Skip to main content
Glama

Mount / Unmount an Unassigned Partition

unassigned_action
DestructiveIdempotent

Mount or unmount an unassigned Unraid partition over SSH via the Unassigned Devices plugin, then verify the mount point with lsblk. Requires explicit confirmation and risk acknowledgment.

Instructions

⚠ Mounts or unmounts an unassigned partition (e.g. /dev/sdz1 from unassigned_list) through the Unassigned Devices plugin's rc.unassigned mount|umount over SSH, then verifies the mount point with lsblk. Mounting may run the plugin's device script and share the partition over SMB per the plugin's settings. Refuses partitions of array/pool/flash disks, and refuses entirely when the plugin is not installed (no raw mount fallback). Requires confirm: true AND acknowledge_risk: true, plus SSH.

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>",
      "device": "<device>"
    },
    "name": "unassigned_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes`mount` mounts the partition under /mnt/disks; `unmount` detaches it, so anything still writing to it fails.
deviceYesPartition path from unassigned_list, e.g. /dev/sdz1 or /dev/nvme1n1p1 (a partition, not a whole disk).
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
response_formatNo`detailed` returns full JSON instead of readable text.concise
acknowledge_riskNoSet `true` only after the user accepts the risk; needed with `confirm` for both `mount` and `unmount`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts the risk; needed with `confirm` for both `mount` and `unmount`."
    • addedInput schema / properties / action / description
      Added value: +"`mount` mounts the partition under /mnt/disks; `unmount` detaches it, so anything still writing to it fails."
    • 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 / device / description
      Added value: +"Partition path from unassigned_list, e.g. /dev/sdz1 or /dev/nvme1n1p1 (a partition, not a whole disk)."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=true, and the description reinforces the danger with the unmount-warning carried by the schema. It adds real context beyond annotations: mounting may trigger the plugin's device script, may share the partition over SMB per plugin settings, and the mount point is verified with lsblk. The one tension is calling the operation idempotent while disclosing side effects (script execution, SMB share creation) that make repeat calls non-inert — worth noting, though not a direct contradiction.

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

Conciseness4/5

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

Front-loaded with the action and mechanism in the first clause, then layers refusals and preconditions without filler. Dense but every sentence earns its place; the parentheticals and warnings cost a little scannability.

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

Completeness5/5

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

For a five-parameter mutation with no output schema, it covers mechanism, refusal cases, side effects, verification, and consent requirements — everything needed to decide whether and how to call it. Nothing material is left for the agent to guess.

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

Parameters4/5

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

Schema coverage is 100% with descriptions and enums on every property, so this is baseline 3 territory. The description still adds operational meaning by pairing `confirm` with `acknowledge_risk` as a joint requirement and framing `device` as a partition rather than a whole disk, both of which clarify how to fill the schema correctly.

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 a specific verb pair (mount/unmount) and resource (unassigned partition), plus the exact mechanism (`rc.unassigned mount|umount` over SSH) and the follow-up verification step (lsblk). It also points back to the sibling `unassigned_list` as the source of the device path, so an agent can distinguish it from other action tools 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?

Explicit when-to-use and when-not: it refuses partitions belonging to array/pool/flash disks and refuses entirely when the plugin is not installed, with no raw mount fallback. Prerequisites (`confirm: true`, `acknowledge_risk: true`, SSH) are named up front, leaving nothing to inference.

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