Skip to main content
Glama

Create an NFS share

omv_create_nfs_share

Stages an NFS export of an existing OpenMediaVault shared folder to one client host, address, or CIDR network, with read-only or read-write options; apply changes later.

Instructions

Export an existing shared folder over NFS to one client: a host, an address, or a CIDR network. Staged. Use it when asked "export Media over NFS", "let 192.0.2.10 mount it", or "add an NFS share for Linux"; for Windows or macOS clients, omv_create_smb_share. The export options come from a fixed list: ro (the default) or rw, subtree_check (on by default; off sends no_subtree_check, the NFS default), and insecure (only when asked); nothing else, and no free-text options. A folder may have several NFS shares, one per client: refuses when it already has one for this client, and returns outcome unchanged when that one exports exactly the same options. client '*' (any host) needs allow_any_client=true. Creating a share does not enable a disabled NFS service; the detail says so. Apply with omv_apply_changes. 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": {
      "shared_folder": "<shared_folder>",
      "client": "<client>"
    },
    "name": "omv_create_nfs_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientYesWho may mount it: one host name (nas-client.example.com), one address (192.0.2.10), or one network in CIDR form (192.0.2.0/24). '*' (anyone) only together with allow_any_client=true.
commentNoA comment: one line of printable text, up to 200 characters.
insecureNoAdd the insecure export option, allowing client ports above 1023 (macOS needs it).
read_onlyNoExport read-only (ro, the default) or read-write (rw).
shared_folderYesThe shared folder to share, by name, as omv_list_shared_folders shows it.
subtree_checkNoAdd the subtree_check export option (the default).
allow_any_clientNoMust be true for client '*', which lets any host mount it.

Output Schema

NameRequiredDescriptionDefault
detailYes
outcomeYes
pendingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, non-destructive, non-idempotent, non-open-world; the description goes much further. It discloses that writes are staged and must be applied, that the tool refuses a duplicate share for the same client, that an identical existing export returns 'outcome unchanged', that a disabled NFS service is not enabled as a side effect, and that only a fixed option set is permitted.

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 the sibling routing, followed by constraints and then the apply requirement, so the important parts arrive early. It is dense, and the parenthetical about no_subtree_check is a little compressed, but every sentence carries information an agent needs.

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 7-parameter mutation tool it covers prerequisites, duplicate handling, why a call may be a no-op, and the follow-up apply step. An output schema exists, so the description need not spell out return values, and it still hints at the 'outcome' field.

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; the description still adds value by constraining the option space ('nothing else, and no free-text options'), restating ro as the default, explaining that subtree_check off emits no_subtree_check which is the NFS default, and tying client '*' to allow_any_client. It does not add anything beyond the schema for comment or shared_folder, so it stops short of a full 5.

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 first sentence gives a specific verb and resource plus scope: 'Export an existing shared folder over NFS to one client'. It also carves out the boundary against the sibling, naming omv_create_smb_share for Windows/macOS clients, so an agent can pick between them 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?

Explicitly states when to use it with three concrete request phrasings and names the alternative tool for the non-Linux case. It adds the operational preconditions an agent must know: OMV_ALLOW_WRITES=1, the staged-then-omv_apply_changes workflow, and the allow_any_client=true requirement for client '*'.

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