Skip to main content
Glama

Ask a human to share their location

get_location

Asks the phone owner to share their current location once so you can find nearby places, set a timezone, or log a visit; returns coordinates if approved, otherwise no location.

Instructions

Ask the human who owns this phone to share where they are right now. They get a prompt and choose Share or Decline; if they share, one position is sent, once, as it was at that moment. Use it when you need their location to do the task (find the nearest branch, set a timezone, log a site visit), not to track them. Returns SHARED with latitude, longitude and accuracy, or DECLINED, NO ANSWER or EXPIRED. On anything but SHARED you have no location: do not guess one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailsNoAnything else that helps them decide.
questionNoWhat they see on the prompt. Say why you need it: 'Share your location so I can find the nearest pharmacy?'. Defaults to 'Share your location?'.
timeout_secondsNoHow long to wait for an answer. Defaults to 120.
require_biometricNoDemand a fingerprint or face before the location is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/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 so: it discloses the human consent flow (Share/Decline prompt), that exactly one position is captured once and frozen at that moment, and the full outcome set. It also warns that any non-SHARED result means no location exists and must not be guessed, which is exactly the behavioral context an agent needs.

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?

Front-loaded with the core action, then consent mechanics, then usage scope, then return values and the safety caveat. Every sentence carries distinct information with no 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?

No output schema exists, and the description fully compensates by enumerating both the success payload (latitude, longitude, accuracy) and every failure state (DECLINED, NO ANSWER, EXPIRED). Nothing an agent needs to call this correctly or interpret the result 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%, so the schema already documents question, details, timeout_seconds and require_biometric with defaults. The description adds conceptual context about the prompt interaction but no parameter-specific syntax or constraints beyond what the schema provides, so the baseline 3 applies.

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 verb and resource: asking the human owner to share their current position, and explicitly frames it as a one-shot request rather than tracking. It doesn't name the sibling tools (ask_approval, request_photo, send_notification) to route the agent away, so differentiation is by implication rather than statement.

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?

Gives explicit when-to-use with concrete examples (find the nearest branch, set a timezone, log a site visit) and an explicit when-not ('not to track them'). The condition that selects this tool is unambiguous.

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