Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Set device location, network, battery, camera and Google services

set_device

Set where the phone is: country and city together, or timezone, locale and GPS one by one, plus the network its IP comes from or a proxy; its battery; the picture its camera app returns; Google services via microG (open source); whether it is a phone or a tablet; and a newer Android version. Kept across park/start. Use it before opening apps that check location or region, battery state, or ask for a photo. network_conditions makes the connection slow, lossy or offline while the phone runs (reset by park): use it to test retries, timeouts, loading states and offline handling. Returns the device settings as JSON.

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

Input Schema

NameRequiredDescriptionDefault
cityNoAny city, e.g. Tokyo, São Paulo or Berlin: GPS, timezone and locale of that city, on Android and iOS
modelNophone or tablet (a 1600×2560 screen at 320 dpi: apps use their tablet layouts). Switching restarts the phone once (~25 s); apps and data stay
proxyNosocks5://user:pass@host:port: all traffic leaves through it and wins over network; null = direct
googleNomicrog: Google services via microG (open source) for apps that need them: push (FCM), Firebase Auth, Maps. No Play Store or Play Integrity. none (default): without. Switching restarts the phone once (~25 s); apps and data stay
localeNoBCP-47 tag, e.g. de-DE. Changing it restarts the phone UI (~15 s)
androidNoA newer Android version for this phone (12 → 13 → 14), upgraded in place: one restart, apps and data stay. An older version needs a new phone
batteryNoBattery apps see, e.g. {"level":15,"charging":false}; charging defaults to false. New phones are full and charging
countryNoTwo-letter code, e.g. DE: sets GPS, timezone and locale together
networkNodatacenter, residential or mobile: where the IP comes from (per GB, see pricing)
locationNoGPS position, e.g. {"lat":52.52,"lng":13.405}
phone_idYesPhone id, ph_…
timezoneNoIANA name, e.g. Europe/Berlin
camera_imageNohttps link to a JPEG/PNG/WebP (e.g. a QR code or ID document): what an app gets when it asks the camera app for a photo; null = test pattern. Apps that open the camera themselves see none
network_conditionsNoSlow, lossy or offline connection until park: offline, 2g (+650 ms, 250 kbit/s), 3g (+300 ms, 750 kbit/s), slow_4g (+150 ms, 1.6 Mbit/s), lossy (10 % loss), or custom values; null = normal network. Our control of the phone stays fast

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / city / description
      Previous value: -"e.g. Berlin: GPS, timezone and locale of that city, on Android and iOS"New value: +"Any city, e.g. Tokyo, São Paulo or Berlin: GPS, timezone and locale of that city, on Android and iOS"
  2. Changed1 schema field changed
    • changedInput schema / properties / city / description
      Previous value: -"e.g. Berlin: GPS, timezone and locale of that city"New value: +"e.g. Berlin: GPS, timezone and locale of that city, on Android and iOS"
  3. Changed2 schema fields changed
    • removedInput schema / properties / android / enum
      Removed value: -[
      -  "12",
      -  "13",
      -  "14"
      -]
    • changedInput schema / properties / android / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / android
      Added value: +{
      +  "description": "A newer Android version for this phone (12 → 13 → 14), upgraded in place: one restart, apps and data stay. An older version needs a new phone",
      +  "enum": [
      +    "12",
      +    "13",
      +    "14"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "phone or tablet (a 1600×2560 screen at 320 dpi: apps use their tablet layouts). Switching restarts the phone once (~25 s); apps and data stay",
      +  "enum": [
      +    "phone",
      +    "tablet"
      +  ],
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / network_conditions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "offline",
      +            "2g",
      +            "3g",
      +            "slow_4g",
      +            "lossy"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "bandwidth_kbps": {
      +              "description": "Download speed cap in kbit/s",
      +              "maximum": 1000000,
      +              "minimum": 8,
      +              "type": "number"
      +            },
      +            "jitter_ms": {
      +              "description": "± variation of latency_ms, at most latency_ms",
      +              "maximum": 5000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "latency_ms": {
      +              "description": "Added to every round trip",
      +              "maximum": 10000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "loss_percent": {
      +              "description": "Share of packets to the phone that are lost; 100 = offline",
      +              "maximum": 100,
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Slow, lossy or offline connection until park: offline, 2g (+650 ms, 250 kbit/s), 3g (+300 ms, 750 kbit/s), slow_4g (+150 ms, 1.6 Mbit/s), lossy (10 % loss), or custom values; null = normal network. Our control of the phone stays fast"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / google
      Added value: +{
      +  "description": "microg: Google services via microG (open source) for apps that need them: push (FCM), Firebase Auth, Maps. No Play Store or Play Integrity. none (default): without. Switching restarts the phone once (~25 s); apps and data stay",
      +  "enum": [
      +    "microg",
      +    "none"
      +  ],
      +  "type": "string"
      +}
  8. Changed2 schema fields changed
    • addedInput schema / properties / battery
      Added value: +{
      +  "description": "Battery apps see, e.g. {\"level\":15,\"charging\":false}; charging defaults to false. New phones are full and charging",
      +  "properties": {
      +    "charging": {
      +      "type": "boolean"
      +    },
      +    "level": {
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "level"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / camera_image
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 2048,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "https link to a JPEG/PNG/WebP (e.g. a QR code or ID document): what an app gets when it asks the camera app for a photo; null = test pattern. Apps that open the camera themselves see none"
      +}
  9. Changed7 schema fields changed
    • addedInput schema / properties / city / description
      Added value: +"e.g. Berlin: GPS, timezone and locale of that city"
    • addedInput schema / properties / country / description
      Added value: +"Two-letter code, e.g. DE: sets GPS, timezone and locale together"
    • addedInput schema / properties / locale / description
      Added value: +"BCP-47 tag, e.g. de-DE. Changing it restarts the phone UI (~15 s)"
    • addedInput schema / properties / location / description
      Added value: +"GPS position, e.g. {\"lat\":52.52,\"lng\":13.405}"
    • addedInput schema / properties / network / description
      Added value: +"datacenter, residential or mobile: where the IP comes from (per GB, see pricing)"
    • addedInput schema / properties / proxy / description
      Added value: +"socks5://user:pass@host:port: all traffic leaves through it and wins over network; null = direct"
    • addedInput schema / properties / timezone / description
      Added value: +"IANA name, e.g. Europe/Berlin"
  10. Changed3 schema fields changed
    • addedInput schema / properties / city
      Added value: +{
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "maxLength": 2,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • addedInput schema / properties / network
      Added value: +{
      +  "enum": [
      +    "datacenter",
      +    "residential",
      +    "mobile"
      +  ],
      +  "type": "string"
      +}
  11. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only supply the safety profile (write, open-world, non-destructive); the description adds genuinely useful behavior: settings are 'kept across park/start', network_conditions persists until park, proxy 'wins over network', and the return value is JSON. Restart costs and data preservation appear here and in the schema, but the cross-parameter precedence and persistence rules are description-only value.

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?

The lead sentence is front-loaded and purposeful, but it is a very long semicolon-chained list that is hard to parse at a glance, and portions ('Google services via microG (open source)', the network_conditions speed tiers) largely restate schema text. Size is defensible for 14 parameters, but tightness is not.

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 high-parameter mutation tool with no output schema, the description covers persistence, restart side effects, return format, and the primary use case, which is close to sufficient. Remaining gaps — whether omitted fields are left untouched, and any permission or quota constraints on switching model or Google services — are not addressed.

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 coverage is 100%, so the baseline is 3, but the description goes further by organizing 14 parameters into decision paths — 'country and city together, or timezone, locale and GPS one by one' — and by declaring precedence between proxy and network. That grouping is the main thing the schema cannot express, and it materially reduces misuse.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — 'Set where the phone is' — then enumerates the exact facets it controls (location, locale/timezone, IP network or proxy, battery, camera image, Google services, form factor, Android version). This is clearly distinguishable from siblings like create_phone or start_phone, which provision rather than configure an existing device.

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 explicit when-to-use: 'Use it before opening apps that check location or region, battery state, or ask for a photo', and a purpose statement for network_conditions ('use it to test retries, timeouts, loading states and offline handling'). It also implies park_phone is the way to reset network conditions, though it never names an alternative tool for the cases this one should not handle.

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.