Skip to main content
Glama

Edit User Share

share_edit
DestructiveIdempotent

Updates an existing Unraid user share's settings through the web UI and verifies the saved config, leaving unspecified options unchanged.

Instructions

⚠ Changes an existing user share's settings through emhttpd (the web UI's own form, via emcmd over SSH) and verifies by re-reading /boot/config/shares/.cfg. Pass at least one of comment, allocator, useCache, cachePool, smbExport, smbSecurity; omitted ones and every other share setting are passed through unchanged. It cannot rename a share, and it refuses a share that has no config yet (use share_create). 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": {
      "name": "<name>"
    },
    "name": "share_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact name of the existing share to edit, from share_list.
commentNoFree-text comment stored on the share (Unraid's `shareComment` setting).
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
useCacheNo`no` writes straight to the array; `yes` writes to the pool and the mover moves files to the array; `prefer` keeps files on the pool; `only` uses the pool alone.
allocatorNoWhere new files land: `highwater` fills the lowest-numbered disk down to a stepped free-space mark, `fillup` fills it to its minimum free space, `mostfree` picks the emptiest disk.
cachePoolNoName of an existing cache pool; an unknown name is refused with the valid pools.
smbExportNoSMB export: `-` = not exported, `e` = exported, `eh` = exported but hidden.
smbSecurityNoSMB security mode controlling who can reach the share (`shareSecurity`).
acknowledge_riskNoSet `true` only after the user accepts the risk; needed with `confirm` on every call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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` on every call."
    • addedInput schema / properties / allocator / description
      Added value: +"Where new files land: `highwater` fills the lowest-numbered disk down to a stepped free-space mark, `fillup` fills it to its minimum free space, `mostfree` picks the emptiest disk."
    • addedInput schema / properties / cachePool / description
      Added value: +"Name of an existing cache pool; an unknown name is refused with the valid pools."
    • addedInput schema / properties / comment / description
      Added value: +"Free-text comment stored on the share (Unraid's `shareComment` setting)."
    • 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 / name / description
      Added value: +"Exact name of the existing share to edit, from share_list."
    • addedInput schema / properties / smbExport / description
      Added value: +"SMB export: `-` = not exported, `e` = exported, `eh` = exported but hidden."
    • addedInput schema / properties / smbSecurity / description
      Added value: +"SMB security mode controlling who can reach the share (`shareSecurity`)."
    • addedInput schema / properties / useCache / description
      Added value: +"`no` writes straight to the array; `yes` writes to the pool and the mover moves files to the array; `prefer` keeps files on the pool; `only` uses the pool alone."
  2. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds substantial context beyond them: omitted settings and all other share settings pass through unchanged, changes are verified by re-reading the cfg, renaming is refused, and unknown cache pool names are rejected with the valid list. It also discloses the two-step human-approval gate that a mutation of this risk level needs.

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 a warning marker and the core action, then preconditions, then exclusions. Dense but nearly every clause carries operational weight; the mechanism detail 'emhttpd ... via emcmd over SSH' is slightly verbose but supports the SSH requirement that follows.

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?

A destructive, human-approval-gated mutation with nine parameters and no output schema, yet the description covers the auth/SSH requirement, the confirmation gate, passthrough semantics, failure modes, and post-write verification. An agent has everything needed to call it correctly or route elsewhere.

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%, so the baseline is 3, but the description adds a constraint the schema cannot express: at least one of the six optional settings must be supplied, and everything omitted is preserved. It also names the editable subset ('every other share setting') so the agent knows the field list is bounded, though it does not explain interactions between the six fields.

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 (changes settings), a specific resource (an existing user share), and the mechanism (emhttpd via emcmd over SSH) plus verification by re-reading the share's cfg file. It also explicitly carves out what it is not: 'It cannot rename a share', and it routes nonexistent shares to share_create.

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?

Gives explicit preconditions (at least one of comment/allocator/useCache/cachePool/smbExport/smbSecurity, plus confirm and acknowledge_risk and SSH) and an explicit exclusion with the sibling to use instead (share_create for shares with no config yet). Nothing about when to invoke it is left to inference.

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