preview_poi_polygon_create
Preview a closed four-corner POI polygon before upload, validating geometry and limits without changing OSM data, and optionally staging an isolated node replacement for review.
Instructions
Preview four ordered corners as a closed POI area, without uploading.
Supply exactly four distinct latitude/longitude pairs at OSM precision. The server creates four untagged vertices and one closed way bearing all POI tags. No self-intersections, collinear corners, polar/dateline geometry or diameter over 500m. Searches the WHOLE polygon plus a 100m margin. Optional replace_node_id and expected_node_version explicitly replace one isolated, unchanged POI node inside the area, preserving all its tags on the new way and deleting it atomically. Parent ways/relations block this. demonstration=true permits synthetic geometry only on the official dev API; changeset_source must say synthetic or demonstration. Never infer a real boundary from one point. Review geometry, any deletion and the full digest; after an explicit user request to publish it, call apply_osm_edit immediately; it performs the single final digest-bound host confirmation.
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": {
"corners": "<corners>",
"tags": "<tags>",
"changeset_comment": "<changeset_comment>",
"changeset_source": "<changeset_source>"
},
"name": "preview_poi_polygon_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| corners | Yes | ||
| demonstration | No | ||
| replace_node_id | No | ||
| changeset_source | Yes | ||
| changeset_comment | Yes | ||
| expected_node_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |