Skip to main content
Glama

adb_job_status

Read-only

Retrieves the state, exit code, elapsed time, and recent output lines of a background ADB job, with optional waiting for completion.

Instructions

Get a background job's state (running / exited / dead), exit code, elapsed time and last output lines. wait_seconds (max 600) waits for the job to finish before answering.

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": "adb_job_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNo
job_idYes
tail_linesNo
wait_secondsNo

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 readOnlyHint and openWorldHint, yet the description adds real value: it discloses exactly which fields come back and that setting `wait_seconds` makes the call block, capped at 600 seconds. This blocking/latency behavior is the key trait an agent needs and is not derivable 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?

Two tight sentences, front-loaded with the resource and return value, then the one non-obvious parameter behavior. No filler or redundancy.

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?

Strong on return contract despite there being no output schema, and adequate on the blocking parameter. However, for a 4-parameter tool with zero schema descriptions, the unexplained `device` parameter and the unmapped `tail_lines` default leave gaps an agent would need to resolve elsewhere.

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 description coverage is 0%, so the description must carry parameter meaning; it covers `wait_seconds` well (semantics plus the 600 cap) and hints at `tail_lines` via 'last output lines'. It says nothing about `device` or `job_id` — notably, which device a job belongs to is non-obvious for a multi-device adb tool.

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?

Names a specific verb+resource ('Get a background job's state') and enumerates the returned fields (state values, exit code, elapsed time, output lines). It distinguishes itself from ssh_job_status only implicitly through the adb/ssh naming prefix, not in the description text.

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

Usage Guidelines3/5

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

Usage is implied (polling a job's state) and the description usefully explains that `wait_seconds` blocks until completion. It gives no explicit when-not guidance — e.g., no pointer to adb_job_list for enumerating jobs or to adb_job_stop for cancellation.

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