Validate NeonPlan 3D plan
neonplan_validate_planValidate a NeonPlan 3D building for structure, broken references, and unknown Home Assistant areas or entities before saving, without writing any changes.
Instructions
Check a NeonPlan 3D building for structure, broken references and unknown HA areas or entities without saving it.
Checks what the integration's schema requires (keys, types, main
ranges), then what it does not check: duplicate ids, an opening's
room_id/edge and offset ± width/2 inside that wall, repeated first
corner, degenerate rooms, entity fields that are not an entity id/null/
none, furniture and pins outside every room; with check_ha, each
area_id against HA's area registry and each entity id against HA's
states. Warnings cover null fields NeonPlan binds automatically from
the area. Writes nothing.
Use when: before neonplan_save_plan, or auditing the stored plan.
Not for: saving — neonplan_save_plan runs this itself.
Returns: {"valid", "errors": [...], "warnings": [...], "summary"}
plus plan/revision when the stored plan was checked.
Errors: invalid_plan, plan_not_found, neonplan_not_installed,
ha_unreachable.
Limits: ranges the schema checks but this does not are caught by the
server at save time (invalid_building).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "neonplan_validate_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Plan id from `neonplan_list_plans`; `main` (default) is the plan every install has. | main |
| building | No | Building object to check (as `neonplan_get_plan` returns it); omit to check the stored plan. | |
| check_ha | No | True (default) also checks every area_id and entity id against the live Home Assistant. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||