Skip to main content
Glama

Create a shared folder

omv_create_shared_folder

Creates a named directory on a mounted OpenMediaVault filesystem so SMB and NFS shares can be made from it. Use it to add a shared folder on the NAS; changes are staged until applied.

Instructions

Create a shared folder: a named directory on a mounted filesystem, which SMB and NFS shares are made from. Use it when asked "make a folder called Backups on the NAS" or "add a shared folder"; to put it on the network, omv_create_smb_share or omv_create_nfs_share. filesystem is the filesystem's label or device file (omv_list_filesystems). OMV creates the directory on disk right away; the configuration change is staged and is applied only by omv_apply_changes (pending lists what is waiting). Refuses a name that already exists, a relative_path with '..' or a leading '/', and a mode OMV does not offer. Calling it again with the same name, path, comment, and filesystem as an existing folder returns outcome unchanged; the NAS does not report a folder's mode, so the mode is never compared (the detail says so when you asked for one). Needs OMV_ALLOW_WRITES=1.

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>",
      "filesystem": "<filesystem>"
    },
    "name": "omv_create_shared_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPermissions of the new directory, as OMV offers them: 700, 750, 755, 770, 775 (the default), or 777 (everyone may read and write).
nameYesThe new shared folder's name: letters, digits, '.', '-', '_' (no spaces), up to 64 characters.
commentNoA comment: one line of printable text, up to 200 characters.
filesystemYesThe mounted filesystem to create it on: its label (such as data1) or device file (such as /dev/sdb1), as omv_list_filesystems shows them.
relative_pathNoThe directory under the filesystem's mount point, such as media/ or video/films/; defaults to the name followed by '/'. No '..' and no leading '/'.

Output Schema

NameRequiredDescriptionDefault
detailYes
outcomeYes
pendingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Adds substantial context beyond the annotations: the directory is created on disk immediately while the config change is staged until omv_apply_changes, three validation refusals are named, and the OMV_ALLOW_WRITES=1 prerequisite is stated. However, the claim that a repeat call with identical arguments 'returns outcome unchanged' reads as idempotent behavior while idempotentHint is false, and the description does not reconcile the two, leaving an ambiguity about whether re-invocation is safe or a no-op.

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?

Purpose and alternatives are front-loaded, then prerequisites and validation. The final sentence is a long run-on that stacks idempotency, mode comparison, and the parenthetical about detail output, which costs readability but not much length.

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?

Covers everything an agent needs for a mutating, staged-config tool: write-permission gating, immediate disk effect versus deferred config apply, validation failures, and duplicate-name semantics. With an output schema present and full schema coverage, no meaningful gap remains.

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 every parameter already carries its own documentation and the description mostly restates it (filesystem as label or device, relative_path restrictions). It does add one genuine nuance the schema lacks — that mode is never compared on repeat calls because the NAS does not report it — but that is a single increment over an already-complete 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?

Opens with a specific verb and resource ('Create a shared folder') and immediately defines the object as 'a named directory on a mounted filesystem, which SMB and NFS shares are made from', which distinguishes it from omv_create_smb_share and omv_create_nfs_share that operate on the share layer.

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 concrete trigger utterances ('make a folder called Backups on the NAS') and explicitly routes the network-exposure case to omv_create_smb_share or omv_create_nfs_share, so the boundary between creating the folder and sharing it is unambiguous.

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