Skip to main content

get_location

Retrieves the customer's current location to help with store selection and delivery address suggestions.

Platform Support​

PlatformStatusNotes
iOSN/AiOS handles location at the app layer, not exposed as an MCP tool
AndroidYes—

Description​

Get the user's current GPS location

Parameters​

This tool takes no parameters.

Response​

FieldTypeDescription
latitudenumberGPS latitude
longitudenumberGPS longitude
addressstringReverse-geocoded address (if available)

Error Codes​

CodeDescription
NOT_AVAILABLELocation 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