Skip to main content
Glama

Robot Actions — Remote Device Control

Device get location

device_get_location
Read-onlyIdempotent

Read the Android device's current GPS location. Counterpart of ios_get_location. Returns { latitude, longitude, source }. source is the part worth reading: "mock" = the value device_set_location is currently simulating (authoritative); "device" = a real fix parsed from dumpsys location, which is BEST-EFFORT — the format varies by OEM and Android version, so a device with a valid fix can still come back as "none"; "none" = nothing could be determined, with latitude and longitude null. Treat "none" as "unknown", never as "the device has no location".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial context beyond them: the return shape, the authoritative-vs-best-effort distinction, OEM/Android-version variance, and the explicit warning that 'none' means unknown rather than 'no location'. This is exactly the kind of ambiguity an agent needs surfaced.

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?

Purpose is front-loaded, followed by return semantics and the highest-value caveat about 'none'. It is dense and slightly long, but every clause addresses a real ambiguity in interpreting the result rather than padding.

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 takes on the burden of explaining the return value and does so fully, including per-source meaning and null handling. Nothing needed to call or interpret the tool is missing.

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% with a single well-documented udid parameter, so the schema carries parameter meaning. The description adds no syntax or format detail beyond it, which is the correct baseline for full coverage.

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 and resource ('Read the Android device's current GPS location') and immediately situates itself relative to siblings by naming ios_get_location as its counterpart. An agent can distinguish it from device_set_location and device_clear_location without opening any 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?

Names the iOS counterpart and ties the 'mock' source to device_set_location, giving clear routing context. It stops short of explicit when-not-to-use guidance, but the sibling relationships it establishes are enough to select the right tool.

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