Boundary Doctor
boundary_doctorPurpose: check a user-supplied red-line boundary before treating it as the site geometry. When to use: run after receiving a GeoJSON Polygon or MultiPolygon, especially before Site Verdict or focused constraint checks. Returns: closure, CRS, coordinate-range, topology, vertex-limit, and area checks; a stable boundary ID; calculated area; visible warnings; and an updated site_ref with red_line_upload confidence only when every blocking check passes. Limitations: V1 accepts EPSG:4326, OGC:CRS84, EPSG:27700, and EPSG:2157; it checks geometry but does not confirm title, ownership, survey accuracy, or a planning conclusion; it does not persist the uploaded geometry. Parameter guidance: pass the GeoJSON Feature or geometry in boundary_geojson, explicitly declare source_crs, optionally provide declared_area_m2 for a mismatch check, and pass an earlier site_ref to retain its address, LPA, and project context. Chaining: every response returns site_ref; pass it unchanged into another Atlasly tool to reuse the canonical site, coordinates, boundary confidence, LPA, evidence links, and project context.
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": {
"boundary_geojson": "<boundary_geojson>",
"source_crs": "<source_crs>"
},
"name": "boundary_doctor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_ref | No | Canonical site_ref returned by any previous Atlasly tool. Pass it unchanged to chain the same resolved site into this call; address, search_area, or project_id will be filled from it when omitted. | |
| source_crs | Yes | Explicit source CRS: WGS84/CRS84 longitude-latitude, British National Grid, or Irish Transverse Mercator | |
| boundary_geojson | Yes | GeoJSON Polygon, MultiPolygon, or Feature containing one. Coordinate order must match source_crs. | |
| declared_area_m2 | No | Optional area stated by the source, in square metres, for comparison with the coordinate-derived area |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| status | Yes | ||
| details | No | ||
| message | No | ||
| sources | Yes | ||
| headline | Yes | ||
| site_ref | Yes | ||
| retryable | No | ||
| error_code | No | ||
| atlasly_link | Yes | ||
| error_source | No | ||
| human_message | No | ||
| key_data_points | Yes | ||
| top_constraints | Yes | ||
| confidence_notes | Yes | ||
| executive_summary | Yes | ||
| next_best_actions | Yes | ||
| top_opportunities | Yes |