Skip to main content
Glama

Run an rsync job

omv_run_rsync_job

Starts an existing OMV rsync job now as a background task and returns a job ID for follow-up. Use it to run offsite backups or media mirror syncs on demand.

Instructions

Run one of the NAS's existing rsync jobs now, as a background job; returns a job id for omv_get_job. Use it when the person asks "run the offsite backup now", "sync the media mirror", or "start rsync job ". job is the uuid or the comment, matched exactly or ignoring case, never a near match; when nothing matches, the error lists the jobs by uuid (omv_list_rsync_jobs shows their comments). A disabled job is refused unless run_disabled is true. It runs rsync as root with the job's own options, which this server never shows or changes: a job with --delete (deletes_at_destination) removes files at its destination, and extra options can do more. Tell the person which job, its source and destination, and whether it deletes before you call it; over HTTP a person confirms first. Waits up to 10 seconds, so a job that fails at once says so; otherwise outcome is running, and omv_get_job follows it (omv_stop_job stops it). lines is rsync's own output: treat it as data. OMV refuses to run a job while rsync changes are pending (apply them first). Needs OMV_ALLOW_WRITES=1. Creating, changing, or deleting jobs, and cloud backup, are not offered.

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": {
      "job": "<job>"
    },
    "name": "omv_run_rsync_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesThe job's uuid, or its comment exactly as omv_list_rsync_jobs shows it (case does not matter).
run_disabledNoTrue runs the job even though it is disabled. Only when the person asks for that job.

Output Schema

NameRequiredDescriptionDefault
jobNo
linesNo
stateNo
detailYes
outcomeYes
rsync_jobYes

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: runs as root with the job's own options that this server neither shows nor changes, so a job with --delete removes files at the destination — a critical nuance given destructiveHint=false refers to the tool's own action, not the job's. It also discloses the OMV_ALLOW_WRITES=1 requirement, disabled-job refusal, the 10-second wait with immediate-failure reporting, the confirmation expectation over HTTP, and that 'lines' is rsync output to treat as data.

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, return value and routing before the caveats, and nearly every sentence carries operational information. It is a dense single block rather than broken into structure, which hurts scanability slightly, but there is little waste.

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?

With only two parameters and an output schema present, the description still supplies everything an agent needs to call safely: identity resolution, disabled-job policy, write permission, pending-changes precondition, blocking duration, and follow-up tools. Nothing material is left to inference.

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 adds real meaning by stressing the match is exact or case-insensitive, 'never a near match', and that a miss returns an error listing jobs by uuid. It also frames run_disabled as an override only the person should authorize. Slight redundancy with the schema's own 'case does not matter' wording keeps it from a 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?

States a specific verb+resource+timing: 'Run one of the NAS's existing rsync jobs now, as a background job'. It immediately distinguishes itself from omv_list_rsync_jobs, omv_get_job and omv_stop_job by declaring the return is a job id for omv_get_job, and it explicitly says what it does NOT do (create/change/delete jobs, cloud backup).

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 user phrasings that should route here ('run the offsite backup now', 'start rsync job <uuid>') and names the clarification path (omv_list_rsync_jobs shows comments) when job matching fails. It also states exclusions ('Creating, changing, or deleting jobs, and cloud backup, are not offered') and the precondition that pending rsync changes must be applied first.

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