Skip to main content
Glama

vphone_set_location

Simulates a GPS location fix on a virtual iOS device so apps requesting location services report the specified coordinates, altitude, speed, and course.

Instructions

Set the simulated GPS location of the device.

Simulates a complete GPS location fix with all standard Core Location parameters. The device will report this location to all apps requesting location services.

Args: latitude: Latitude in degrees (-90.0 to 90.0) longitude: Longitude in degrees (-180.0 to 180.0) altitude: Altitude in meters (default: 0.0) horizontal_accuracy: Horizontal accuracy in meters (default: 5.0) vertical_accuracy: Vertical accuracy in meters (default: 5.0) speed: Speed in meters per second (default: 0.0) course: Direction of travel in degrees, 0=north, 90=east (default: 0.0) timestamp: Unix timestamp for the location fix (default: current time)

Returns: SetLocationOutput with success status and confirmed coordinates

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "vphone_set_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoSpeed in meters per second
courseNoCourse in degrees (0-359.99)
altitudeNoAltitude in meters
latitudeYesLatitude in degrees
longitudeYesLongitude in degrees
timestampNoUnix timestamp, defaults to current time
vertical_accuracyNoVertical accuracy in meters
horizontal_accuracyNoHorizontal accuracy in meters

Output Schema

NameRequiredDescriptionDefault
successYes
latitudeYes
longitudeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does deliver real behavioral content: the fix is broadcast to all apps requesting location services, and two specific error conditions (NotConnectedError, ConnectionUnavailableError) are named. However, it omits key traits for a state-changing simulator — whether the location persists until explicitly stopped, whether it is reversible, or whether it affects other tools.

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 first two sentences are well front-loaded and high value, but the Args/Returns/Raises listing duplicates the schema almost verbatim, inflating length without adding information. The Returns line is also redundant given an output schema exists.

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 an 8-parameter simulator, the definition covers purpose, side effects on the device, an output type, and failure modes. The remaining gap is lifecycle (persistence and teardown), which matters for a state-mutating tool with no annotations.

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 the schema already documents every parameter, and the Args block largely restates it. The one genuine addition is course orientation ('0=north, 90=east') and the timestamp default semantics, which the schema states only as a range.

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 opening line uses a specific verb and resource ('Set the simulated GPS location of the device'), and the follow-up clarifies it is a full Core Location fix that all apps will observe. It is clearly distinguishable from vphone_stop_location by implication, though that sibling is never named.

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?

Usage is implied by 'simulated GPS location' and the Raises section hints that a bridge connection is required, but there is no explicit when-to-use guidance, no statement of prerequisites, and no pointer to vphone_stop_location for clearing the simulation.

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