# ForLab Geo API

> Countries, admin units, Turkey's official mahalle list, boundaries, timezones, postal codes, phones

- name: io.forlab/geo
- version: 1.0.2
- connection class: R0 (autonomous)
- trust: 81/100 flags: no-repository
- quality: 85/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.forlab%2Fgeo
- tools: https://api.protogrid.dev/v1/servers/io.forlab%2Fgeo/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "geo": {
      "type": "http",
      "url": "https://api.forlab.io/geo/mcp",
      "headers": {
        "Authorization": "Bearer ${api_key}"
      }
    }
  }
}
```

Placeholders to fill: `${api_key}`.

## Trust

- hygiene: 80
- liveness: 95
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-87% +updated-4d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 85/100 (good)

### protocol: 100 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- pass `protocol.list_ttl`: tool list is cacheable (ttlMs 3600000)

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 89 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 13 of 13 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: get_place (destructiveHint); get_place_boundary (destructiveHint); get_meta (destructiveHint); …
- pass `tools.token_cost`: about 2,884 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 19 tool changes in 30 days
- fail `stability.rug_pull`: 3 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 13, about 2,884 tokens to load them all
- tool set hash: 8f474d5607514ee94f96398a7e3b536b
- tools last changed: 2026-11-26T08:31:46.561Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.forlab/geo.svg)](https://protogrid.dev/servers/io.forlab/geo)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-26 `find_nearby_postal_codes` changed (description)
  - before: The postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: The postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `lookup_postal_code` changed (description)
  - before: The places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. `partial` is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: The places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. `partial` is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `find_nearby_places` changed (description)
  - before: The nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: The nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `get_timezone` changed (description)
  - before: IANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. `dst` is true when the zone's clocks are advanced at that instant: its offset is the larger of the two it shows in that year (1 January and 1 July); a zone with one offset all year is never DST (Morocco: +01:00 and the +00:00 of Ramadan are both `dst: false`). When zones share an edge or overlap, `ambiguous` is true, `timezone` and the other fields are the first zone by name and `candidates` lists all of them (each with its own offset, dst and local time). 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: IANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. `dst` is true when the zone's clocks are advanced at that instant: its offset is the larger of the two it shows in that year (1 January and 1 July); a zone with one offset all year is never DST (Morocco: +01:00 and the +00:00 of Ramadan are both `dst: false`). When zones share an edge or overlap, `ambiguous` is true, `timezone` and the other fields are the first zone by name and `candidates` lists all of them (each with its own offset, dst and local time). 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `find_places_at_point` changed (description) **meaning changed**
  - before: Every unit whose land contains the point (country, region, county; in Turkey also mahalle), most general first; match is none at sea or outside the loaded countries. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: Every unit whose land contains the point (country, region, county; in Turkey also mahalle, in Italy the comune, in Britain the ward, in France the commune, in Germany the Gemeinde, in the United States the county subdivision where a boundary is available), most general first; match is none at sea or outside the loaded countries. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `get_place_boundary` changed (description)
  - before: The boundary as one GeoJSON Feature (application/geo+json, not wrapped in `data`), ready for MapLibre. properties: id, name, detail, dataset_version, attribution. Sent gzip-compressed when the client accepts gzip. A reply over 200 KB, or detail=full, is not inlined: the result is its REST URL and size, to download outside the chat. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.
  - after: The boundary as one GeoJSON Feature (application/geo+json, not wrapped in `data`), ready for MapLibre. properties: id, name, detail, dataset_version, attribution (an Italian comune's or a British ward's: its official list and boundary credit). Sent gzip-compressed when the client accepts gzip. A reply over 200 KB, or detail=full, is not inlined: the result is its REST URL and size, to download outside the chat. Works without a key within a smaller daily free quota (100 calls per network).
- 2026-11-26 `get_place` changed (description)
  - before: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards, France's INSEE communes, Germany's Destatis Gemeinden) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code, INSEE commune code, AGS), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Works without a key within a daily free quota.
  - after: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards, France's INSEE communes, Germany's Destatis Gemeinden, the U.S. Census Bureau's county subdivisions) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code, INSEE commune code, AGS, ANSICODE), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Such a unit also has its official boundary, a point on it (lat, lon) and its official `population` with `population_year` (ISTAT's 1 January count; a ward's mid-year estimate, Northern Ireland's Census 2021; INSEE municipal population; Destatis population; Census ACS five-year estimates) where the build had them. Works without a key within a daily free quota.
- 2026-11-24 `get_place` changed (description) no new version (still 1.0.0)
  - before: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Works without a key within a daily free quota.
  - after: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards, France's INSEE communes, Germany's Destatis Gemeinden) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code, INSEE commune code, AGS), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Works without a key within a daily free quota.
- 2026-11-23 `get_place` changed (description) **meaning changed** no new version (still 1.0.0)
  - before: One place with its path (ancestors, country first). Works without a key within a daily free quota.
  - after: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Works without a key within a daily free quota.
- 2026-11-23 `find_nearby_postal_codes` changed (inputSchema)

Full history: https://api.protogrid.dev/v1/servers/io.forlab%2Fgeo/changes

## Remotes

- https://api.forlab.io/geo/mcp (streamable-http, auth none, reachable true, uptime30d 0.8695652)

## Packages

_none_

## Tools (13)

- `find_nearby_places`: The nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- `find_nearby_postal_codes`: The postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- `find_places_at_point`: Every unit whose land contains the point (country, region, county; in Turkey also mahalle, in Italy the comune, in Britain the ward, in France the commune, in Germany the Gemeinde, in the United States the county subdivision where a boundary is available), most general first; match is none at sea or outside the loaded countries. Works without a key within a smaller daily free quota (100 calls per network).
- `get_caller_location`: The caller's own location, from Cloudflare's IP geolocation (edge only: the Worker at api.forlab.io/geo answers it, the Python service does not). Only the address the request comes from is looked up, never one you send. The location is approximate, city level at best, and a value Cloudflare does not know is null. `country` is the country's place in this dataset (same shape as /v1/contains), null when the dataset lacks it. Replies carry `Cache-Control: private, no-store`. Works without a key within a daily free quota.
- `get_country`: One country: names, calling codes, currencies, languages, timezones, levels with coverage. Works without a key within a daily free quota.
- `get_meta`: Dataset version, public tileset URLs, sources and licences. Works without a key within a daily free quota.
- `get_place`: One place with its path (ancestors, country first). A level-3 unit of an official list (Italy's ISTAT comuni, Britain's ONS wards, France's INSEE communes, Germany's Destatis Gemeinden, the U.S. Census Bureau's county subdivisions) also has `official`: `{scheme, code, release, district}`, its list, its code in it (Codice Catastale, ward code, INSEE commune code, AGS, ANSICODE), the list's edition and, for a ward, its local authority district name; the key is absent on every other place. Such a unit also has its official boundary, a point on it (lat, lon) and its official `population` with `population_year` (ISTAT's 1 January count; a ward's mid-year estimate, Northern Ireland's Census 2021; INSEE municipal population; Destatis population; Census ACS five-year estimates) where the build had them. Works without a key within a daily free quota.
- `get_place_boundary`: The boundary as one GeoJSON Feature (application/geo+json, not wrapped in `data`), ready for MapLibre. properties: id, name, detail, dataset_version, attribution (an Italian comune's or a British ward's: its official list and boundary credit). Sent gzip-compressed when the client accepts gzip. A reply over 200 KB, or detail=full, is not inlined: the result is its REST URL and size, to download outside the chat. Works without a key within a smaller daily free quota (100 calls per network).
- `get_timezone`: IANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. `dst` is true when the zone's clocks are advanced at that instant: its offset is the larger of the two it shows in that year (1 January and 1 July); a zone with one offset all year is never DST (Morocco: +01:00 and the +00:00 of Ramadan are both `dst: false`). When zones share an edge or overlap, `ambiguous` is true, `timezone` and the other fields are the first zone by name and `candidates` lists all of them (each with its own offset, dst and local time). 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- `list_countries`: All countries and dependencies with their profile. Works without a key within a daily free quota.
- `list_places`: Children of a place (`parent`) or a name prefix search (`q`); exactly one of the two. Works without a key within a daily free quota.
- `lookup_postal_code`: The places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. `partial` is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset built before the feature. Works without a key within a smaller daily free quota (100 calls per network).
- `validate_phone_number`: Validate and format a phone number. A valid number also has `e164`, `national`, `international`, `country`, `type` and, from libphonenumber's numbering-plan data in English: `carrier`, the operator the number range was first allocated to (numbering-plan data, not a live HLR lookup: a ported number may now be with another operator; null for landlines and where unknown); `timezones`, IANA zone ids ([] when unknown; a number with no geographic tie, such as most mobiles, gets its country's zones); `location`, the area of a geographic number (a city or region, e.g. "San Francisco, CA"), else the country, null when unknown. An invalid number has only `valid` and `possible`; one that does not parse, `valid` and `reason`. Works without a key within a daily free quota.
