get_boundary_geojson_simplified
Fetch simplified GeoJSON for a boundary by its ONS census code.
Safe to embed directly in generated HTML map files. At the default tolerance (0.0001°) a constituency polygon shrinks from ~4,000 vertices to ~200–400 with no visible difference at normal map zoom levels.
Prefer this over get_boundary_geojson_by_code() when writing Leaflet map pages — the full geometry is large enough to exhaust your context window before you can finish writing the HTML.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "get_boundary_geojson_simplified"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ONS census / GSS / LAU code, e.g. "E14001592" for Woking. Case-insensitive. | |
| tolerance | No | Simplification tolerance in degrees (WGS-84). Default 0.0001. Increase to 0.001 for county-scale boundaries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |