Skip to main content
Glama

set_network_state

Controls device network connectivity by enabling or disabling Wi-Fi, mobile data, and airplane mode, and by throttling emulator latency and speed on Android.

Instructions

Control device network connectivity: Wi-Fi, mobile data, airplane mode, and emulator throttling. Android only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_network_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
wifiNoEnable or disable Wi-Fi
delayNoSimulate network latency (Android emulator only). 'none' removes the delay.
speedNoThrottle network speed (Android emulator only). 'full' removes the throttle.
observeNoCapture screenshot after action. Default: none
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
mobile_dataNoEnable or disable mobile data (Android only)
airplane_modeNoEnable or disable airplane mode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations supply the safety profile (readOnlyHint=false, destructiveHint=false), so the bar is lower. The description adds the Android-only applicability constraint and flags that some parameters are emulator-specific, but it does not disclose important behaviors such as airplane mode overriding Wi-Fi/mobile data, whether changes persist across sessions, or ordering effects when multiple flags are passed. The blanket 'Android only' also sits awkwardly against the schema's ios platform option, which may leave an agent uncertain.

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 compact sentences, with the capability statement front-loaded followed by the platform constraint. No filler or redundant restatement of the name.

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 an eight-parameter mutation tool with no output schema, the description covers scope but not the interaction rules an agent needs to call it correctly (parameter precedence, side effects of enabling airplane mode, persistence). The fully documented schema compensates for the parameter-level gaps, keeping this at a minimum-viable level rather than failing.

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 100%, so all eight parameters, enums, and defaults are already documented in the schema; baseline 3 applies. The description only names the parameter families at a high level and adds no precedence or interaction semantics (e.g. how airplane_mode interacts with wifi), so it contributes little meaning beyond structured fields.

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 description gives a specific verb+resource ('Control device network connectivity') and enumerates exactly which domains are covered: Wi-Fi, mobile data, airplane mode, and emulator throttling. This lets an agent tell it apart from the UI/app-focused siblings, though no sibling is named as an alternative because none appears to overlap.

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?

Beyond the 'Android only' scope constraint, there is no guidance on when to use this versus other device-state tools, no note on whether it is a prerequisite for other operations, and no guidance on combining parameters. The agent must infer all invocation conditions from the schema.

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