Skip to main content
Glama

Robot Actions — Remote Device Control

iOS set location

ios_set_location
Idempotent

Set the iOS device's GPS location for testing location-aware apps. Needs no automation session: it drives the device's own developer location-simulation service, and falls back to the automation agent's route only if that is unavailable. Stays in effect until ios_clear_location, a device reboot, or a restart of the device service (the simulation is a held connection on iOS 17+ — the reply's transport says which route ran). SCOPE: only affects apps that read CoreLocation (CLLocationManager, Safari navigator.geolocation). Does NOT affect apps using IP-based geolocation, Wi-Fi/cell-tower triangulation, or anti-fraud detection paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesiOS device UDID
latitudeYesLatitude in decimal degrees, e.g. 37.7749
longitudeYesLongitude in decimal degrees, e.g. -122.4194

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover idempotency/safety; the description adds substantial behavior beyond them: no automation session required, the fallback route if the developer service is unavailable, a held connection on iOS 17+, the conditions that end the effect, and the reply's `transport` field. This is exactly the kind of context annotations cannot carry.

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?

Front-loaded with the core action and scoping constraint, and every sentence carries information. It is dense with parentheticals (iOS 17+ held connection, transport field), which slightly taxes readability but not enough to call it padded.

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?

With no output schema, the description compensates by explaining the reply's `transport` field, and it covers the persistence and scope caveats an agent needs to call and reason about the result correctly. Nothing material is missing for a 3-param tool.

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 100%, so udid, latitude and longitude are already documented with examples. The description adds no syntax or format detail beyond the schema; the only extra field mentioned (`transport`) is a return value, not a parameter, so baseline 3 applies.

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?

States a specific verb+resource (set the iOS device's GPS location) plus the purpose (testing location-aware apps), and the mechanism distinguishes it from siblings like ios_play_location_route and ios_get_location. An agent can tell exactly what this does without opening the schema.

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

Usage Guidelines5/5

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

Explicitly frames the use case (testing location-aware apps) and states the persistence lifetime, naming ios_clear_location as the counterpart. The SCOPE paragraph gives explicit when-it-applies/when-it-does-not boundaries (CoreLocation vs IP-based geolocation, Wi-Fi/cell triangulation, anti-fraud paths).

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.

Resources