set_temporary_closure
OPERATOR WRITE, ADMIN ONLY. Asserts a short-lived closure (assert: {kind: closed}) or speed ({kind: speed_override, speed_kph}, 1 to 120) on named OSM way_ids (1 to 20) and direction (forward, backward or both, default both), for ttl_secs (60 to 86400), with a reason and an optional evidence_url. The record expires on its own, ranks below official closures and is logged with the reason. NEVER CALL THIS WITHOUT A PERSON'S EXPLICIT APPROVAL OF THIS EXACT CLOSURE IN THIS CONVERSATION: draft it, show it, stop, and call it only after a yes. Available only where the operator runs sn-mcp locally with SN_CAMERA_INCIDENTS_ENABLED=true and SN_ADMIN_TOKEN set; everywhere else it refuses and says why. Whether a live traffic writer applies it is reported in applied_by_live_writer; false means the record is stored but no road changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assert | Yes | `closed` or a speed in km/h (1..=120). | |
| reason | Yes | Why, for the audit log and the incidents endpoint note. | |
| way_ids | Yes | OSM way ids to assert on; at most 20. | |
| ttl_secs | Yes | Lifetime, seconds, 60..=86400. | |
| direction | No | Carriageway, default `both`. | both |
| evidence_url | No | Evidence link, if any. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The override record id written. | |
| end | Yes | Lifts at, RFC 3339. | |
| source | Yes | Always `ops-admin`: the static admin token carries no key id. | |
| applied_by_live_writer | Yes | Whether a live writer is armed to apply it on this deployment. A record written where no writer runs is honest about it. |