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

NameTypeRequiredDescription
descriptionstringyesAny place description, e.g. “Lake Tahoe”, “94002”, “42.2 N, 120.4 W”, “10 miles north of Truckee, CA”.
countrystringnoOptional ISO 3166-1 alpha-2 country code (“GB”, “FR”). Needed for non-US postal codes such as “SW1A 1AA” or “75001”.
statestringnoOptional US state (name or two-letter code) to settle an ambiguous name, e.g. “Springfield” + “IL”.
near_latnumbernoOptional latitude to break ties between same-named places by distance (give with near_lon).
near_lonnumbernoOptional 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

FieldTypeDescription
foundboolean
querystring
interpretationstring
namestring
match_typestring
precision_mnumber
centerobject
bboxarray
anchorobject
country_codestring
admin1string
admin2string
candidatesarray
ambiguousboolean
sourcesarray
triedarray
map_linksobject
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.

Regenerated from source · build December 3, 2026