resolve_location
Pack: location · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/resolve_location for the schema, then POST the same URL with its arguments for the data.
Turn ANY place description into one canonical location: name, centre point, bounding box, match_type and the interpretation applied. Handles US ZIP / ZIP+4 and international postal codes (with country), US cities and counties (“Belmont, CA”), street addresses, landmarks, lakes, parks and regions (“Lake Tahoe”, “Yosemite National Park”), decimal and degrees-minutes-seconds coordinates, offsets (“10 miles north of Truckee, CA”) and radii (“within 25 miles of Belmont, CA”). Ambiguous names (“Springfield”) return ambiguous=true with candidates; add state, country or near to settle them. match_type (coordinates, address, postal_code, place, admin_area, region, landmark, offset, radius) tells you how precise the answer is. Nothing resolved returns found=false with the sources tried; coordinates are never guessed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
description | string | yes | Any place description, e.g. “Lake Tahoe”, “94002”, “42.2 N, 120.4 W”, “10 miles north of Truckee, CA”. |
country | string | no | Optional ISO 3166-1 alpha-2 country code (“GB”, “FR”). Needed for non-US postal codes such as “SW1A 1AA” or “75001”. |
state | string | no | Optional US state (name or two-letter code) to settle an ambiguous name, e.g. “Springfield” + “IL”. |
near_lat | number | no | Optional latitude to break ties between same-named places by distance (give with near_lon). |
near_lon | number | no | Optional longitude for near_lat. |
Example call
Arguments
{
"description": "10 miles north of Truckee, CA"
}
curl
curl -X POST https://gateway.pipeworx.io/location/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"resolve_location","arguments":{"description":"10 miles north of Truckee, CA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('resolve_location', {
"description": "10 miles north of Truckee, CA"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
query | string | |
interpretation | string | |
name | string | |
match_type | string | |
precision_m | number | |
center | object | |
bbox | array | |
anchor | object | |
country_code | string | |
admin1 | string | |
admin2 | string | |
candidates | array | |
ambiguous | boolean | |
sources | array | |
tried | array | |
map_links | object |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"query": {
"type": "string"
},
"interpretation": {
"type": "string"
},
"name": {
"type": "string"
},
"match_type": {
"type": "string"
},
"precision_m": {
"type": "number"
},
"center": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
},
"bbox": {
"type": "array",
"items": {
"type": "number"
}
},
"anchor": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"center": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"country_code": {
"type": "string"
},
"admin1": {
"type": "string"
},
"admin2": {
"type": "string"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"match_type": {
"type": "string"
},
"center": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
},
"bbox": {
"type": "array",
"items": {
"type": "number"
}
},
"country_code": {
"type": "string"
},
"admin1": {
"type": "string"
},
"admin2": {
"type": "string"
},
"importance": {
"type": "null"
}
},
"additionalProperties": true
}
},
"ambiguous": {
"type": "boolean"
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"fetched_at": {
"type": "string"
}
},
"additionalProperties": true
}
},
"tried": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"outcome": {
"type": "string"
},
"fetched_at": {
"type": "string"
}
},
"additionalProperties": true
}
},
"map_links": {
"type": "object",
"properties": {
"firms": {
"type": "object",
"properties": {
"target": {
"type": "string"
},
"url": {
"type": "string"
},
"zoom": {
"type": "number"
},
"zoom_basis": {
"type": "string"
},
"center": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"osm": {
"type": "object",
"properties": {
"target": {
"type": "string"
},
"url": {
"type": "string"
},
"zoom": {
"type": "number"
},
"zoom_basis": {
"type": "string"
},
"center": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the location pack
{
"mcpServers": {
"location": {
"url": "https://gateway.pipeworx.io/location/mcp"
}
}
}
See Getting Started for client-specific install steps.