Skip to main content
Glama

Stop a background job

omv_stop_job

Cancels a running NAS job by sending SIGTERM and stops following its output once the final lines are read. Use it to stop a self-test or job when asked to cancel it.

Instructions

Stop a running job: the NAS sends it SIGTERM, and this server stops following it after reading its last output. Use it when asked "cancel that job" or "stop the self-test"; find the job id with omv_get_job. A job that has already ended is returned as it is. Stopping a smart_test job may not abort a self-test the disk has already begun. An install_updates job is not stopped: interrupting a package upgrade can leave packages half configured.

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_id": "<job_id>"
    },
    "name": "omv_stop_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job id omv_start_job returned, such as job-1a2b3c4d.

Output Schema

NameRequiredDescriptionDefault
jobNo
jobsNo
kindNo
linesNo
stateNo
detailNo
targetNo
started_atNo
finished_atNo
reboot_requiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say this is a non-read-only, non-destructive, non-idempotent call. The description discloses the signaling mechanism (SIGTERM), the server-side behavior of ceasing to follow the job after reading final output, the already-ended job case, the smart_test caveat, and the install_updates refusal — all behavioral facts the agent could not infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, each carrying distinct load: what happens, when to use it, the no-op case, and the two exceptions. The mechanism is front-loaded before the caveats, so an agent scanning the first sentence already knows the core effect.

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 described, and the annotations already cover the safety profile. The remaining risk areas for this specific tool — job already finished, smart_test not truly abortable, install_updates blocked — are all called out, leaving nothing material an agent needs before calling it.

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% and the single job_id parameter is already documented with an example, so the baseline is 3. The description only points at where to obtain the id (omv_get_job) rather than adding syntax or format detail beyond the schema, and it differs slightly from the schema's note that the id comes from omv_start_job.

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?

Names a specific verb and resource ('Stop a running job') and immediately explains the mechanism: the NAS sends SIGTERM and the server stops following the job after reading its last output. It also implicitly separates itself from omv_get_job by deferring id lookup to that tool.

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 ('cancel that job', 'stop the self-test') plus the prerequisite step of finding the job id with omv_get_job. It also states the when-not case explicitly: install_updates jobs are not stopped because interrupting a package upgrade can leave packages half configured.

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