Skip to main content
Glama

set_device

Change what the simulated phone has: location, the address book (contacts), calendar events, files for the file picker, a barcode in front of the camera, permission states, whether the fingerprint will match, whether a payment will be approved, network on/off. Takes effect for the next action.

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

Input Schema

NameRequiredDescriptionDefault
dndNoDo Not Disturb: notifications go to the shade without a banner
wifiNo
filesNoReplace the files the file picker offers
cameraNo
onlineNo
sourceNo"simulated" forces the simulated camera, microphone and location even when a person could grant the real ones, for reproducible runs
paymentNo
sessionYesSession from open_app
airplaneNo
calendarNoReplace the calendar events the app can read (needs calendar permission)
contactsNoReplace the address book the app can read (needs contacts permission)
darkModeNoThe app's colour scheme (prefers-color-scheme)
locationNo
autoRotateNo
biometricsNo
brightnessNo
flashlightNo
microphoneNo
mobileDataNo
permissionsNo
orientationLockNo
locationServicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / payment / properties / nextResult / enum
      Previous value: -[
      -  "approve",
      -  "decline",
      -  "timeout",
      -  "insufficient_funds"
      -]New value: +[
      +  "approve",
      +  "decline",
      +  "timeout",
      +  "insufficient_funds",
      +  "cancel"
      +]
  2. Changed12 schema fields changed
    • addedInput schema / properties / airplane
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / autoRotate
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / brightness
      Added value: +{
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / darkMode
      Added value: +{
      +  "description": "The app's colour scheme (prefers-color-scheme)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / dnd
      Added value: +{
      +  "description": "Do Not Disturb: notifications go to the shade without a banner",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / flashlight
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / locationServices
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / microphone
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "level": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / mobileData
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / orientationLock
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "\"simulated\" forces the simulated camera, microphone and location even when a person could grant the real ones, for reproducible runs",
      +  "enum": [
      +    "auto",
      +    "simulated"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / wifi
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / calendar
      Added value: +{
      +  "description": "Replace the calendar events the app can read (needs calendar permission)",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "allDay": {
      +        "type": "boolean"
      +      },
      +      "end": {
      +        "description": "ISO 8601",
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "location": {
      +        "type": "string"
      +      },
      +      "notes": {
      +        "type": "string"
      +      },
      +      "start": {
      +        "description": "ISO 8601",
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "start",
      +      "end"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / files
      Added value: +{
      +  "description": "Replace the files the file picker offers",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content": {
      +        "description": "The file's text",
      +        "type": "string"
      +      },
      +      "mimeType": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "mimeType",
      +      "content"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / permissions / properties / calendar
      Added value: +{
      +  "enum": [
      +    "granted",
      +    "denied",
      +    "undetermined"
      +  ],
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / contacts
      Added value: +{
      +  "description": "Replace the address book the app can read (needs contacts permission)",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "emails": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "phoneNumbers": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / permissions / properties / contacts
      Added value: +{
      +  "enum": [
      +    "granted",
      +    "denied",
      +    "undetermined"
      +  ],
      +  "type": "string"
      +}
  5. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare a non-read-only, non-destructive mutation, and the description correctly frames the tool as changing simulated state that applies to the next action — useful timing semantics the annotations do not supply. However, it is silent on the most consequential behavioral question: whether a call with a subset of fields leaves other state untouched or resets it, and whether array fields like contacts/calendar/files replace rather than merge.

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 front-loaded sentence lists the mutable state compactly and ends with the timing constraint, which is the sentence most worth keeping. The colon-and-list construction is efficient, though the catalogue of fields is long enough that a short lead followed by grouped bullets would scan better.

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

Completeness5/5

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

Given a 22-parameter, deeply nested stub tool with no output schema and thin annotations, the description successfully conveys the overall model — a simulated handset whose sensors, data stores, and permission outcomes can all be staged before an action. It answers the what and the when-it-applies for an agent that will rely on the schema for individual field detail.

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 coverage is only 32% across 22 parameters, so the description must compensate, and it does cover several groups in prose (location, contacts, calendar, files, barcode, permissions, biometrics, payment, connectivity). But it omits roughly a third of the surface — dnd, source, darkMode, brightness, flashlight, microphone level, autoRotate, orientationLock, locationServices, session — leaving many parameters with no explanation anywhere.

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 and resource ("Change what the simulated phone has") and enumerates the major state groups it covers — location, contacts, calendar, files, barcode, permissions, biometrics, payment, network. An agent can immediately tell this is the device-state stub tool. It does not, however, distinguish itself from the sibling set_setting, which plausibly overlaps.

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?

The only usage-flavored statement is "Takes effect for the next action," which conveys timing but not selection criteria. There is no guidance on when to use this versus set_setting, device_reset, or attach_session, and no mention of prerequisites such as holding a live session beyond the schema's own field description.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.