Skip to main content
Glama

adb_job_start

Destructive

Starts a long-running command in the background on an Android device and returns a job ID immediately so you can poll status or stop it later.

Instructions

Start a long-running command in the background on the device and return a job_id immediately. Output is logged on the device. Poll with adb_job_status, stop with adb_job_stop.

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": {
      "command": "<command>"
    },
    "name": "adb_job_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
rootNo
deviceNo
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: execution is asynchronous, the job_id comes back immediately, and output is written to a log on the device rather than returned inline — a critical fact an agent would otherwise get wrong.

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?

Three short sentences, front-loaded with the core action and return value, then the follow-up tools. No filler and no repetition of the tool name.

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?

Covers the async contract and the sibling workflow well, and there is no output schema to explain. However, for a destructive, open-world mutation with four undocumented parameters, it omits where logs land, whether root is required for privileged commands, and what happens to a running job if the device disconnects.

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% across four parameters, so the description carries the full burden and largely fails. Only 'command' is implied and 'device' faintly gestured at via 'on the device'; cwd and root are never mentioned, leaving an agent to guess what root elevation or working-directory scoping does here.

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 and resource: starting a long-running command in the background and returning a job_id immediately. It clearly separates itself from its lifecycle siblings adb_job_status and adb_job_stop, though it never contrasts with adb_shell, which is the obvious foreground alternative an agent would weigh.

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

Usage Guidelines4/5

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

Gives concrete lifecycle routing: poll with adb_job_status, stop with adb_job_stop. What is missing is the selection rule against adb_shell — nothing says to prefer this tool only when the command would block or exceed a timeout.

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