Skip to main content
Glama

Create an SMB share

omv_create_smb_share

Stages an SMB (Samba/Windows/macOS) share for an existing OpenMediaVault shared folder, with guest access, read-only, browseable, and comment options; apply changes separately.

Instructions

Share an existing shared folder over SMB (Samba, Windows and macOS file sharing). Staged, not applied. Use it when asked "share Photos over SMB", "make it visible from Windows", or "add a Samba share"; for Linux clients, omv_create_nfs_share. Only guest access, read_only, browseable, and the comment are chosen here; every other SMB setting gets this server's fixed default (no recycle bin, dot files hidden, ACLs inherited, no host allow or deny list, no extra options; the README lists them). Refuses when the folder already has an SMB share (OMV allows one); the same arguments as that share return outcome unchanged. Creating a share does not enable a disabled SMB 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>"
    },
    "name": "omv_create_smb_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestNoGuest access: no (a login is needed), allow (guests may connect too), only (guests only).no
commentNoA comment: one line of printable text, up to 200 characters.
read_onlyNoMake the share read-only for everyone.
browseableNoShow the share when the server's shares are browsed.
shared_folderYesThe shared folder to share, by name, as omv_list_shared_folders shows 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?

Goes well beyond the annotations: discloses that the operation is staged rather than applied, that every non-listed setting inherits the server's fixed defaults (no recycle bin, dot files hidden, ACL inheritance, no host allow/deny), that it refuses when an SMB share already exists and returns the prior outcome unchanged for identical arguments, and that it does not enable a disabled SMB service. This is exactly the mutating-operation context annotations alone cannot convey.

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 purpose and trigger examples, then prerequisites and caveats, with zero filler sentences. It is dense and long-ish, and the parenthetical "the README lists them" adds little, but every clause carries actionable information for a mutating tool.

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?

An output schema exists, so return values need not be explained, yet the description still covers staging semantics, refusal behavior, defaults, the apply step, and the write-permission requirement. Nothing an agent needs to call this correctly is missing.

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 real meaning by framing the parameters as an exhaustive, deliberately narrow knob set: only guest access, read_only, browseable, and comment are user-chosen while all other SMB behavior is fixed by the server. That framing prevents an agent from assuming omitted settings can be tuned.

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 — "Share an existing shared folder over SMB" — and names the sibling it is not for Linux clients (omv_create_nfs_share). An agent can immediately distinguish it from the NFS counterpart and from omv_create_shared_folder.

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 phrases ("share Photos over SMB", "make it visible from Windows"), an explicit alternative for Linux clients, prerequisites (folder must exist and must not already have an SMB share), the required env flag OMV_ALLOW_WRITES=1, and the follow-up step omv_apply_changes. When-to-use, when-not, and the alternative are all stated.

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