Skip to main content
Glama

Use device

use_device
Idempotent

Selects the target iOS or Android device for later Appdyno drive and test calls using a serial from list_devices; set share to drive a device another process holds.

Instructions

Select the device later calls drive, by a serial list_devices gives; app: the app id under test. Not needed with one device connected. One server drives one device: for several in parallel, a server each. A device another process holds is refused, naming it; share: true drives it anyway. Returns what is selected.

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": {
      "device": "<device>"
    },
    "name": "use_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
shareNo
deviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (destructiveHint=false, idempotentHint=true), and the description adds real behavior on top: device exclusivity, that a held device is refused with the device named, and that share=true overrides that refusal. It also states the return ('Returns what is selected'), which no output schema provides. It stops short of saying what a failed selection looks like or whether the lock persists for the session.

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

Conciseness3/5

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

Nothing is wasted — every clause carries a fact — but the semicolon-chained, telegraphic phrasing makes it slower to parse than a few short sentences would. The critical 'Not needed with one device connected' guidance is buried mid-clause rather than front-loaded.

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

Completeness4/5

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

For a three-parameter binding tool with no output schema, the definition covers purpose, prerequisites, exclusivity semantics, an override flag, and the return value. What remains unstated is whether the selection persists across the whole session and how failures surface, which are secondary for correct invocation.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden, and it defines all three parameters: device is a serial from list_devices, app is the app id under test, and share overrides the busy-device refusal. The device format is delegated rather than spelled out, which is a minor gap but the meaning of every field is conveyed.

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?

The first clause names a specific verb and resource: selecting the device that later calls will drive, sourced from a serial that list_devices returns. That cleanly separates it from list_devices and the other action tools. It does not distinguish itself from the sibling set_device, which by name sounds like an overlapping binding operation, so the agent may still hesitate between the two.

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?

It states when the call is unnecessary ('Not needed with one device connected'), the constraint for parallel work ('One server drives one device: for several in parallel, a server each'), and the exact escape hatch when the device is busy ('share: true drives it anyway'). These are explicit when/when-not rules plus a documented alternative path rather than implied usage.

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