Skip to main content
Glama

Device conditions

set_device

Read or set mobile device conditions such as dark mode, orientation, GPS location, clipboard, biometrics, network, battery, or locale, with restore support for test sessions.

Instructions

Read or set a device condition: dark mode, orientation (landscape), GPS location, clipboard, Face ID, fingerprint, memory warning, shake, text size, locale, slow network, airplane mode, Wi-Fi, battery, fold, calls, SMS. No value reads it. App permissions: manage_app; photos: transfer_files. Returns the value; orientation the screen too. Put back at the session end or by restore, but for the clipboard.

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

Input Schema

NameRequiredDescriptionDefault
appNo
nameYes
readNo
titleNo
valueNoorientation: portrait, landscape_left, upside_down, landscape_right; location: lat,lon, none; clipboard: its text. Switch: on, off; text_size: Android 1.3, iOS extra-large; locale: tr-TR; network: slow, full; thermal: serious; proxy: host:port, none; battery: 0-100; fold: closed, half, open. One-shot: biometric (match, nomatch, enroll), call (number; end number), sms (value; title: number), keychain (reset), memory_warning (Android: trim level), shake.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only supply openWorldHint=false, so the description carries most of the burden and does disclose real side effects: the call mutates persistent session state, must be reverted at session end or via the restore condition, and orientation additionally rotates the screen. It also says it returns the value. The clipboard carve-out ("but for the clipboard") is ambiguous as to whether that state is unrevertible.

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?

Front-loaded with the action and supported conditions, which is good, but it is a compressed run-on with telegraphic fragments ("Returns the value; orientation the screen too.") and a long condition list that largely duplicates the enum. Every clause is trying to convey something, but the packing hurts readability.

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?

For a high-breadth mutation tool with 25 enumerated conditions, no output schema, and near-empty annotations, the definition covers the essentials: return value, cleanup obligation, and sibling routing. It is missing prerequisites/permissions needed to change conditions, the meaning of the `app` scoping parameter, and what `read: diff|full|none` does.

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 only 20%, yet the description adds meaningful semantics for the write path ("No value reads it") and the schema itself carries a detailed per-condition value format list. Gaps remain for the undocumented `app`, `read` (diff/full/none) and `title` parameters, which the description does not explain at all — notable since `read` governs output volume.

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?

Opens with a specific verb pair plus resource ("Read or set a device condition") and enumerates the supported conditions, so an agent can tell this is a runtime device-state control tool rather than an inspection tool. It never names a sibling tool by title, but it does route permissions and photo tasks outward by name, which gives partial differentiation within a large sibling set.

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?

"No value reads it" is a concrete rule for choosing read vs. write on the same call, and the definition points to manage_app for app permissions and transfer_files for photos, which is explicit alternative routing. "Put back at the session end or by restore, but for the clipboard" gives a lifecycle instruction, though the clipboard exception is stated cryptically enough that an agent may misread it.

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