Skip to main content
Glama

Create User Share

share_create
Destructive

Creates a new Unraid user share and its directory, verifies the saved configuration, and refuses existing or reserved names; requires confirmation and risk acknowledgment.

Instructions

⚠ Creates a user share (and its /mnt/user/ directory) through emhttpd (the same form the web UI submits, via emcmd over SSH) and verifies it by re-reading /boot/config/shares/.cfg. Refuses a name that already exists (use share_edit to change an existing share) and reserved, disk, and pool names. Omitted settings default to highwater allocation and useCache no; SMB settings are submitted only when smbExport or smbSecurity is passed. Requires confirm: true AND acknowledge_risk: true, plus SSH. The GraphQL API has no share mutations.

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_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new share: letters, digits, dot, underscore, hyphen; at most 40 characters; no leading dot.
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: +"Name for the new share: letters, digits, dot, underscore, hyphen; at most 40 characters; no leading dot."
    • 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.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, but the description goes well beyond them: the exact write path (emhttpd form submitted via SSH), post-write verification by re-reading /boot/config/shares/<name>.cfg, and default allocation/useCache behavior for omitted settings. This is the kind of context an agent needs for a destructive mutation.

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?

A single dense paragraph, front-loaded with the warning and the core action, with refusals and prerequisites following. Nothing is filler, though the emcmd/SSH parenthetical and the default-value clause make it heavier than it needs to be.

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?

For a nine-parameter destructive mutation with no output schema, the description covers prerequisites, defaults, refusal cases and verification. It stops short of saying what happens if the post-write verification fails (rollback of the created directory) or what permissions the new directory gets, which is a real remaining gap.

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 the schema already defines every parameter including the four enums, and the description largely restates them at a higher level. It does add one piece of meaning not in the schema, namely that omitted values default to highwater and useCache `no`, which justifies credit above the baseline but not a high score.

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 and resource (creates a user share plus its /mnt/user/<name> directory) and names the mechanism (emhttpd/emcmd over SSH) and the verification step. It also names the sibling share_edit for the divergent case, so an agent can distinguish it without opening either 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 exclusions and routing: refuses existing names and points to share_edit, refuses reserved/disk/pool names, and states that SMB fields are only submitted when smbExport or smbSecurity is passed. It also states the gating conditions (confirm plus acknowledge_risk, plus SSH) before a call can succeed.

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