Skip to main content
Glama

phone_set_location

Idempotent

Simulate GPS coordinates on an iPhone to test location-aware apps; set latitude and longitude, or clear the simulation to restore the real location.

Instructions

Simulate GPS for testing location-aware apps. Supply both lat (-90–90) and lon (-180–180), in finite decimal degrees, or clear=true without coordinates to restore real location; combining clear with coordinates is refused. Every app sees the simulated position until cleared; it is not a navigation or address lookup tool. Counts as one daemon action and requires authorized device control. Returns the applied location/clear status; on a transport failure the effect is unknown. Inspect the result before proceeding and clear the simulation when the test ends.

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": "phone_set_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees (WGS84), -90..90.
lonNoLongitude in decimal degrees (WGS84), -180..180.
clearNo`true` (without lat/lon) returns the phone to its real location.
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`PhoneHandler::phone_set_location`]."
  2. Changed8 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / clear / default
      Removed value: -null
    • changedInput schema / properties / clear / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • removedInput schema / properties / lat / default
      Removed value: -null
    • changedInput schema / properties / lat / type
      Previous value: -[
      -  "number",
      -  "null"
      -]New value: +"number"
    • removedInput schema / properties / lon / default
      Removed value: -null
    • changedInput schema / properties / lon / type
      Previous value: -[
      -  "number",
      -  "null"
      -]New value: +"number"
  3. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  4. First observedv0.21.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the simulated position persists for every app until cleared, that the call counts as one daemon action requiring authorized device control, that a transport failure leaves the effect unknown, and that the result should be inspected before proceeding. These are exactly the operational and failure-mode details the annotations (readOnly=false, idempotent=true, destructive=false) cannot convey.

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-loads the purpose, then the parameter contract, then the behavioral caveats and cleanup advice in a logical order. It is dense and slightly long, but nearly every clause carries distinct operational information rather than filler.

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?

For a state-mutating device tool with no output schema, the definition covers the parameter contract, persistence semantics, permission requirement, failure ambiguity, return value, and cleanup step. Nothing an agent needs in order to call it safely is missing.

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 ranges and formats are already documented, but the description adds meaning the schema does not: lat and lon must be supplied together, values must be finite decimal degrees, and clear is mutually exclusive with coordinates. That cross-parameter constraint is the main value-add.

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+resource: 'Simulate GPS for testing location-aware apps.' It also explicitly excludes an adjacent interpretation ('not a navigation or address lookup tool'), so the agent can distinguish it from a lookup-style sibling 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 Guidelines4/5

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

Gives clear when-to-use (testing location-aware apps) and explicit usage rules: supply both lat and lon, or clear=true alone; combining clear with coordinates is refused; clear the simulation when the test ends. It stops short of naming a concrete alternative tool, but the exclusions and end-of-test guidance leave little to infer.

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