Skip to main content
Glama

Start a background job

omv_start_job

Start a NAS background job, such as refreshing package updates or running a scheduled SMART test, and return a job ID to follow or stop it.

Instructions

Start a job on the NAS and follow it in the background; returns a job id for omv_get_job and omv_stop_job. Use it when asked "check for updates now" or "run a SMART self-test on /dev/sda"; to follow it, omv_get_job. kind refresh_updates refreshes the package index (apt update), so omv_list_updates sees new versions; it works with writes off and takes no target. kind smart_test runs one of the NAS's scheduled SMART self-tests now, chosen by target (the disk, such as /dev/sda) and test (short, long, conveyance, offline) when the disk has several; it needs writes on, and when nothing matches the error lists the scheduled tests. It cannot run a test that has no schedule. The self-test itself runs on the disk for minutes (short) to hours (long); read its result later with omv_get_disk_health. At most 4 jobs run at once, one per kind and target.

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": {
      "kind": "<kind>"
    },
    "name": "omv_start_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
testNosmart_test only: which scheduled test, when the disk has more than one.
targetNosmart_test only: the disk, as its device file or name (/dev/sda or sda, or a /dev/disk/by-id name).

Output Schema

NameRequiredDescriptionDefault
jobNo
kindYes
stateNo
detailYes
targetYes
outcomeYes
started_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, non-idempotent, non-destructive call; the description goes well beyond that by disclosing the writes-on requirement per kind, the four-concurrent-jobs/one-per-kind-and-target limit, the error behavior (listing scheduled tests when nothing matches), and runtime expectations from minutes to hours. It also tells the agent where to read the result later, which is the key behavioral consequence of fire-and-forget execution.

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 the follow-up tool are front-loaded, then per-kind detail follows in a logical order. It is dense but nearly every clause carries operational information; only "to follow it, omv_get_job" lightly restates the earlier job-id sentence and could be trimmed.

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 three-parameter background-job launcher with an output schema, the description covers everything an agent needs: when to use it, per-kind prerequisites, concurrency limits, failure behavior, and where the asynchronous result surfaces. Return-value detail can be left to the output schema without leaving a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, with descriptions on test and target only, so the description carries the enum semantics for kind: refresh_updates is an apt update that makes omv_list_updates see new versions and takes no target, while smart_test selects among scheduled tests via target and test. It clarifies that test is only needed when the disk has several, adding conditional meaning the schema does not express.

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 ("Start a job on the NAS") and immediately states the output and its consumers ("returns a job id for omv_get_job and omv_stop_job"). The two supported job kinds are named, which separates it cleanly from siblings like omv_apply_changes or omv_run_rsync_job.

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 ("check for updates now", "run a SMART self-test on /dev/sda") and routes the agent to omv_get_job for follow-up and omv_get_disk_health for results. It also states per-kind preconditions (refresh_updates works with writes off; smart_test needs writes on) and the exclusion that a test with no schedule cannot be run.

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