Skip to main content
Glama

set_connectivity

Turn Wi-Fi, mobile data or airplane mode on or off for the whole phone, as in quick settings on Android and iOS. Airplane mode turns both radios off; Wi-Fi can come back on during it, and leaving it restores the radios as they were. Every app sees the result: apps you built read it as {{ network.online }} and {{ network.type }}, and their web data does not load while the phone is offline. The open app's screen is drawn again. Logged in device_log as "connectivity".

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_connectivity"
  }
}

Input Schema

NameRequiredDescriptionDefault
wifiNo
sessionYesSession from open_app
airplaneNo
mobile_dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare non-read-only and non-destructive behavior, while the description adds substantial context: airplane mode disables both radios, Wi-Fi can return during airplane mode, leaving it restores prior radio state, all apps observe network.online/network.type, offline web data fails, the active screen redraws, and the action is logged as connectivity. This is rich behavioral disclosure beyond the annotations.

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?

The description front-loads the action and scope, then layers behavioral consequences in tight sentences. There is no filler; the logging and screen-redraw details are operationally relevant.

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?

Very complete for a mutation tool with no output schema, covering app-visible effects, restoration semantics, screen refresh, and audit logging. Gaps remain around parameter defaults/conflicts and return behavior, but the core invocation context is present.

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 low at 25%, and only session is described in the schema. The description maps wifi, mobile_data, and airplane to on/off switches and explains airplane/Wi-Fi interplay, but it does not state defaults for omitted booleans or how conflicting values (for example wifi=true with airplane=true) are resolved.

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?

States a specific action (turn on/off) and resources (Wi-Fi, mobile data, airplane mode) for the whole phone, with an Android/iOS quick-settings analogy. It does not explicitly name the sibling get_connectivity or another read alternative, so sibling differentiation is inferred from set/get naming rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The action itself implies when to use it (to change phone connectivity), and the mode interactions add useful context. However, there is no explicit when-not guidance or named alternative such as get_connectivity for reading state, and no guidance on choosing between this and set_network_profile.

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.