Skip to main content
Glama
abranson
by abranson

Cancel Device Command Job

sailfish_device_command_cancel

Cancel a detached Sailfish OS device command and its process group by job ID to stop unwanted or runaway tasks.

Instructions

Request cancellation of a detached device command and its process group.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

The word 'Request' usefully signals this is a best-effort/asynchronous cancellation rather than a guaranteed kill, adding meaning beyond the readOnlyHint=false / destructiveHint=false annotations. It also discloses the scope (whole process group). However, it says nothing about permissions, reversal, or that non-idempotent behavior means repeat calls may fail.

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?

A single tight sentence with the action front-loaded and no filler. It is appropriately sized, though it leaves room for the missing usage and parameter context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description need not explain return values, but for a cancellation tool it omits how to obtain job_id, whether the request is asynchronous, and how to confirm success. Annotations cover the safety profile, so the remaining gaps are moderate rather than severe.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions job_id, where it comes from (presumably command_start), or its format. The phrase 'a detached device command' loosely implies the identifier refers to that job, but the single required parameter is effectively undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (cancel) and resource (detached device command and its process group), which separates it from siblings like sailfish_device_command_start and _status. It does not explicitly name those siblings, but the resource is distinctive enough to identify the tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus sailfish_device_command_status or the build/android cancel variants, nor any precondition (e.g., that the job must be in a running state). Usage is only implied by the tool name.

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