get_location
Retrieves the customer's current location to help with store selection and delivery address suggestions.
Platform Support
| Platform | Status | Notes |
|---|---|---|
| iOS | N/A | iOS handles location at the app layer, not exposed as an MCP tool |
| Android | Yes | — |
Description
Get the user's current GPS location
Parameters
This tool takes no parameters.
Response
| Field | Type | Description |
|---|---|---|
latitude | number | GPS latitude |
longitude | number | GPS longitude |
address | string | Reverse-geocoded address (if available) |
Error Codes
| Code | Description |
|---|---|
NOT_AVAILABLE | Location services not enabled or permission not granted |
Source Files
- Android:
chat-pnp-android/mcp-app/src/main/java/pnp/app/mcp/app/tools/AppMCPTools.kt