Skip to main content
Glama

Delete User Share (config only)

share_delete
Destructive

Deletes an empty Unraid user share's configuration through emhttpd, verifies its .cfg file is gone, and refuses if files remain. Requires confirmation, risk acknowledgment, and SSH.

Instructions

⚠ Deletes an EMPTY user share's configuration through emhttpd (the web UI's own delete, via emcmd over SSH) and verifies that /boot/config/shares/.cfg is gone. Never deletes files: if /mnt/user/ still contains anything the tool refuses and says where the data lives. 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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact name of the empty share whose configuration to delete, from share_list.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
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. Changed3 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 / 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 empty share whose configuration to delete, from share_list."
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructive annotation, it discloses the deletion mechanism through emhttpd/emcmd over SSH, the post-delete verification of the .cfg file, and the refusal behavior when data exists. It also explains the safety gates: confirm and acknowledge_risk must both be true.

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?

The warning is front-loaded and every sentence carries operational weight: behavior, file-safety guarantee, and prerequisites. There is no redundant or filler text.

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 destructive configuration-only tool with no output schema, the description covers what is deleted, what is never deleted, how deletion is performed, how success is verified, and which confirmations are required. This is sufficient for an agent to call it safely.

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 complete, so the baseline is 3, but the description adds that confirm and acknowledge_risk are required on every call even though the schema marks only name as required. It also reinforces that name must refer to an empty share listed by share_list.

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?

The description states a specific verb and resource: deleting an empty user share's configuration. It sharply distinguishes configuration deletion from file deletion by saying 'Never deletes files' and tying the operation to an empty share.

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

Usage Guidelines4/5

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

It gives clear conditions for use: the share must be empty, otherwise the tool refuses and reports where data lives. It also states required confirmations and SSH, though it does not explicitly name alternatives such as share_edit or share_create.

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