{
  "schemaVersion": "1.0.0",
  "toolCount": 280,
  "scopes": {
    "read": 88,
    "roads": 235,
    "full": 280
  },
  "tools": [
    {
      "name": "add_corridor_carriageway",
      "description": "Add one carriageway to an existing corridor master through RoadDesignTool.addCorridorCarriageway, using the corridor’s real template and spacing logic.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "masterRoadId": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "masterRoadId"
        ]
      },
      "annotations": {
        "title": "Add corridor carriageway",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_ip_point",
      "description": "Add one or more IP (Intersection Point) points to an existing road's horizontal alignment.\nIP points define the road's plan-view geometry. Coordinates are in scene space (x east, z south; north is -Z).\nPoints are inserted at the specified index, or appended to the end if no index given.\nNew middle IPs automatically receive a default curve radius based on the road's design speed. Use set_ip_curve_radii only if you need to override the default.\n\nJUNCTIONS: an IP that forms a junction is TERMINAL. If the road junctions at its end, do NOT append (appending is the default when insertIndex is omitted) — that extends the road straight through the main road, which the application cannot represent. Likewise do not insert at index 0 when the junction is at the start. Insert in the middle instead, or use create_junction / delete_junction to move the junction itself. This tool refuses an append or an index-0 insert on a junctioned end.\n\nIMPORTANT: Always call get_road_details FIRST to see existing IP points with their indices, positions, and current curve radii, and get_junction_details to see which ends are junctioned.\nThis lets you understand the current geometry before modifying it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "points": {
            "type": "array",
            "description": "Array of IP points to add. Each has either scene x (east) + z (south) with optional insertIndex, OR a chainage on the current alignment. Do not mix the two forms in one call.",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number",
                  "description": "Scene-local X (m, +X east)"
                },
                "z": {
                  "type": "number",
                  "description": "Scene-local Z (m, +Z south)"
                },
                "chainage": {
                  "type": "number",
                  "description": "Alternative to x/z: insert a new IP ON the current centreline at this chainage (strictly inside the road chainageRange). The plan point and the IP/VIP insert positions are resolved by the same engine call as the in-app \"insert IP\" action, and a matching VIP is added on the current profile. insertIndex is ignored."
                },
                "curveRadius": {
                  "type": "number",
                  "description": "Curve radius in meters (0 or omit = sharp corner; chainage inserts default to the engine's 10 m)"
                },
                "insertIndex": {
                  "type": "number",
                  "description": "Insert at this 0-based index. Omit to append at end. (x/z form only.)"
                }
              }
            }
          }
        },
        "required": [
          "roadId",
          "points"
        ]
      },
      "annotations": {
        "title": "Add ip point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_offset_feature",
      "description": "Add an offset feature (footpath, verge, swale, ditch, wall, fence, hedge) to a road side. Features chain outward from the kerb. Each feature has a type-specific default width, crossfall, and build-up.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Which side to add the feature to"
          },
          "type": {
            "type": "string",
            "enum": [
              "footpath",
              "verge",
              "swale",
              "ditch",
              "wall",
              "fence",
              "hedge"
            ],
            "description": "Feature type"
          },
          "width": {
            "type": "number",
            "description": "Width in meters (optional, uses default for type)"
          },
          "crossfall": {
            "type": "number",
            "description": "Crossfall ratio e.g. 40 = 1:40 (optional, uses default)"
          }
        },
        "required": [
          "roadId",
          "side",
          "type"
        ]
      },
      "annotations": {
        "title": "Add offset feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_offset_feature_preset",
      "description": "Add a linked multi-segment offset-feature preset to a road side — the Swale / Ditch / Hedge / Kerb / Wall preset entries in the cross-section \"Add feature\" palette. Each preset is three strips (in-slope, base/core, out-slope) sharing one presetGroupId with presetGroupType \"<preset>Preset\" and presetGroupRole inSlope/base/outSlope, so the editor moves them as one.\nswale: 1.0 + 0.6 + 1.0 m, 1:4 sides, SuDS stack. ditch: 0.8 + 0.7 + 0.8 m, 1:2 sides. hedge: 0.3 + 0.5 + 0.3 m planting stack. kerb: side strips + a core sized to the side's kerb width, with proud upstand. wall: 0.3 + 0.5 + 0.3 m with a 1800 mm wall on the core.\nTune segments afterwards with update_offset_feature; remove each segment with remove_offset_feature.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Road side; \"both\" adds an independent group to each side."
          },
          "preset": {
            "type": "string",
            "enum": [
              "swale",
              "ditch",
              "hedge",
              "kerb",
              "wall"
            ],
            "description": "Which palette preset."
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "description": "Insert the group at this position in the side's offset features (0 = against the kerb). Omit to append outermost, as the palette does."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "side",
          "preset"
        ]
      },
      "annotations": {
        "title": "Add offset feature preset",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "add_offset_feature_widening_point",
      "description": "Add one widening point on an offset-feature string (the string menu Widen Offset Feature). channel picks the string: inner-edge = road-side edge (not on the first feature, that is the back of kerb), inner = centre string, outer = outer edge. widthDelta is the extra width of that half at this point (default: the width already there). Points on one string join their neighbours in chainage order; the first holds back and the last holds forward, so add a point at the current width first and then the moved one.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "featureId": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "inner",
              "outer",
              "inner-edge"
            ]
          },
          "chainage": {
            "type": "number"
          },
          "widthDelta": {
            "type": "number",
            "description": "Signed extra width in metres; the half never goes below 0.05 m."
          }
        },
        "required": [
          "roadId",
          "side",
          "featureId",
          "channel",
          "chainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Add offset feature widening point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_parking_access",
      "description": "Add an entry/exit access point on the car park boundary, either at a plan point (snapped to the nearest boundary edge) or by edge index + fraction. Access points seed the aisle skeleton.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "x": {
            "type": "number",
            "description": "Scene X (east) of a point near the boundary."
          },
          "z": {
            "type": "number",
            "description": "Scene Z (−north) of a point near the boundary."
          },
          "edgeIndex": {
            "type": "number",
            "description": "Boundary edge index (alternative to x/z)."
          },
          "t": {
            "type": "number",
            "description": "Fraction 0..1 along that edge."
          },
          "widthM": {
            "type": "number",
            "description": "Access width (default 6 m two-way, 3.6 m one-way)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "entry",
              "exit",
              "both"
            ],
            "description": "Default both."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Add parking access",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "add_parking_exclusion",
      "description": "Add a keep-clear polygon (no stalls or aisles) inside a car park, e.g. a plant enclosure, trolley bay or building footprint. Points are scene x/z.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "points": {
            "type": "array",
            "minItems": 3,
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ]
            }
          }
        },
        "required": [
          "points"
        ]
      },
      "annotations": {
        "title": "Add parking exclusion",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "add_plan_item",
      "description": "Add a new item to the existing plan. Use when you discover additional steps are needed during execution.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Short task description"
          },
          "insert_after": {
            "type": "number",
            "description": "Insert after this index (default: append to end)"
          }
        },
        "required": [
          "title"
        ]
      },
      "annotations": {
        "title": "Add plan item",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "plan"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "add_superelevation",
      "description": "Add a superelevation (crossfall transition) zone to a road or path. This changes the crossfall\non one side of the road over a chainage range, with taper-in and taper-out distances for smooth transitions.\n\nWORKFLOW: Call get_road_details first to find the road's chainageRange and current crossfall values.\n\nParameters:\n- startChainage / endChainage: the hold zone where targetCrossfall is fully applied\n- leadInDistance: distance BEFORE startChainage to taper from base crossfall to target (default: 2m)\n- leadOutDistance: distance AFTER endChainage to taper from target back to base (default: 2m)\n- targetCrossfall: the crossfall ratio in the hold zone.\n    Positive = crown (sloping away from centreline, e.g. 40 = 1:40).\n    Negative = superelevation / adverse (sloping toward centreline, e.g. -40 = 1:-40).\n    Example: To bank a curve at 5%, use targetCrossfall = -20 (1:20 toward centre).\n\nThe total affected zone is: (startChainage - leadInDistance) to (endChainage + leadOutDistance).\nMultiple superelevation zones can exist on the same road on different sides or non-overlapping chainages.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road or path ID"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Which side of the road/path to apply superelevation to"
          },
          "startChainage": {
            "type": "number",
            "description": "Chainage where full target crossfall begins (hold zone start)"
          },
          "endChainage": {
            "type": "number",
            "description": "Chainage where full target crossfall ends (hold zone end)"
          },
          "targetCrossfall": {
            "type": "number",
            "description": "Target crossfall ratio. Positive=crown (e.g. 40=1:40), negative=superelevation (e.g. -20=1:20 toward centre). Use negative for banking curves."
          },
          "leadInDistance": {
            "type": "number",
            "description": "Taper distance before startChainage in meters (default: 2.0)"
          },
          "leadOutDistance": {
            "type": "number",
            "description": "Taper distance after endChainage in meters (default: 2.0)"
          }
        },
        "required": [
          "roadId",
          "side",
          "startChainage",
          "endChainage",
          "targetCrossfall"
        ]
      },
      "annotations": {
        "title": "Add superelevation",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_vip_point",
      "description": "Add one or more VIP (Vertical Intersection Point) points to a road's vertical alignment.\nVIPs define elevation changes along the road. Each VIP has a chainage (position along road) and level (elevation in meters).\nNew VIPs are inserted in chainage order automatically.\n\nIMPORTANT: Always call get_road_details FIRST to see existing VIP points with their indices, chainages and levels.\nChainage must be within the road's chainageRange. Level is in meters (elevation above datum).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "vips": {
            "type": "array",
            "description": "Array of VIP points to add",
            "items": {
              "type": "object",
              "properties": {
                "chainage": {
                  "type": "number",
                  "description": "Chainage position along road (meters)"
                },
                "level": {
                  "type": "number",
                  "description": "Elevation in meters"
                },
                "kValue": {
                  "type": "number",
                  "description": "Vertical curve K-value (0 = no curve, higher = gentler)"
                }
              },
              "required": [
                "chainage",
                "level"
              ]
            }
          }
        },
        "required": [
          "roadId",
          "vips"
        ]
      },
      "annotations": {
        "title": "Add vip point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "add_widening",
      "description": "Add a widening zone (lay-by, parking bay, bus bay, taper, etc.) to a road.\n\nWORKFLOW: Always call get_road_details first to get the road's chainageRange (startChainage, endChainage).\nThen pick startChainage and endChainage values WITHIN that range.\n\nExample: If chainageRange shows 0 → 200m, you can place a lay-by from ch 50 to ch 80.\n\nPresets:\n  rectangular  – Sharp 90° corners (parking bays). Produces 4 points.\n  tapered      – Smooth curved entry/exit (typical lay-by). Produces 4 points with radii.\n  three-point  – Triangular peak at midpoint (passing place). Produces 3 points.\n  bus-layby    – Full bus lay-by with tapered entry/exit. Produces 4-6 points. Needs ≥15m span.\n  two-point    – Two-click place; start + end only at the current channel (drag to widen); end holds for the rest of the road.\n\nDefault widening offset is 2.0m outward from the channel edge.\nAfter creation, use update_widening_point to fine-tune individual point positions, radii, or offsets.\nUse update_widening_group to change group-level properties (build-up, kerb, surface finish, crossfall).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Which side of the road"
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage along road in meters (REQUIRED). Get from get_road_details chainageRange."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage along road in meters. If omitted, auto-calculated from preset (10-25m span)."
          },
          "chainage": {
            "type": "number",
            "description": "Alias for startChainage (if endChainage omitted, span auto-calculated)."
          },
          "preset": {
            "type": "string",
            "enum": [
              "rectangular",
              "tapered",
              "three-point",
              "bus-layby",
              "two-point"
            ],
            "description": "Widening shape preset (default: tapered)"
          },
          "offset": {
            "type": "number",
            "description": "Widening offset in meters (default: 2.0). How far the channel edge moves outward."
          },
          "foldKerbHeight": {
            "type": "number",
            "description": "Fold line kerb upstand height in mm (0=flush, 6=delineation, 25=standard). Default depends on preset."
          },
          "foldKerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped"
            ],
            "description": "Kerb type along fold line"
          },
          "foldKerbMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ],
            "description": "Kerb material for fold line"
          },
          "buildUpPreset": {
            "type": "string",
            "enum": [
              "residential",
              "industrial",
              "footway"
            ],
            "description": "Construction build-up preset for widening area"
          },
          "surfaceFinish": {
            "type": "string",
            "enum": [
              "asphalt",
              "block-paving",
              "permeable-paving",
              "flagstone",
              "setts",
              "concrete"
            ],
            "description": "Surface finish (default: asphalt)"
          },
          "wideningCrossfall": {
            "type": "number",
            "description": "Crossfall ratio for widened zone. Positive values (e.g. 40 = 1:40) slope away from road. Negative values (e.g. -40 = 1:40 towards road, -20 = 1:20 towards road) slope towards road. Overrides road crossfall in widened area."
          }
        },
        "required": [
          "roadId",
          "side",
          "startChainage"
        ]
      },
      "annotations": {
        "title": "Add widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "analyze_pdf_overlay",
      "description": "Render an already-imported PDF overlay as a plan image (longest edge 1280px) and inject it for vision-capable models. Call this when you need to see the sheet — layer names alone are not the drawing. Prefer query_pdf_scene for exact centreline coordinates.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID"
          },
          "pageNumber": {
            "type": "number",
            "description": "Page number (default: 1)"
          },
          "scale": {
            "type": "number",
            "description": "Render scale factor (default: 2 for high DPI)"
          },
          "region": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "description": "Crop to this scene-space region"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Analyze pdf overlay",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "analyze_surface_water",
      "description": "Analyze surface water flow on a road: compute flow directions, identify low points (gully candidates), high points (ridges), and longitudinal gradients. Uses road vertical alignment data.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to analyze. If omitted, analyzes all roads."
          },
          "includeGradientProfile": {
            "type": "boolean",
            "description": "Include detailed gradient profile (default: false for summary only)."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Analyze surface water",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "apply_bridge_preset",
      "description": "Apply a bridge type preset to an existing span exactly as the Bridge Span drawer's \"Reset to preset\" does: the preset configures the current span (system, deck, abutments, supports, furniture, system settings), member overrides are cleared, the footprint returns to inherit-host, and the name, id and chainages are kept. base:\"defaults\" starts from a fresh default span instead (as the creation dialog does), keeping name, id, chainages, soffit name and founding level.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "spanId": {
            "type": "string"
          },
          "presetId": {
            "type": "string",
            "enum": [
              "solid-slab",
              "voided-slab",
              "slab-integral-portal",
              "precast-y-beam",
              "precast-ty-beam",
              "precast-u-beam",
              "precast-inverted-t",
              "adjacent-box-beam",
              "steel-composite-plate",
              "steel-composite-tub",
              "steel-half-through",
              "box-in-situ",
              "box-balanced-cantilever",
              "box-precast-segmental",
              "box-incremental-launch",
              "masonry-arch",
              "concrete-open-spandrel-arch",
              "tied-arch-bowstring",
              "steel-through-arch",
              "warren-through-truss",
              "pratt-through-truss",
              "deck-truss",
              "vierendeel-truss",
              "cable-stayed-fan",
              "cable-stayed-harp",
              "cable-stayed-a-frame",
              "suspension-classic",
              "box-culvert",
              "portal-culvert",
              "footbridge-steel",
              "footbridge-truss"
            ],
            "description": "Preset id from list_bridge_presets."
          },
          "base": {
            "type": "string",
            "enum": [
              "current",
              "defaults"
            ],
            "description": "current (default) = drawer Reset to preset; defaults = creation dialog."
          }
        },
        "required": [
          "roadId",
          "spanId",
          "presetId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Apply bridge preset",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "apply_hardstanding_fall",
      "description": "Re-level a hardstanding area to a fall shape: oneWay (plane), ridge (two-way falling away from a fold), valley (two-way falling to a fold) or toPoint (four-way to a low point). bearingDeg is the downhill direction (0 north, 90 east); for ridge/valley the fold runs across it through the anchor. anchorVertex keeps its level and sets the fold / low point; without it the area keeps its mean level. toPoint uses anchorVertex, an existing LP node, or adds LP1 at the centre. Held and road-tied nodes keep their level unless includeHeld. Folds from an earlier fall are replaced.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "mode": {
            "type": "string",
            "enum": [
              "oneWay",
              "ridge",
              "valley",
              "toPoint"
            ]
          },
          "ratio": {
            "type": "number",
            "description": "Fall as 1:N (e.g. 40 for 1:40). Default: the area crossfall."
          },
          "percent": {
            "type": "number",
            "description": "Fall as a percentage, if ratio is not given."
          },
          "bearingDeg": {
            "type": "number",
            "description": "Downhill bearing, degrees clockwise from north. Default: the area fall direction."
          },
          "anchorVertex": {
            "type": "string",
            "description": "Node label or id that keeps its level."
          },
          "includeHeld": {
            "type": "boolean",
            "description": "Also move held and road-tied nodes. Default false."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Apply hardstanding fall",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "apply_road_country_pack",
      "description": "Apply a country pack build-up preset to an existing road or path — the Country pack picker (and its Re-apply button) in the road drawer Build-up group / Edit Road dialog.\nRoad presets set the carriageway build-up, lane half-width, crossfall, kerb (type, upstand, material, bedding, haunch, unit length, drainage-channel offset), hardstrip / hard shoulder / footway / verge strips, plus design speed, road class, design standard, bend radii and sag/crest K. Footpath presets (paths only) set the build-up, surface colour, path width and crossfall.\nEvery call re-applies the preset over any manual edits (that is what Re-apply does). Use list_road_country_packs to find preset ids. Not available on grading lines or corridor masters (the picker is hidden there).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road or path ID."
          },
          "presetId": {
            "type": "string",
            "description": "Preset id (or code) from list_road_country_packs. Road presets for roads, footpath presets for paths."
          },
          "packId": {
            "type": "string",
            "description": "Pack holding the preset. Defaults to the active pack, then every pack. Choosing a pack makes it the active pack, as the picker does."
          },
          "reapply": {
            "type": "boolean",
            "description": "Re-apply the preset (the ↻ Re-apply button). Applying always overwrites the preset-driven fields, so this only documents intent."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "presetId"
        ]
      },
      "annotations": {
        "title": "Apply road country pack",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "apply_road_markings_config",
      "description": "Create or update road-native markings by applying a complete typed marking config through applyRoadMarkings. Stable map keys must match item IDs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "config": {
            "type": "object",
            "description": "Complete RoadMarkingConfig (read it with get_road_markings and send it back edited). Every collection is an object keyed by item id. Lines, arrows, stop lines and freeform SVG are rendered; text, symbols, hatching and zigzags are stored only. A config with no lines, arrows or stop lines clears the road markings. For single items prefer the upsert_road_marking_* tools.",
            "properties": {
              "markingLines": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Must equal the map key."
                    },
                    "roadId": {
                      "type": "string",
                      "description": "Must equal roadId."
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "locked": {
                      "type": "boolean"
                    },
                    "groupId": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "association": {
                      "type": "string",
                      "enum": [
                        "centreline",
                        "left-channel",
                        "right-channel",
                        "manual"
                      ]
                    },
                    "offset": {
                      "type": "number"
                    },
                    "startChainage": {
                      "type": "number"
                    },
                    "endChainage": {
                      "type": "number"
                    },
                    "startT": {
                      "type": "number"
                    },
                    "endT": {
                      "type": "number"
                    },
                    "patternId": {
                      "type": "string",
                      "enum": [
                        "uk-centre-line-normal",
                        "uk-centre-line-hazard",
                        "uk-double-white-continuous",
                        "uk-double-white-left-continuous",
                        "uk-double-white-right-continuous",
                        "uk-edge-line",
                        "uk-edge-line-dashed",
                        "uk-edge-line-hatched",
                        "uk-lane-line",
                        "uk-lane-destination",
                        "uk-bus-lane-edge",
                        "uk-bus-lane-continuous",
                        "uk-cycle-lane-mandatory",
                        "uk-cycle-lane-advisory",
                        "uk-parking-bay",
                        "uk-double-yellow",
                        "uk-single-yellow",
                        "uk-red-route-double",
                        "uk-red-route-single"
                      ]
                    },
                    "customWidth": {
                      "type": "number"
                    },
                    "customColor": {
                      "type": "string"
                    },
                    "customDashLength": {
                      "type": "number"
                    },
                    "customGapLength": {
                      "type": "number"
                    },
                    "startExtension": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Continue a channel line around a junction mouth; null clears it. viaSide must match the line channel side.",
                      "properties": {
                        "junctionId": {
                          "type": "string"
                        },
                        "viaSide": {
                          "type": "string",
                          "enum": [
                            "left",
                            "right"
                          ]
                        },
                        "arcFraction": {
                          "type": "number",
                          "description": "0–1 along the fillet arc; 1 reaches the other road."
                        },
                        "toRoadId": {
                          "type": "string",
                          "description": "Road the marking continues onto (needs arcFraction 1)."
                        },
                        "toChainage": {
                          "type": "number",
                          "description": "Road-relative end chainage on toRoadId."
                        }
                      },
                      "required": [
                        "junctionId",
                        "viaSide",
                        "arcFraction"
                      ],
                      "additionalProperties": false
                    },
                    "endExtension": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Continue a channel line around a junction mouth; null clears it. viaSide must match the line channel side.",
                      "properties": {
                        "junctionId": {
                          "type": "string"
                        },
                        "viaSide": {
                          "type": "string",
                          "enum": [
                            "left",
                            "right"
                          ]
                        },
                        "arcFraction": {
                          "type": "number",
                          "description": "0–1 along the fillet arc; 1 reaches the other road."
                        },
                        "toRoadId": {
                          "type": "string",
                          "description": "Road the marking continues onto (needs arcFraction 1)."
                        },
                        "toChainage": {
                          "type": "number",
                          "description": "Road-relative end chainage on toRoadId."
                        }
                      },
                      "required": [
                        "junctionId",
                        "viaSide",
                        "arcFraction"
                      ],
                      "additionalProperties": false
                    },
                    "breakoutPoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "breakoutZones": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "stopAtJunctions": {
                      "type": "boolean"
                    },
                    "junctionGaps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "thickness": {
                      "type": "number"
                    },
                    "material": {
                      "type": "string",
                      "enum": [
                        "paint",
                        "thermoplastic",
                        "preformed",
                        "tape",
                        "cold-applied"
                      ]
                    },
                    "reflectivity": {
                      "type": "string",
                      "enum": [
                        "standard",
                        "enhanced",
                        "high-visibility"
                      ]
                    },
                    "roundedCaps": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "roadId",
                    "association",
                    "offset",
                    "startChainage",
                    "endChainage",
                    "patternId"
                  ],
                  "additionalProperties": true
                }
              },
              "markingGroups": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "arrows": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Must equal the map key."
                    },
                    "roadId": {
                      "type": "string",
                      "description": "Must equal roadId."
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "locked": {
                      "type": "boolean"
                    },
                    "arrowType": {
                      "type": "string",
                      "enum": [
                        "ahead",
                        "left",
                        "right",
                        "ahead-left",
                        "ahead-right",
                        "left-right",
                        "ahead-left-right",
                        "merge-left",
                        "merge-right",
                        "lane-end",
                        "u-turn"
                      ]
                    },
                    "association": {
                      "type": "string",
                      "enum": [
                        "centreline",
                        "left-channel",
                        "right-channel"
                      ]
                    },
                    "chainage": {
                      "type": "number"
                    },
                    "t": {
                      "type": "number"
                    },
                    "offset": {
                      "type": "number"
                    },
                    "rotation": {
                      "type": "number"
                    },
                    "length": {
                      "type": "number"
                    },
                    "width": {
                      "type": "number"
                    },
                    "scale": {
                      "type": "number"
                    },
                    "color": {
                      "type": "string"
                    },
                    "thickness": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "roadId",
                    "arrowType",
                    "chainage"
                  ],
                  "additionalProperties": true
                }
              },
              "textMarkings": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Must equal the map key."
                    },
                    "roadId": {
                      "type": "string",
                      "description": "Must equal roadId."
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "locked": {
                      "type": "boolean"
                    },
                    "textType": {
                      "type": "string",
                      "enum": [
                        "SLOW",
                        "STOP",
                        "GIVE WAY",
                        "KEEP CLEAR",
                        "BUS LANE",
                        "BUS STOP",
                        "CYCLE",
                        "TAXI",
                        "SCHOOL",
                        "LOOK LEFT",
                        "LOOK RIGHT",
                        "NO ENTRY",
                        "custom"
                      ]
                    },
                    "customText": {
                      "type": "string"
                    },
                    "chainage": {
                      "type": "number"
                    },
                    "characterHeight": {
                      "type": "number"
                    },
                    "font": {
                      "type": "string",
                      "enum": [
                        "transport-heavy",
                        "transport-medium",
                        "custom"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "roadId",
                    "textType",
                    "chainage"
                  ],
                  "additionalProperties": true
                }
              },
              "symbols": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "hatchingAreas": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "zigzags": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "stopLines": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Must equal the map key."
                    },
                    "roadId": {
                      "type": "string",
                      "description": "Must equal roadId."
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "locked": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "stop",
                        "give-way",
                        "cycle-stop"
                      ]
                    },
                    "chainage": {
                      "type": "number"
                    },
                    "t": {
                      "type": "number"
                    },
                    "startOffset": {
                      "type": "number"
                    },
                    "endOffset": {
                      "type": "number"
                    },
                    "lineWidth": {
                      "type": "number"
                    },
                    "dashLength": {
                      "type": "number"
                    },
                    "gapLength": {
                      "type": "number"
                    },
                    "color": {
                      "type": "string"
                    },
                    "textType": {
                      "type": "string",
                      "enum": [
                        "STOP",
                        "GIVE WAY"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "roadId",
                    "type",
                    "chainage",
                    "startOffset",
                    "endOffset"
                  ],
                  "additionalProperties": true
                }
              },
              "freeformSVGMarkings": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Must equal the map key."
                    },
                    "roadId": {
                      "type": "string",
                      "description": "Must equal roadId."
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "locked": {
                      "type": "boolean"
                    },
                    "svgContent": {
                      "type": "string"
                    },
                    "svgName": {
                      "type": "string"
                    },
                    "association": {
                      "type": "string",
                      "enum": [
                        "centreline",
                        "left-channel",
                        "right-channel"
                      ]
                    },
                    "chainage": {
                      "type": "number"
                    },
                    "lateralOffset": {
                      "type": "number"
                    },
                    "rotation": {
                      "type": "number"
                    },
                    "scale": {
                      "type": "number"
                    },
                    "width": {
                      "type": "number"
                    },
                    "height": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "roadId",
                    "svgContent",
                    "chainage"
                  ],
                  "additionalProperties": true
                }
              }
            },
            "required": [
              "markingLines",
              "markingGroups",
              "arrows",
              "textMarkings",
              "symbols",
              "hatchingAreas",
              "zigzags",
              "stopLines",
              "freeformSVGMarkings"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "roadId",
          "config"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Apply road markings config",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "break_out_island_from_roundabout_arm",
      "description": "Island drawer \"break out\" for an island owned by a roundabout auto-arm: switches that arm to manual design and releases its islands so they can be edited freely. Undoable. Use get_road_hosted_features islandDetails[].roundaboutArmLink to find linked islands.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "islandId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "islandId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Break out island from roundabout arm",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "capture_active_view",
      "description": "Capture a screenshot of the currently active 2D view (floor plan, section, or cross-section). Use this after opening a view with open_view or after creating a section/plan to visually verify it. Returns a base64 image shown in the chat.\n\nIf no 2D view is active, it falls back to capturing the current 3D viewport.\n\nUse this to:\n- Verify a floor plan shows the correct geometry at the cut height\n- Check a cross-section shows the road build-up and utility depths correctly\n- Verify section lines cut through the right area\n- Screenshot the current view state for reference",
      "inputSchema": {
        "type": "object",
        "properties": {
          "width": {
            "type": "number",
            "description": "Image width in pixels (default: 1536)"
          },
          "height": {
            "type": "number",
            "description": "Image height in pixels (default: 1152)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Capture active view",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "capture_alignment_panel",
      "description": "Capture a screenshot of the Civil Alignment Panel showing the road's longitudinal profile (long section) and/or cross-section. The panel must be open first (use open_alignment_panel).\n\nUse this to verify:\n- Vertical alignment VIP positions and elevations\n- Road profile gradients\n- Pipe long-section depths relative to the road\n- Cross-section geometry at a specific chainage",
      "inputSchema": {
        "type": "object",
        "properties": {
          "section": {
            "type": "string",
            "enum": [
              "long_section",
              "cross_section",
              "both"
            ],
            "description": "Which section to capture (default: both)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Capture alignment panel",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "capture_plan_view",
      "description": "Capture a top-down (bird's eye) plan view screenshot of the scene. This automatically positions the camera looking straight down at the scene center, captures the image, then restores the original camera position. Use this to visually verify placement of roads, pipes, lights, and signs from above. Returns a base64 image shown in the chat. Optionally focus on a specific road or area.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Optional: focus on a specific road by ID"
          },
          "center": {
            "type": "object",
            "description": "Optional: center point to focus on (scene space). If not provided, auto-fits entire scene.",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            }
          },
          "width": {
            "type": "number",
            "description": "Screenshot width (default: 1024, max: 2048)"
          },
          "height": {
            "type": "number",
            "description": "Screenshot height (default: 1024, max: 2048)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Capture plan view",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "drawing"
        ]
      }
    },
    {
      "name": "capture_screenshot",
      "description": "Take a screenshot of the current 3D viewport so you can visually inspect the scene. Returns a base64 image that will be shown in the chat. IMPORTANT: Before taking a screenshot, ALWAYS call zoom_to_fit first (or orbit_camera to a specific location) so the camera is looking at the right area. Otherwise you may capture an empty or zoomed-out view.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "width": {
            "type": "number",
            "description": "Screenshot width in pixels (default: 1024, max: 2048)"
          },
          "height": {
            "type": "number",
            "description": "Screenshot height in pixels (default: 768, max: 1536)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Capture screenshot",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "drawing"
        ]
      }
    },
    {
      "name": "capture_with_view_styles",
      "description": "Screenshot the viewport with temporary Styles settings, e.g. { showRoadTriangulation: true } to see the TIN or { showRoadContours: true, roadContourSpacing: { major: 0.25, minor: 0.05 } } to see falls, then put the previous settings back (restore defaults to true) with the same refreshes the popover runs. view: current (as is), plan (top-down, optional roadId focus) or fit-road (zoom to roadId, camera restored afterwards). Returns the image like capture_screenshot. Call twice (styles on, then off) to compare.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "styles": {
            "type": "object",
            "additionalProperties": false,
            "description": "Temporary Styles settings, same keys and units as update_view_style_settings.",
            "properties": {
              "showRoadTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Road Surface / Islands."
              },
              "showKerbTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Kerbs."
              },
              "showFootpathTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Footpaths."
              },
              "showWideningTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Widening Groups."
              },
              "showVergeTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Verges."
              },
              "showSwaleTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Swales/Ditches."
              },
              "showAreaTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Areas."
              },
              "showGradingTriangulation": {
                "type": "boolean",
                "description": "Triangulation wireframe: Grading."
              },
              "showRoadContours": {
                "type": "boolean",
                "description": "Show Roads contours."
              },
              "roadContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Roads contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "roadContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Roads contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showKerbContours": {
                "type": "boolean",
                "description": "Show Kerbs contours."
              },
              "kerbContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Kerbs contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "kerbContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Kerbs contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showFootpathContours": {
                "type": "boolean",
                "description": "Show Footpaths contours."
              },
              "footpathContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Footpaths contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "footpathContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Footpaths contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showAreaContours": {
                "type": "boolean",
                "description": "Show Areas contours."
              },
              "areaContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Areas contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "areaContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Areas contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showPondContours": {
                "type": "boolean",
                "description": "Show Ponds contours."
              },
              "pondContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Ponds contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "pondContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Ponds contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showGradingContours": {
                "type": "boolean",
                "description": "Show Grading contours."
              },
              "gradingContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Grading contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "gradingContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Grading contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showImportedSurveyContours": {
                "type": "boolean",
                "description": "Show Survey contours."
              },
              "surveyImportContourSpacing": {
                "type": "object",
                "additionalProperties": false,
                "description": "Survey contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
                "properties": {
                  "major": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Major interval, metres."
                  },
                  "minor": {
                    "type": "number",
                    "minimum": 0.001,
                    "description": "Minor interval, metres."
                  },
                  "majorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Major interval, millimetres."
                  },
                  "minorMm": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Minor interval, millimetres."
                  }
                }
              },
              "surveyImportContourColors": {
                "type": "object",
                "additionalProperties": false,
                "description": "Survey contour colours as #rrggbb.",
                "properties": {
                  "major": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "showServicesThroughGeometry": {
                "type": "boolean",
                "description": "See services through geometry"
              },
              "pipeFlowAnimation": {
                "type": "boolean",
                "description": "Running water flows downstream along storm and foul pipes"
              },
              "pointCloudSectionMode": {
                "type": "string",
                "enum": [
                  "line",
                  "dots"
                ],
                "description": "Sections Display: line = Ground profile line, dots = Point cloud dots."
              },
              "orbitIndicatorVisible": {
                "type": "boolean",
                "description": "Show pivot indicator"
              }
            }
          },
          "view": {
            "type": "string",
            "enum": [
              "current",
              "plan",
              "fit-road"
            ],
            "description": "Camera for the shot (default current)."
          },
          "roadId": {
            "type": "string",
            "description": "Road to frame (plan focus, required for fit-road)."
          },
          "width": {
            "type": "integer",
            "minimum": 64,
            "maximum": 2048
          },
          "height": {
            "type": "integer",
            "minimum": 64,
            "maximum": 2048
          },
          "restore": {
            "type": "boolean",
            "description": "Put the previous settings back after the shot (default true)."
          },
          "settleMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3000,
            "description": "Extra wait after applying styles before the shot (default 150)."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Capture with view styles",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "check_lighting_compliance",
      "description": "Check lighting compliance against standards: spacing between lights (max 50m for residential, 30m for highways), orientation (arm should point toward carriageway), and coverage gaps. Returns compliance report with issues and recommendations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Optional: check only lights associated with this road."
          },
          "maxSpacing_m": {
            "type": "number",
            "description": "Maximum allowed spacing in meters (default: 50)."
          },
          "standard": {
            "type": "string",
            "enum": [
              "residential",
              "highway",
              "pedestrian"
            ],
            "description": "Lighting standard (affects default max spacing).",
            "default": "residential"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Check lighting compliance",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "check_pipe_clashes",
      "description": "Detect horizontal and vertical clashes between pipes. Checks all pairs of pipes for vertices within a specified distance. Returns clash report with positions and recommended minimum separations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "threshold_m": {
            "type": "number",
            "description": "Distance threshold for clash detection in meters (default: 0.5)."
          },
          "pipeId": {
            "type": "string",
            "description": "Optional: check only this pipe against all others."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Check pipe clashes",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "check_road_crossings",
      "description": "Test whether a road alignment passes THROUGH another road, and where.\n\nCall this BEFORE draw_road whenever a new alignment might cut across existing roads, and after editing IPs.\n\nTwo modes:\n- Proposed alignment: pass \"points\" (the same scene-space IP array you would give draw_road).\n- Existing road: pass \"roadId\" to test a road already in the scene against all others.\n\nA reported crossing of a single carriageway, with both ends of the alignment beyond the host, is a crossroads — not a refusal. Pass those same points to draw_road or create_road_from_polyline with NO connectToRoad; the engine splits them at both channel edges into two side roads. A T-junction is the other outcome: one end stops on the host, using connectToRoad + connectAtChainage + connectSide + connectionEnd. Dual carriageway and occupied-mouth crossings are still rejected. allowCrossings=true is only for an explicit grade separation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "points": {
            "type": "array",
            "description": "Proposed centreline IP points in scene space. Mutually exclusive with roadId.",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number",
                  "description": "Scene-local X (m, +X east)"
                },
                "z": {
                  "type": "number",
                  "description": "Scene-local Z (m, +Z south)"
                }
              },
              "required": [
                "x",
                "z"
              ]
            }
          },
          "roadId": {
            "type": "string",
            "description": "Existing road ID to test against every other road. Mutually exclusive with points."
          },
          "ignoreRoadIds": {
            "type": "array",
            "description": "Road IDs to exclude from the test, e.g. the main road this alignment legitimately junctions with.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Check road crossings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "validation",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit",
          "road-network"
        ]
      }
    },
    {
      "name": "classify_drawing_layers",
      "description": "Work out what every layer of the imported CAD/PDF drawing represents (road edges/kerbs, centrelines, footways, boundaries, buildings, contours, annotation, hatch) using both layer naming and stroke geometry. Run this FIRST when asked to model from a drawing, so later tools only read the layers that actually carry road geometry. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "description": "Restrict to one CAD layout or PDF overlay id."
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "cad",
              "pdf"
            ]
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Classify drawing layers",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "clear_roadside_buildings",
      "description": "Remove roadside buildings from a road: all of them (and turn Place buildings off), or only the automatic ones (keeping manual/locked).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "keepManual": {
            "type": "boolean",
            "description": "Keep manual/locked buildings (default false = remove everything and disable placement)."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Clear roadside buildings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "close_alignment_panel",
      "description": "Close the Civil Alignment Panel and return to the normal 3D viewport.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Close alignment panel",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "close_view",
      "description": "Close the currently active 2D view and return to the main 3D perspective camera. Use this after reviewing a plan or section to go back to the full 3D model.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Close view",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "close_views_panel",
      "description": "Close the Plans & Sections side panel.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Close views panel",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "commit_road_network_proposal",
      "description": "Atomically commit a cached RoadNetworkPreflight. Prefer preflightHash from the last preflight — do not echo the preflight JSON. Rejects stale hashes or blocking diagnostics and rolls back any partial failure.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "preflightHash": {
            "type": "string",
            "description": "Hash returned by preflight_road_network_proposal. Prefer this."
          },
          "preflight": {
            "$schema": "http://json-schema.org/draft-07/schema#",
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "string",
                "const": "1.0.0"
              },
              "proposal": {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "string",
                    "const": "1.0.0"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "sourceReferences": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "cad",
                            "pdf",
                            "ifc",
                            "terrain",
                            "survey",
                            "project"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "elementIds": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "transform": {
                          "type": "object",
                          "properties": {
                            "coordinateSpace": {
                              "type": "string",
                              "const": "scene"
                            },
                            "matrixWorld": {
                              "minItems": 16,
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            }
                          },
                          "required": [
                            "coordinateSpace",
                            "matrixWorld"
                          ]
                        },
                        "calibration": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "known",
                                "not-required",
                                "missing"
                              ]
                            },
                            "method": {
                              "type": "string",
                              "minLength": 1
                            },
                            "sceneMetresPerSourceUnit": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "reason": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "status"
                          ]
                        },
                        "coordinateReference": {
                          "type": "object",
                          "properties": {
                            "projectDefined": {
                              "type": "boolean"
                            },
                            "epsg": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "verticalDatum": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "originAOD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "projectDefined",
                            "epsg",
                            "verticalDatum",
                            "originAOD"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "id",
                        "name",
                        "elementIds",
                        "transform",
                        "calibration",
                        "coordinateReference"
                      ]
                    }
                  },
                  "candidateRoads": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "sourceRefIds": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "centreline": {
                          "type": "object",
                          "properties": {
                            "coordinateSpace": {
                              "type": "string",
                              "const": "scene"
                            },
                            "segments": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "line"
                                      },
                                      "sourceElementId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "start": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ]
                                      },
                                      "end": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "sourceElementId",
                                      "start",
                                      "end"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "arc"
                                      },
                                      "sourceElementId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "start": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ]
                                      },
                                      "end": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ]
                                      },
                                      "center": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ]
                                      },
                                      "radius": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      },
                                      "startAngleRadians": {
                                        "type": "number"
                                      },
                                      "endAngleRadians": {
                                        "type": "number"
                                      },
                                      "clockwise": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "sourceElementId",
                                      "start",
                                      "end",
                                      "center",
                                      "radius",
                                      "startAngleRadians",
                                      "endAngleRadians",
                                      "clockwise"
                                    ]
                                  }
                                ]
                              }
                            }
                          },
                          "required": [
                            "coordinateSpace",
                            "segments"
                          ]
                        },
                        "horizontalCurveEvidence": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "sourceElementId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "radius": {
                                "type": "number",
                                "exclusiveMinimum": 0
                              },
                              "sweepRadians": {
                                "type": "number"
                              },
                              "provenance": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "source",
                                      "caller-default",
                                      "project-default",
                                      "terrain-sample",
                                      "derived",
                                      "missing"
                                    ]
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "sourceRefId": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "required": [
                                  "kind",
                                  "description"
                                ]
                              }
                            },
                            "required": [
                              "sourceElementId",
                              "radius",
                              "sweepRadians",
                              "provenance"
                            ]
                          }
                        },
                        "verticalProfile": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "source-geometry",
                                "terrain-sampled",
                                "caller-default",
                                "project-default",
                                "missing"
                              ]
                            },
                            "points": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "chainage": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "level": {
                                    "type": "number"
                                  },
                                  "sourceRefId": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "required": [
                                  "chainage",
                                  "level"
                                ]
                              }
                            },
                            "coverage": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "provenance": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "caller-default",
                                    "project-default",
                                    "terrain-sample",
                                    "derived",
                                    "missing"
                                  ]
                                },
                                "description": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "sourceRefId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "description"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "points",
                            "coverage",
                            "provenance"
                          ]
                        },
                        "crossSection": {
                          "type": "object",
                          "properties": {
                            "leftChannelWidth": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "rightChannelWidth": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "provenance": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "caller-default",
                                    "project-default",
                                    "terrain-sample",
                                    "derived",
                                    "missing"
                                  ]
                                },
                                "description": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "sourceRefId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "description"
                              ]
                            }
                          },
                          "required": [
                            "provenance"
                          ]
                        },
                        "junctionDefaults": {
                          "type": "object",
                          "properties": {
                            "leftRadius": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "rightRadius": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "provenance": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "caller-default",
                                    "project-default",
                                    "terrain-sample",
                                    "derived",
                                    "missing"
                                  ]
                                },
                                "description": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "sourceRefId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "description"
                              ]
                            }
                          },
                          "required": [
                            "leftRadius",
                            "rightRadius",
                            "provenance"
                          ]
                        },
                        "intendedJunctionIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "confidence": {
                          "type": "object",
                          "properties": {
                            "horizontal": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "vertical": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "crossSection": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "topology": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            }
                          },
                          "required": [
                            "horizontal",
                            "vertical",
                            "crossSection",
                            "topology"
                          ]
                        },
                        "assumptions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "unresolvedDecisions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1
                              },
                              "path": {
                                "type": "string",
                                "minLength": 1
                              },
                              "message": {
                                "type": "string",
                                "minLength": 1
                              },
                              "blocking": {
                                "type": "boolean"
                              },
                              "requiredDecision": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "message",
                              "blocking",
                              "requiredDecision"
                            ]
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "sourceRefIds",
                        "centreline",
                        "horizontalCurveEvidence",
                        "verticalProfile",
                        "crossSection",
                        "intendedJunctionIds",
                        "confidence",
                        "assumptions",
                        "unresolvedDecisions"
                      ]
                    }
                  },
                  "intendedJunctions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "candidateRoadId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "candidateEnd": {
                          "type": "string",
                          "enum": [
                            "start",
                            "end"
                          ]
                        },
                        "hostRoadId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "hostChainage": {
                          "type": "number",
                          "minimum": 0
                        },
                        "hostSide": {
                          "type": "string",
                          "enum": [
                            "left",
                            "right"
                          ]
                        },
                        "leftRadius": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "rightRadius": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "junctionTo": {
                          "type": "string",
                          "enum": [
                            "channel",
                            "crown"
                          ]
                        },
                        "provenance": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "source",
                                "caller-default",
                                "project-default",
                                "terrain-sample",
                                "derived",
                                "missing"
                              ]
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1
                            },
                            "sourceRefId": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "kind",
                            "description"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "candidateRoadId",
                        "candidateEnd",
                        "hostRoadId",
                        "hostChainage",
                        "hostSide",
                        "leftRadius",
                        "rightRadius",
                        "provenance"
                      ]
                    }
                  },
                  "assumptions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "unresolvedEngineeringDecisions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1
                        },
                        "path": {
                          "type": "string",
                          "minLength": 1
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1
                        },
                        "blocking": {
                          "type": "boolean"
                        },
                        "requiredDecision": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "code",
                        "path",
                        "message",
                        "blocking",
                        "requiredDecision"
                      ]
                    }
                  }
                },
                "required": [
                  "schemaVersion",
                  "id",
                  "sourceReferences",
                  "candidateRoads",
                  "intendedJunctions",
                  "assumptions",
                  "unresolvedEngineeringDecisions"
                ]
              },
              "criteria": {
                "type": "object",
                "properties": {
                  "minimumRoadLength": {
                    "default": 0.5,
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "minimumHorizontalRadius": {
                    "default": 6,
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "maximumGradientPercent": {
                    "default": 8,
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "requireSurfaceCoverage": {
                    "default": false,
                    "type": "boolean"
                  },
                  "requireProjectCrs": {
                    "default": false,
                    "type": "boolean"
                  }
                }
              },
              "diagnostics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "severity": {
                      "type": "string",
                      "enum": [
                        "info",
                        "warning",
                        "error"
                      ]
                    },
                    "code": {
                      "type": "string",
                      "minLength": 1
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "path": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sourceRef": {
                      "type": "string",
                      "minLength": 1
                    },
                    "blocking": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "severity",
                    "code",
                    "message",
                    "path",
                    "blocking"
                  ]
                }
              },
              "preparedOperations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "operationId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "candidateRoadId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "roadId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "points": {
                      "minItems": 2,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          },
                          "z": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y",
                          "z"
                        ]
                      }
                    },
                    "curveRadii": {
                      "minItems": 2,
                      "type": "array",
                      "items": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "leftChannelWidth": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "rightChannelWidth": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "defaultBendRadius": {
                      "type": "number",
                      "minimum": 0
                    },
                    "sourceRefIds": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "sourceElementIds": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "junctions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "hostRoadId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "hostChainage": {
                            "type": "number",
                            "minimum": 0
                          },
                          "candidateEnd": {
                            "type": "string",
                            "enum": [
                              "start",
                              "end"
                            ]
                          },
                          "hostSide": {
                            "type": "string",
                            "enum": [
                              "left",
                              "right"
                            ]
                          },
                          "leftRadius": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "rightRadius": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "junctionTo": {
                            "type": "string",
                            "enum": [
                              "channel",
                              "crown"
                            ]
                          }
                        },
                        "required": [
                          "hostRoadId",
                          "hostChainage",
                          "candidateEnd",
                          "hostSide",
                          "leftRadius",
                          "rightRadius"
                        ]
                      }
                    }
                  },
                  "required": [
                    "operationId",
                    "candidateRoadId",
                    "roadId",
                    "name",
                    "points",
                    "curveRadii",
                    "leftChannelWidth",
                    "rightChannelWidth",
                    "sourceRefIds",
                    "sourceElementIds",
                    "junctions"
                  ]
                }
              },
              "automaticCrossingPlans": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "proposalHash": {
                "type": "string",
                "minLength": 1
              },
              "modelHash": {
                "type": "string",
                "minLength": 1
              },
              "preflightHash": {
                "type": "string",
                "minLength": 1
              },
              "readyToCommit": {
                "type": "boolean"
              }
            },
            "required": [
              "schemaVersion",
              "proposal",
              "criteria",
              "diagnostics",
              "preparedOperations",
              "automaticCrossingPlans",
              "proposalHash",
              "modelHash",
              "preflightHash",
              "readyToCommit"
            ]
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Commit road network proposal",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "road-topology",
            "vertical-profile",
            "selection"
          ],
          "risk": "high",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "execution"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "compare_built_roads_to_drawing",
      "description": "Numerically compare the roads currently in the model against the centrelines derived from the drawing: per-road mean and worst offset, length difference, drawn roads never modelled, and modelled roads with no drawn counterpart. Run this after building from a drawing — a screenshot cannot tell you a road sits a metre off the kerb line. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "cad",
              "pdf"
            ]
          },
          "edgeLayers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tolerance": {
            "type": "number",
            "minimum": 0.01,
            "maximum": 1,
            "description": "Mean offset allowed before a road counts as misplaced, metres. Default 0.1."
          },
          "stationSpacing": {
            "type": "number",
            "description": "Offset sampling spacing, metres. Default 5."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Compare built roads to drawing",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "validation",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "connect_drainage",
      "description": "Connect drainage elements together: gully to storm pipe, pipe to soakaway, or filter drain to pipe. This builds the drainage connectivity graph.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fromId": {
            "type": "string",
            "description": "Source element ID (gully, filter drain, or pipe)."
          },
          "toId": {
            "type": "string",
            "description": "Target element ID (pipe, soakaway, or outfall)."
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "gully-to-pipe",
              "pipe-to-soakaway",
              "pipe-to-outfall",
              "filter-to-pipe"
            ],
            "description": "Type of connection."
          }
        },
        "required": [
          "fromId",
          "toId"
        ]
      },
      "annotations": {
        "title": "Connect drainage",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "convert_junction_to_roundabout",
      "description": "Convert a junction zone into a closed-loop roundabout. Every arm keeps its existing alignment: the main road is split (or trimmed) and each side road is trimmed back to the ring edge on its own tangent, then re-joined to the ring with roundabout junctions. No road moves. Atomic and undoable. Set dryRun to validate the radius without mutating.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "zoneId": {
            "type": "string",
            "description": "Junction zone ID from inspect_junction_zones."
          },
          "radius": {
            "type": "number",
            "minimum": 2,
            "description": "Circulatory centreline radius in metres. Defaults to the smallest radius that clears the junction mouths."
          },
          "circulatoryWidthM": {
            "type": "number",
            "minimum": 3,
            "description": "Kerb-to-kerb circulatory width (default: host carriageway width, 6–12 m)."
          },
          "ipCount": {
            "type": "integer",
            "minimum": 4,
            "maximum": 48,
            "description": "IPs around the ring (default 8)."
          },
          "level": {
            "type": "number",
            "description": "Ring level in metres AOD (default: host centreline level at the zone centre)."
          },
          "name": {
            "type": "string",
            "description": "Roundabout road name."
          },
          "hostArmKerbRadiusM": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Kerb return radius for the two main-road arms (side arms keep their existing radii)."
          },
          "surveyAvailable": {
            "type": "boolean",
            "description": "Enable the builder grading default only when a designated survey exists."
          },
          "dryRun": {
            "type": "boolean",
            "description": "When true, validate and return the plan without changing the model."
          }
        },
        "required": [
          "zoneId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Convert junction to roundabout",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "copy_road_cross_section",
      "description": "Edit Road dialog \"Copy defaults from existing…\": copy another road's cross-section (carriageway, kerbs, footways, offset features, build-ups) and/or its design parameters (road class, design speed, design standard, default bend radius) onto a road. Like the dialog, the source must be the same kind (road→road, path→path) and must build pavement (not a grading line).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fromRoadId": {
            "type": "string",
            "description": "Template road to copy from."
          },
          "toRoadId": {
            "type": "string",
            "description": "Road that receives the copy."
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "crossSection",
                "designParams"
              ]
            },
            "uniqueItems": true,
            "description": "What to copy (default both, as the dialog does)."
          }
        },
        "additionalProperties": false,
        "required": [
          "fromRoadId",
          "toRoadId"
        ]
      },
      "annotations": {
        "title": "Copy road cross section",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "create_advanced_widening",
      "description": "Create live lane-shift, mitre, Mitre Bend, standalone-point, and grouped add-point widenings through deterministic public RoadDesignTool APIs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "preset": {
            "type": "string",
            "enum": [
              "lane-shift",
              "mitre-secondary",
              "mitre-arc",
              "mitre-bend",
              "point",
              "add-point"
            ]
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "offsetM": {
            "type": "number",
            "description": "Explicit channel offset for point/add-point; positive widening offset for compatible mitre presets. Not accepted for neutral lane-shift creation."
          },
          "radius": {
            "type": "number",
            "minimum": 0,
            "description": "Optional point fillet radius. Mitre Bend radii are derived from live bend geometry."
          },
          "ipIndex": {
            "type": "integer",
            "minimum": 0,
            "description": "Interior horizontal IP index for Mitre Bend."
          },
          "groupId": {
            "type": "string",
            "description": "Target widening group for add-point."
          },
          "chainage": {
            "type": "number",
            "description": "Point chainage for point/add-point."
          }
        },
        "required": [
          "roadId",
          "preset"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create advanced widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_build_up_span",
      "description": "Change the carriageway construction build-up over a chainage range — e.g. an \"industrial\" build-up through a bus stop or HGV access, or thicker base/sub-base across a soft-ground stretch. Start from a preset (get_road_spans lists them) and/or give layer thicknesses in mm. Spans must not overlap. Rendering: the base build-up is carved out over the span and the span's layers are extruded in its place.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "preset": {
            "type": "string",
            "description": "STANDARD_BUILDUPS key, e.g. residential, industrial, footway. Default: the road's current carriageway build-up."
          },
          "surfaceCourseMm": {
            "type": "number"
          },
          "binderCourseMm": {
            "type": "number"
          },
          "baseCourseMm": {
            "type": "number"
          },
          "subBaseMm": {
            "type": "number"
          },
          "cappingMm": {
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "startChainage",
          "endChainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create build up span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "create_checkpoint",
      "description": "Create a named checkpoint at the current state. Before multi-step operations (road networks, bulk lighting), create a checkpoint so you can rollback if things go wrong. Checkpoint names should be descriptive (e.g. \"before-network\", \"pre-lighting\").",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Descriptive checkpoint name (e.g. \"before-network\")"
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "title": "Create checkpoint",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "create_floor_plan",
      "description": "Create a 2D floor plan view (top-down orthographic). When construction levels exist, the plan cut is always at the first level's grid elevation (scene height); the height parameter is only used if there are no levels. Slice thickness is controlled by range. Useful for road layouts, utilities, and floor plans.\n\nPARAMETERS:\n- name: Human-readable name for the plan (e.g. \"Ground Floor Plan\", \"Road Layout Plan\")\n- height: Scene cut height in meters — used only when there are no construction levels (default: 0)\n- range: Thickness of the slice in meters — geometry within ±range/2 of the cut height is shown (default: 100)\n- observerHeight: Distance in meters from the cut plane to the camera along the view direction (default: 50).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the floor plan view"
          },
          "height": {
            "type": "number",
            "description": "Cut height (m, scene) — used only when no construction levels exist"
          },
          "range": {
            "type": "number",
            "description": "Slice thickness in meters (default: 100)"
          },
          "observerHeight": {
            "type": "number",
            "description": "Observer distance above the cut plane in meters (default: 50)"
          },
          "viewDepthAbove": {
            "type": "number",
            "description": "How far above the construction level the cut plane sits in meters (default: 20). Drawing snap stays at the level; geometry up to this height above remains visible."
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "title": "Create floor plan",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "create_hardstanding_grade_line",
      "description": "Add a grade line (breakline) the area surface folds along: kind grade, ridge, valley or channel, through existing nodes in order (labels or ids). Optionally re-level it: fill interpolate grades the middle nodes straight between the ends; fill gradient falls at ratio from the start or end node. Held nodes stay put.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "vertices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Two or more node labels / ids, in order."
          },
          "kind": {
            "type": "string",
            "enum": [
              "grade",
              "ridge",
              "valley",
              "channel"
            ],
            "description": "Default grade."
          },
          "fill": {
            "type": "string",
            "enum": [
              "none",
              "interpolate",
              "gradient"
            ],
            "description": "Default none."
          },
          "ratio": {
            "type": "number",
            "description": "For fill gradient: 1:N."
          },
          "from": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "For fill gradient. Default start."
          }
        },
        "required": [
          "vertices"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create hardstanding grade line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "create_interactive_road_marking_breakout",
      "description": "Compatibility name for deterministic breakout mutation: replace explicit zones, append one zone from start/end chainage plus road-relative offset points, or delete zones by ID. No mouse interaction is used.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "markingLineId": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "startChainage": {
                  "type": "number"
                },
                "endChainage": {
                  "type": "number"
                },
                "interpolation": {
                  "type": "string",
                  "enum": [
                    "linear",
                    "smooth"
                  ]
                },
                "visible": {
                  "type": "boolean"
                },
                "points": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "chainage": {
                        "type": "number"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "locked": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "chainage",
                      "offset"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "startChainage",
                "endChainage",
                "points"
              ],
              "additionalProperties": false
            }
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "zoneId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "interpolation": {
            "type": "string",
            "enum": [
              "linear",
              "smooth"
            ]
          },
          "visible": {
            "type": "boolean"
          },
          "points": {
            "type": "array",
            "description": "Explicit road-relative chainage/lateral-offset points. Boundary anchors are inserted if omitted.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "chainage": {
                  "type": "number"
                },
                "offset": {
                  "type": "number"
                }
              },
              "required": [
                "chainage",
                "offset"
              ],
              "additionalProperties": false
            }
          },
          "replaceExisting": {
            "type": "boolean",
            "description": "Replace all existing zones when creating one zone; defaults to append."
          },
          "deleteZoneIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "roadId",
          "markingLineId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create interactive road marking breakout",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "create_junction",
      "description": "Form a junction. kind picks the layout; each kind other than priority takes its own sub-object.\n- priority (default): join an END of an existing side road onto an existing main road at chainage (top-level fields). To create the side road and its junction together, use draw_road with connectToRoad instead.\n- crossroads: two legs from opposite sides at one chainage ({crossroads}). Legs are existing roads or new straight legs.\n- staggered: a left leg and a right leg at two chainages ({staggered}); stagger below minStaggerM is rejected.\n- roundabout: a closed circulatory ring with optional central island ({roundabout}); convert_junction_to_roundabout replaces an existing junction instead.\nComposites are atomic: a failed second leg rolls back the first. side is relative to increasing chainage on the MAIN road. Check junctionCreated / committed before you report success.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "priority",
              "crossroads",
              "staggered",
              "roundabout"
            ],
            "description": "Junction layout (default priority)."
          },
          "sideRoadId": {
            "type": "string",
            "description": "The road whose endpoint will be attached."
          },
          "mainRoadId": {
            "type": "string",
            "description": "The road being joined onto (the host). Gains the junction gap."
          },
          "chainage": {
            "type": "number",
            "description": "Chainage along the MAIN road where the junction forms. Must be inside its chainageRange."
          },
          "junctionEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "Which end of the side road attaches (default: the end already closest to the main road)."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Which side of the MAIN road the side road leaves from, relative to increasing chainage on the main road. Inferred from geometry if omitted."
          },
          "leftRadius": {
            "type": "number",
            "description": "Left kerb fillet radius in metres (default 6)."
          },
          "rightRadius": {
            "type": "number",
            "description": "Right kerb fillet radius in metres (default 6)."
          },
          "type": {
            "type": "string",
            "enum": [
              "priority",
              "roundabout",
              "signal",
              "grade-separated"
            ],
            "description": "Junction type (default \"priority\")."
          },
          "junctionTo": {
            "type": "string",
            "enum": [
              "channel",
              "crown",
              "outer-edge"
            ],
            "description": "Defaults to \"outer-edge\" for paths (isPath=true) when the main road has cross-section features on that side, and \"channel\" for regular roads. \"channel\": stops at the main road kerb line. \"crown\": runs through to the main road centreline at crown level. \"outer-edge\": connects to the outer edge of a host cross-section feature (footpath, verge, swale, etc.), keeping carriageway, kerb, and inboard features uncut; use junctionHostFeatureId to pick a specific feature."
          },
          "junctionHostFeatureId": {
            "type": "string",
            "description": "Optional host cross-section feature id (or presetGroupId) when junctionTo is \"outer-edge\". Omit to connect to the outermost cross-section feature on that side."
          },
          "xDistance": {
            "type": "number",
            "description": "Visibility splay X distance in metres, set back along the side road from the main road edge (default 2.4)."
          },
          "yDistance": {
            "type": "number",
            "description": "Visibility splay Y distance in metres, along the main road (default 43, the 30 mph value)."
          },
          "crossroads": {
            "type": "object",
            "properties": {
              "mainRoadId": {
                "type": "string",
                "description": "Host road id, referenceId or name."
              },
              "chainage": {
                "type": "number",
                "description": "Chainage on the main road where both legs meet (m)."
              },
              "leftLeg": {
                "type": "object",
                "properties": {
                  "roadId": {
                    "type": "string",
                    "description": "EXISTING road to join (its nearest end is moved onto the channel edge). Omit to draw a new leg."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for a NEW leg."
                  },
                  "lengthM": {
                    "type": "number",
                    "description": "Length of a NEW leg measured from the channel edge (default 40)."
                  },
                  "channelWidthM": {
                    "type": "number",
                    "description": "Channel width of a NEW leg (default 3.5)."
                  },
                  "leftRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "rightRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "designSpeed": {
                    "type": "number"
                  }
                },
                "additionalProperties": false,
                "description": "Leg leaving the LEFT of increasing chainage."
              },
              "rightLeg": {
                "type": "object",
                "properties": {
                  "roadId": {
                    "type": "string",
                    "description": "EXISTING road to join (its nearest end is moved onto the channel edge). Omit to draw a new leg."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for a NEW leg."
                  },
                  "lengthM": {
                    "type": "number",
                    "description": "Length of a NEW leg measured from the channel edge (default 40)."
                  },
                  "channelWidthM": {
                    "type": "number",
                    "description": "Channel width of a NEW leg (default 3.5)."
                  },
                  "leftRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "rightRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "designSpeed": {
                    "type": "number"
                  }
                },
                "additionalProperties": false,
                "description": "Leg leaving the RIGHT of increasing chainage."
              },
              "junctionType": {
                "type": "string",
                "enum": [
                  "priority",
                  "signal"
                ],
                "description": "Recorded junction type (default priority). \"signal\" labels the junction for place_signals_at_junction."
              }
            },
            "required": [
              "mainRoadId",
              "chainage"
            ],
            "additionalProperties": false,
            "description": "kind=crossroads: mainRoadId, chainage, leftLeg, rightLeg."
          },
          "staggered": {
            "type": "object",
            "properties": {
              "mainRoadId": {
                "type": "string"
              },
              "leftChainage": {
                "type": "number",
                "description": "Chainage of the LEFT leg."
              },
              "rightChainage": {
                "type": "number",
                "description": "Chainage of the RIGHT leg."
              },
              "leftLeg": {
                "type": "object",
                "properties": {
                  "roadId": {
                    "type": "string",
                    "description": "EXISTING road to join (its nearest end is moved onto the channel edge). Omit to draw a new leg."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for a NEW leg."
                  },
                  "lengthM": {
                    "type": "number",
                    "description": "Length of a NEW leg measured from the channel edge (default 40)."
                  },
                  "channelWidthM": {
                    "type": "number",
                    "description": "Channel width of a NEW leg (default 3.5)."
                  },
                  "leftRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "rightRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "designSpeed": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "rightLeg": {
                "type": "object",
                "properties": {
                  "roadId": {
                    "type": "string",
                    "description": "EXISTING road to join (its nearest end is moved onto the channel edge). Omit to draw a new leg."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for a NEW leg."
                  },
                  "lengthM": {
                    "type": "number",
                    "description": "Length of a NEW leg measured from the channel edge (default 40)."
                  },
                  "channelWidthM": {
                    "type": "number",
                    "description": "Channel width of a NEW leg (default 3.5)."
                  },
                  "leftRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "rightRadius": {
                    "type": "number",
                    "description": "Kerb-return radius (default 6)."
                  },
                  "designSpeed": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "junctionType": {
                "type": "string",
                "enum": [
                  "priority",
                  "signal"
                ]
              },
              "minStaggerM": {
                "type": "number",
                "description": "Reject staggers shorter than this (default 15). Set 0 to allow any."
              }
            },
            "required": [
              "mainRoadId",
              "leftChainage",
              "rightChainage"
            ],
            "additionalProperties": false,
            "description": "kind=staggered: mainRoadId, leftChainage, rightChainage, legs."
          },
          "roundabout": {
            "type": "object",
            "properties": {
              "centerX": {
                "type": "number",
                "description": "Ring centre X in project coordinates (scene X plus the project origin; +X east)."
              },
              "centerZ": {
                "type": "number",
                "description": "Ring centre Z in project coordinates (scene Z plus the project origin; +Z south)."
              },
              "centerLevel": {
                "type": "number",
                "description": "Ring level in metres AOD (default 0)."
              },
              "radius": {
                "type": "number",
                "minimum": 2,
                "description": "Circulatory centreline radius in metres."
              },
              "circulatoryWidthM": {
                "type": "number",
                "minimum": 3,
                "description": "Kerb-to-kerb circulatory width (default 7.5m)."
              },
              "name": {
                "type": "string",
                "description": "Road name."
              },
              "surveyAvailable": {
                "type": "boolean",
                "description": "Enable the builder grading default only when a designated survey is known to exist."
              },
              "centralIsland": {
                "type": "object",
                "description": "Layered landscaped/overrun island configuration.",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "overrunEnabled": {
                    "type": "boolean"
                  },
                  "islandKerbEnabled": {
                    "type": "boolean"
                  },
                  "useCarriagewayBuildUp": {
                    "type": "boolean"
                  },
                  "overrunInheritCarriagewaySurface": {
                    "type": "boolean"
                  },
                  "layers": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "cone",
                            "wall",
                            "overrun"
                          ]
                        },
                        "topDiameterM": {
                          "type": "number",
                          "minimum": 0
                        },
                        "widthM": {
                          "type": "number",
                          "minimum": 0
                        },
                        "sideGradeRatio": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "heightM": {
                          "type": "number",
                          "minimum": 0
                        },
                        "coneSizeBy": {
                          "type": "string",
                          "enum": [
                            "top-diameter",
                            "height"
                          ]
                        },
                        "surfaceColor": {
                          "type": "string",
                          "pattern": "^#[0-9a-fA-F]{6}$"
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "connectExistingApproachRoads": {
                "type": "boolean",
                "description": "When true, run the public proximity-based connection method after creating the ring."
              }
            },
            "required": [
              "centerX",
              "centerZ",
              "radius"
            ],
            "additionalProperties": false,
            "description": "kind=roundabout: centre, radius, width, island."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create junction",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_kerb_span",
      "description": "Change the kerb TYPE (and optionally height/width/material) over a chainage range on one or both sides — e.g. bullnose kerbs through a bus stop, splayed kerbs at a crossover, flush kerbs along a shared-surface stretch. Spans on the same side must not overlap; the tool rejects overlaps and out-of-range chainages. For a height-only drop (pedestrian/vehicle crossing) use create_road_transition_kerb instead.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ]
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped",
              "transition",
              "custom"
            ],
            "description": "Kerb profile inside the span."
          },
          "heightMm": {
            "type": "number",
            "description": "Upstand height (mm). Omit to inherit."
          },
          "widthMm": {
            "type": "number",
            "description": "Kerb width (mm). Omit to inherit."
          },
          "material": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ]
          },
          "color": {
            "type": "string",
            "description": "Hex colour override."
          },
          "unitLengthMm": {
            "type": "number",
            "description": "Kerb unit length (mm), e.g. 915."
          },
          "label": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "side",
          "startChainage",
          "endChainage",
          "kerbType"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create kerb span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "create_offset_feature_widening",
      "description": "Create a complete two-cap widening on one selected offset-feature channel through the deterministic public RoadDesignTool API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "featureId": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "inner",
              "outer",
              "inner-edge"
            ]
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "widthDelta": {
            "type": "number",
            "description": "Explicit extra channel width at both caps, in metres."
          },
          "radius": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "roadId",
          "side",
          "featureId",
          "channel",
          "startChainage",
          "endChainage",
          "widthDelta"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create offset feature widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_parking_lot",
      "description": "Create a Parking V2 car park inside an existing hardstanding Area (the area is the boundary). The solver lays out aisles and stalls immediately.\nPresets: ukRetail90, ukResidential, ukBusiness60OneWay, us90, us60OneWay, evHub, coachHgvYard. UK presets use 2.4×4.8 m bays with BS 8300 accessible provision; US presets use 9×18 ft bays with ADA 208.2.\nOptional overrides: regionPack, angleDeg (90/60/45/30/0), direction (twoWay/oneWay), targetCount.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Hardstanding area id or name to use as the boundary."
          },
          "name": {
            "type": "string",
            "description": "Car park name (default \"Car park N\")."
          },
          "presetId": {
            "type": "string",
            "enum": [
              "ukRetail90",
              "ukResidential",
              "ukBusiness60OneWay",
              "us90",
              "us60OneWay",
              "evHub",
              "coachHgvYard"
            ],
            "description": "Layout preset (default ukRetail90)."
          },
          "regionPack": {
            "type": "string",
            "enum": [
              "uk",
              "us"
            ],
            "description": "Override the preset rule pack."
          },
          "angleDeg": {
            "type": "number",
            "description": "Stall angle: 90 (perpendicular), 60, 45, 30 or 0 (parallel)."
          },
          "direction": {
            "type": "string",
            "enum": [
              "twoWay",
              "oneWay"
            ],
            "description": "Aisle direction."
          },
          "targetCount": {
            "type": "number",
            "description": "Target number of stalls (reported as target achieved %)."
          }
        },
        "required": [
          "areaId"
        ]
      },
      "annotations": {
        "title": "Create parking lot",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "create_pedestrian_crossing",
      "description": "Build a pedestrian crossing at a chainage as ONE composite: flush drop kerbs on BOTH footways over the crossing width, linked blister tactile paving on both sides (red L-shape for controlled zebra crossings, buff inline for uncontrolled crossings), zebra stripes across the carriageway (zebra kinds), broken give-way lines 1 m before the stripes on each approach lane, an optional raised table (raised-* kinds; ramps default 1:15), and optional warning signs on each approach verge facing oncoming traffic. Refuses chainages inside a junction mouth unless allowInKeepOut. Belisha beacons and zig-zag approach markings are NOT modelled by the engine yet — the receipt says so.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "chainage": {
            "type": "number",
            "description": "Centre of the crossing (m)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "zebra",
              "uncontrolled",
              "raised-zebra",
              "raised-uncontrolled"
            ],
            "description": "Default zebra. uncontrolled = drop kerbs only (no stripes)."
          },
          "widthM": {
            "type": "number",
            "description": "Crossing width along the road (m). Default 2.4 (zebra min), 3.0 for raised."
          },
          "tableHeightMm": {
            "type": "number",
            "description": "Raised table height (default 75)."
          },
          "rampLengthM": {
            "type": "number",
            "description": "Raised table ramp length (default 1.5 → ~1:20 at 75 mm; DMURS 1:15–1:20)."
          },
          "includeTactilePaving": {
            "type": "boolean",
            "description": "Attach linked tactile paving on both sides (default true)."
          },
          "includeSigns": {
            "type": "boolean",
            "description": "Place a warning sign on each approach (default true for zebra kinds)."
          },
          "signSetbackM": {
            "type": "number",
            "description": "Sign distance before the crossing on each approach (default 15)."
          },
          "allowInKeepOut": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean",
            "description": "Plan only; create nothing."
          }
        },
        "required": [
          "roadId",
          "chainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create pedestrian crossing",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_plan",
      "description": "Create a structured plan/todo list for a complex task. Call this FIRST when the user asks for something that requires multiple steps. Items should be short (≤8 words) and action-oriented. The plan is displayed visually in the chat.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Plan title (e.g. \"Design residential road network\")"
          },
          "items": {
            "type": "array",
            "description": "List of task items (2-10 items)",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "Short task description (e.g. \"Draw main road with 3 IPs\")"
                }
              },
              "required": [
                "title"
              ]
            }
          }
        },
        "required": [
          "title",
          "items"
        ]
      },
      "annotations": {
        "title": "Create plan",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "plan"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "create_road_bridge_span",
      "description": "Create a default short bridge span on a host road through the public confirmBridgeSpan API. The tool stores a chainage range, not invented geometry.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "name": {
            "type": "string"
          },
          "foundingLevel": {
            "type": "number"
          },
          "deckDepthMm": {
            "type": "number"
          }
        },
        "required": [
          "roadId",
          "startChainage",
          "endChainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create road bridge span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "create_road_from_ifc_alignment",
      "description": "Create a road from an IfcAlignment found by list_ifc_alignments. The IFC horizontal elements are kept as the segment boundaries: every CIRCULARARC becomes one PI with its true radius, LINEs become tangents, clothoids are approximated. Elevation from the 3D alignment is used for the IP levels when present (useElevation, default true) or a flat design level can be forced. Delegates creation to draw_road, so junction connection parameters behave exactly like draw_road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "description": "IFC model id. Optional when alignmentId is unique."
          },
          "alignmentId": {
            "type": "string",
            "description": "alignmentId from list_ifc_alignments."
          },
          "alignmentIndex": {
            "type": "number",
            "description": "Alternative to alignmentId: zero-based index within sourceId."
          },
          "name": {
            "type": "string",
            "description": "Road name. Defaults to the IFC alignment name."
          },
          "reverse": {
            "type": "boolean",
            "description": "Run chainage the opposite way to the IFC stationing."
          },
          "useElevation": {
            "type": "boolean",
            "description": "Use the 3D alignment elevation for IP levels (default true when available)."
          },
          "level": {
            "type": "number",
            "description": "Force a flat design level in metres (overrides useElevation)."
          },
          "applyModelTransform": {
            "type": "boolean",
            "description": "Default true; mirror the value that placed the alignment correctly in list_ifc_alignments."
          },
          "leftChannelWidth": {
            "type": "number",
            "description": "Left channel width in metres (default 3.5)."
          },
          "rightChannelWidth": {
            "type": "number",
            "description": "Right channel width in metres (default mirrors left)."
          },
          "designSpeed": {
            "type": "number"
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped"
            ]
          },
          "kerbHeight": {
            "type": "number"
          },
          "crossfall": {
            "type": "number"
          },
          "buildUpPreset": {
            "type": "string",
            "enum": [
              "residential",
              "industrial",
              "footway"
            ]
          },
          "connectToRoad": {
            "type": "string"
          },
          "connectAtChainage": {
            "type": "number"
          },
          "connectSide": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "connectionEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ]
          },
          "allowCrossings": {
            "type": "boolean"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Create road from ifc alignment",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "create_road_island",
      "description": "Create road islands through the live deterministic RoadDesignTool API. Preset mode supports every live island preset at an explicit anchor chainage; freeform mode accepts an explicit non-self-intersecting chainage/offset polygon.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "preset",
              "freeform"
            ]
          },
          "preset": {
            "type": "string",
            "enum": [
              "rectangular",
              "tapered",
              "diamond",
              "chevron",
              "rounded",
              "pinch-point",
              "partial-refuge",
              "staggered-twin",
              "circular",
              "bus-boarder",
              "lateral-deflection",
              "chicane",
              "cycle-bypass-chicane",
              "roundabout-splitter",
              "flush-mini-roundabout",
              "gateway",
              "ghost-island",
              "corner-bulb-out",
              "y-junction-splitter"
            ]
          },
          "anchorChainage": {
            "type": "number",
            "description": "Preset anchor chainage in metres."
          },
          "overrides": {
            "type": "object",
            "properties": {
              "lengthM": {
                "type": "number"
              },
              "taperM": {
                "type": "number"
              },
              "widthScale": {
                "type": "number"
              },
              "staggerSpacingM": {
                "type": "number"
              },
              "chicaneSpacingM": {
                "type": "number"
              },
              "circleRadiusM": {
                "type": "number"
              },
              "cornerRadiusM": {
                "type": "number"
              },
              "deflectionSide": {
                "type": "string",
                "enum": [
                  "left",
                  "right"
                ]
              },
              "upstreamLengthM": {
                "type": "number"
              },
              "upstreamWidthScale": {
                "type": "number"
              },
              "downstreamLengthM": {
                "type": "number"
              },
              "downstreamWidthScale": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "vertices": {
            "type": "array",
            "description": "Freeform plan polygon in road-relative chainage/offset coordinates.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Optional stable vertex ID; one is generated if omitted."
                },
                "chainage": {
                  "type": "number"
                },
                "offset": {
                  "type": "number",
                  "description": "Metres from centreline; negative is left and positive is right."
                },
                "radius": {
                  "type": "number"
                },
                "radiusOutward": {
                  "type": "boolean"
                }
              },
              "required": [
                "chainage",
                "offset"
              ],
              "additionalProperties": false
            }
          },
          "config": {
            "type": "object",
            "description": "Optional live Road Island drawer configuration fields.",
            "properties": {
              "name": {
                "type": "string"
              },
              "surfaceMaterial": {
                "type": "string",
                "enum": [
                  "concrete",
                  "asphalt",
                  "tactile"
                ]
              },
              "surfaceColor": {
                "type": "string"
              },
              "surfacePattern": {
                "type": "string",
                "enum": [
                  "herringbone",
                  "stretcher",
                  "basket",
                  "plain",
                  "diagonal"
                ]
              },
              "kerbConfig": {
                "type": "object",
                "additionalProperties": true
              },
              "kerbUpstandMm": {
                "type": "number",
                "description": "Island kerb upstand above the road (whole mm, as the drawer Upstand field). Not allowed on embedded islands, which sit flush."
              },
              "morphToRoadCrossSection": {
                "type": "boolean"
              },
              "heightAboveRoad": {
                "type": "number"
              },
              "isEmbedded": {
                "type": "boolean"
              },
              "beddingDepth": {
                "type": "number"
              },
              "beddingMaterial": {
                "type": "string",
                "enum": [
                  "concrete",
                  "sand"
                ]
              },
              "buildUp": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "roadId",
          "mode"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create road island",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_road_raised_feature",
      "description": "Create a raised table, speed bump/cushion, or road surfacing/HFS span in the shared raisedTables store through confirmRaisedTable. Either give startChainage/endChainage (custom span), or a single-click placementPreset plus anchorChainage to place the ribbon preset centred there (may create several cushions; every id is returned). All Raised Table / Speed Bump / Road Surfacing drawer fields are accepted.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "featureKind": {
            "type": "string",
            "enum": [
              "raised-table",
              "speed-bump",
              "road-surfacing"
            ],
            "description": "Optional when placementPreset is given."
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "anchorChainage": {
            "type": "number",
            "description": "Centre chainage for single-click placementPreset placement. Do not combine with startChainage/endChainage."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Raised tables use both; speed cushions left or right; surfacing any. Speed bump presets fix their own sides."
          },
          "heightMm": {
            "type": "number",
            "description": "Table/cushion height 1–500 mm, or surfacing thickness 1–20 mm."
          },
          "startRampLength": {
            "type": "number",
            "description": "Entry ramp length (m). Not for road surfacing."
          },
          "endRampLength": {
            "type": "number",
            "description": "Exit ramp length (m). Not for road surfacing."
          },
          "lateralRampLength": {
            "type": "number",
            "description": "Speed cushion side ramp length (m). Speed bumps only."
          },
          "material": {
            "type": "string",
            "enum": [
              "asphalt",
              "block-paving",
              "concrete",
              "high-friction-surfacing",
              "coloured-surfacing",
              "high-psv-asphalt"
            ],
            "description": "Raised tables and speed bumps: asphalt, block-paving, concrete. Road surfacing: high-friction-surfacing, coloured-surfacing, high-psv-asphalt (changing it resets colour to the material default unless color is supplied)."
          },
          "color": {
            "type": "string",
            "description": "Display colour as #RRGGBB."
          },
          "label": {
            "type": "string"
          },
          "rampProfile": {
            "type": "string",
            "enum": [
              "linear",
              "sinusoidal",
              "parabolic"
            ],
            "description": "Ramp shape. Not for road surfacing."
          },
          "fullWidth": {
            "type": "boolean",
            "description": "Channel-to-channel width. Speed bumps are never full width."
          },
          "extendIntoSecondaryChannels": {
            "type": "boolean",
            "description": "Extend into parking bays and other secondary channels. Not for road surfacing."
          },
          "inheritCrossSection": {
            "type": "boolean",
            "description": "Adopt the road camber/superelevation profile."
          },
          "innerOffset": {
            "type": "number",
            "description": "Speed bump centreline inset (m). Speed bumps only."
          },
          "outerOffset": {
            "type": "number",
            "description": "Speed bump channel-edge inset (m). Speed bumps only."
          },
          "wrapAtJunction": {
            "type": "boolean",
            "description": "Follow junction fillets and flared channels. Speed bumps only (raised tables always wrap)."
          },
          "showRampArrows": {
            "type": "boolean",
            "description": "Legacy master switch for every ramp arrow. Prefer rampArrows."
          },
          "rampArrows": {
            "type": "object",
            "description": "Upslope ramp arrows as in the drawer: start/end switch every arrow on that ramp; slots sets individual arrows by slotId from get_road_hosted_features raisedFeatureDetails[].rampArrowSlots. Ramps shorter than 0.35 m have no arrows. Not for road surfacing.",
            "properties": {
              "start": {
                "type": "boolean",
                "description": "Entry-ramp arrows."
              },
              "end": {
                "type": "boolean",
                "description": "Exit-ramp arrows."
              },
              "slots": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              }
            },
            "additionalProperties": false
          },
          "rampArrowThicknessMm": {
            "type": "number",
            "description": "Ramp-arrow paint thickness (mm, at least 1). Not for road surfacing."
          },
          "placementPreset": {
            "type": "string",
            "enum": [
              "uk-standard-table",
              "uk-raised-crossing",
              "custom-span",
              "uk-single-left",
              "uk-single-right",
              "uk-single-both",
              "uk-double-left",
              "uk-double-right",
              "uk-double-both",
              "uk-hfs-junction-50",
              "uk-hfs-junction-75",
              "uk-hfs-roundabout",
              "uk-hfs-ped-crossing",
              "uk-hfs-bend",
              "ie-hfs-junction-50",
              "uk-hfs-custom-span"
            ],
            "description": "Ribbon preset id (list_road_presets raisedFeatures). Must match the feature kind; sets the preset label unless label is supplied."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create road raised feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_road_tactile_paving",
      "description": "Create a tactile paving area on a road footway, either linked to an existing dropped kerb (transitionKerbId, auto-syncing P2..P3) or placed standalone by chainage range. Supports UK DfT Dec 2021, Ireland DMURS/TGD Part M, US ADA, AU/NZ and EU presets, L/T/U stems, curved bellmouth square-to-crossing back edge, and cycleway ladder/tramline splits.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Footway side (optional when transitionKerbId is supplied)."
          },
          "preset": {
            "type": "string",
            "enum": [
              "uk-controlled-inline",
              "uk-controlled-inset",
              "uk-uncontrolled-inline",
              "uk-uncontrolled-bellmouth",
              "uk-cycleway-split",
              "uk-corduroy-hazard",
              "ie-controlled-inline",
              "ie-uncontrolled-inline",
              "ie-uncontrolled-sideroad",
              "us-ada-warning",
              "au-tgsi-warning",
              "eu-iso-warning"
            ],
            "description": "Default uk-controlled-inline."
          },
          "transitionKerbId": {
            "type": "string",
            "description": "Optional dropped kerb ID to link and sync chainages with."
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage (m); optional when transitionKerbId is supplied."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage (m); optional when transitionKerbId is supplied."
          },
          "pattern": {
            "type": "string",
            "enum": [
              "blister",
              "corduroy",
              "ladder",
              "tramline",
              "guidance",
              "lozenge"
            ]
          },
          "shape": {
            "type": "string",
            "enum": [
              "rectangle",
              "l-shape",
              "t-shape",
              "u-shape",
              "cycleway-split"
            ]
          },
          "colourPreset": {
            "type": "string",
            "enum": [
              "red",
              "buff",
              "yellow",
              "charcoal",
              "grey",
              "custom"
            ]
          },
          "colorHex": {
            "type": "string",
            "description": "Optional custom hex colour (e.g. #b91c1c)."
          },
          "depthM": {
            "type": "number",
            "description": "Depth back from kerb (m); e.g. 1.2 m (3×400 mm) or 0.8 m (2×400 mm)."
          },
          "kerbSetbackM": {
            "type": "number",
            "description": "Setback behind back of kerb (m); 0 m for UK/IE."
          },
          "backEdgeMode": {
            "type": "string",
            "enum": [
              "parallel-to-kerb",
              "square-to-crossing"
            ]
          },
          "crossingAngleDeg": {
            "type": "number",
            "description": "Optional crossing angle (degrees) relative to kerb normal."
          },
          "tileSizeMm": {
            "type": "number",
            "description": "Tile module in mm (default 400)."
          },
          "stemSide": {
            "type": "string",
            "enum": [
              "start",
              "end",
              "center"
            ],
            "description": "Stem side for L/T-shape layouts."
          },
          "stemWidthM": {
            "type": "number",
            "description": "Stem width (m), e.g. 1.2 m (3×400 mm)."
          },
          "stemLengthM": {
            "type": "number",
            "description": "Stem length beyond main pad (m)."
          },
          "show3DStuds": {
            "type": "boolean",
            "description": "Render true 3D instanced tactile studs."
          },
          "label": {
            "type": "string"
          },
          "showPlanLabel": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create road tactile paving",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_road_transition_kerb",
      "description": "Create a drop/transition kerb from a stored road chainage range using the public confirmTransitionKerb API. Supports the Transition Kerb drawer profile: independent P2/P3 chainages and heights, style and offset-band drop-through.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "preset": {
            "type": "string",
            "enum": [
              "drop-flush",
              "vehicle-crossover"
            ]
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "normalKerbHeightMm": {
            "type": "number",
            "description": "P1/P4 kerb height (mm); defaults to the road kerb on that side."
          },
          "innerStartChainage": {
            "type": "number",
            "description": "P2 chainage (end of entry taper), at least 0.05 m inside startChainage."
          },
          "innerEndChainage": {
            "type": "number",
            "description": "P3 chainage (start of exit taper), at least 0.05 m inside endChainage and after P2."
          },
          "innerKerbHeightMm": {
            "type": "number",
            "description": "Legacy: sets both P2 and P3 kerb heights (mm). Prefer the independent fields."
          },
          "innerStartKerbHeightMm": {
            "type": "number",
            "description": "P2 kerb height above channel (mm, 0 = flush). Overrides innerKerbHeightMm for P2."
          },
          "innerEndKerbHeightMm": {
            "type": "number",
            "description": "P3 kerb height above channel (mm, 0 = flush). Overrides innerKerbHeightMm for P3."
          },
          "style": {
            "type": "string",
            "enum": [
              "standard",
              "rectangular",
              "triangular"
            ],
            "description": "Drop style: standard drops every offset band full depth."
          },
          "dropBackOfFootpath": {
            "type": "boolean",
            "description": "Legacy flag; derived from dropThroughOffsetFeatureCount > 0 like the drawer when omitted."
          },
          "dropThroughOffsetFeatureCount": {
            "type": "number",
            "description": "Offset bands (from the kerb outward) that follow the drop. Rectangular/triangular only; setting it on a standard kerb switches it to rectangular like the drawer band toggles."
          }
        },
        "required": [
          "roadId",
          "side",
          "preset",
          "startChainage",
          "endChainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create road transition kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "create_section",
      "description": "Create a 2D section view by defining a cut line through the model. The section cuts vertically along the line defined by two points (start and end). Default range is 0 (exact cut); increase range to include geometry in front of the plane.\n\nUse this for:\n- Road cross-sections at specific chainages\n- Utility trench sections showing pipe depths\n- Building sections through specific walls\n\nPARAMETERS:\n- name: Human-readable name (e.g. \"Section A-A\", \"Road Section at Ch.50\")\n- startPoint: {x, z} - Start of the section line in plan (scene coordinates)\n- endPoint: {x, z} - End of the section line in plan (scene coordinates)\n- range: How far past the cut plane to show (metres). 0 = exact cut only (default).\n\nThe view looks perpendicular to the line from start→end, showing a vertical slice of the model.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the section view"
          },
          "startPoint": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "Start scene-local X (m, +X east)"
              },
              "z": {
                "type": "number",
                "description": "Start scene-local Z (m, +Z south)"
              }
            },
            "required": [
              "x",
              "z"
            ]
          },
          "endPoint": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "End scene-local X (m, +X east)"
              },
              "z": {
                "type": "number",
                "description": "End scene-local Z (m, +Z south)"
              }
            },
            "required": [
              "x",
              "z"
            ]
          },
          "range": {
            "type": "number",
            "description": "View depth past the cut plane in metres (default: 0 = exact cut)"
          }
        },
        "required": [
          "name",
          "startPoint",
          "endPoint"
        ]
      },
      "annotations": {
        "title": "Create section",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "create_section_at_chainage",
      "description": "Create a cross-section view perpendicular to a road at a specific chainage. Automatically computes the section line position and orientation from the road geometry. Great for checking road build-up, utility depths, and cross-section geometry.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to cut across"
          },
          "chainage": {
            "type": "number",
            "description": "Chainage along the road in meters"
          },
          "name": {
            "type": "string",
            "description": "Section name (default: auto-generated)"
          },
          "width": {
            "type": "number",
            "description": "Section line width in meters — how far either side of centreline to cut (default: 20)"
          },
          "range": {
            "type": "number",
            "description": "View depth past the cut plane in metres (default: 0 = exact cut)"
          }
        },
        "required": [
          "roadId",
          "chainage"
        ]
      },
      "annotations": {
        "title": "Create section at chainage",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "delete_advanced_widening",
      "description": "Delete an advanced widening point or group through the public RoadDesignTool deletion methods.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "groupId": {
            "type": "string"
          },
          "pointId": {
            "type": "string"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete advanced widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_build_up_span",
      "description": "Remove a build-up span so the carriageway reverts to the road default build-up over that range.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "buildUpSpanId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "buildUpSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete build up span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "delete_chamber",
      "description": "Delete a chamber/manhole by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chamberId": {
            "type": "string"
          }
        },
        "required": [
          "chamberId"
        ]
      },
      "annotations": {
        "title": "Delete chamber",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "delete_grading_region",
      "description": "Delete a grading region. A region that runs through a junction is deleted on every road it crosses.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "regionId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "regionId"
        ]
      },
      "annotations": {
        "title": "Delete grading region",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "delete_hardstanding_grade_line",
      "description": "Remove a grade line from a hardstanding area. Node levels stay as they are. Confirm with the user first.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "lineId": {
            "type": "string"
          }
        },
        "required": [
          "lineId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete hardstanding grade line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "delete_ip_point",
      "description": "Delete one or more IP points from a road by index. Roads must keep at least 2 IPs (start and end).\nUse get_road_details to see current IP points with their indices.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "ipIndices": {
            "type": "array",
            "description": "Array of 0-based IP indices to delete",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "roadId",
          "ipIndices"
        ]
      },
      "annotations": {
        "title": "Delete ip point",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_island_drop_kerb",
      "description": "Delete one drop kerb from a traffic island kerb.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "islandId": {
            "type": "string",
            "minLength": 1
          },
          "dropKerbId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "islandId",
          "dropKerbId"
        ]
      },
      "annotations": {
        "title": "Delete island drop kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "delete_junction",
      "description": "Break the junction at one end of a road, leaving BOTH roads in place. The main road's junction gap and kerb fillets are removed and both roads are rebuilt as plain carriageways.\n\nUse this instead of delete_road when you only need to undo a junction — for example after create_junction attached the wrong end or the wrong side. The side road keeps its alignment, so its endpoint is left sitting on the main road's channel edge; move it with move_ip_point if the road should no longer reach the main road at all.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "The SIDE road that owns the junction (not the main road)."
          },
          "junctionEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "Which end of the side road carries the junction."
          }
        },
        "required": [
          "roadId",
          "junctionEnd"
        ]
      },
      "annotations": {
        "title": "Delete junction",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_kerb_span",
      "description": "Remove a kerb span so the side reverts to the road default kerb over that range.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "kerbSpanId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "kerbSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete kerb span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "delete_light",
      "description": "Delete a public light or sign by its ID or reference ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lightId": {
            "type": "string",
            "description": "Light ID to delete"
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID (e.g. L01) — alternative to lightId"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Delete light",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "delete_lights_bulk",
      "description": "Delete multiple lights at once. Provide an array of light IDs, or use roadId to delete ALL lights associated with a specific road, or use deleteAll to remove every light in the scene.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lightIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of light IDs to delete"
          },
          "referenceIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of reference IDs (e.g. [\"L01\",\"L02\"]) to delete"
          },
          "roadId": {
            "type": "string",
            "description": "Delete ALL lights placed along this road ID"
          },
          "deleteAll": {
            "type": "boolean",
            "description": "Set to true to delete ALL lights in the scene"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Delete lights bulk",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "delete_offset_feature_widening",
      "description": "Delete an offset-feature widening: both caps of a zone (groupId), or one point (pointId).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "groupId": {
            "type": "string"
          },
          "pointId": {
            "type": "string",
            "description": "A single point; a zone cap deletes its whole zone."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete offset feature widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_parking_lot",
      "description": "Delete a car park (undoable). The hardstanding area itself is kept.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name."
          }
        },
        "required": [
          "lotId"
        ]
      },
      "annotations": {
        "title": "Delete parking lot",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "delete_pipe",
      "description": "Delete a pipe/underground service by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "The polyline ID of the pipe to delete"
          }
        },
        "required": [
          "pipeId"
        ]
      },
      "annotations": {
        "title": "Delete pipe",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "delete_road",
      "description": "Delete a road from the scene by its ID or name. Junctions connected to this road will be cleaned up automatically.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to delete (from get_scene_summary or get_road_details)"
          },
          "roadName": {
            "type": "string",
            "description": "Road name to delete (alternative to roadId). Case-insensitive match."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Delete road",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_road_bridge_span",
      "description": "Delete a bridge span through the public deleteBridgeSpan API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "bridgeSpanId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "bridgeSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road bridge span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "delete_road_gully",
      "description": "Delete a persisted road-native gully through updateRoad.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "gullyId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "gullyId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road gully",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "delete_road_island",
      "description": "Delete an existing road island through the public deleteIsland API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "islandId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "islandId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road island",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_road_marking",
      "description": "Delete one road marking item from a cloned complete config and commit it through applyRoadMarkings.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "collection": {
            "type": "string",
            "enum": [
              "markingLines",
              "markingGroups",
              "arrows",
              "textMarkings",
              "symbols",
              "hatchingAreas",
              "zigzags",
              "stopLines",
              "freeformSVGMarkings"
            ]
          },
          "markingId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "collection",
          "markingId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road marking",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "delete_road_raised_feature",
      "description": "Delete a raised table, speed cushion, or surfacing/HFS item from raisedTables.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "raisedFeatureId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "raisedFeatureId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road raised feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_road_tactile_paving",
      "description": "Delete a stored tactile paving area through the public deleteTactilePaving API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "tactilePavingId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "tactilePavingId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road tactile paving",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_road_transition_kerb",
      "description": "Delete a stored transition kerb through the public deleteTransitionKerb API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "transitionKerbId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "transitionKerbId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete road transition kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_roundabout",
      "description": "Delete a closed-loop roundabout road using RoadDesignTool.deleteRoad. Ordinary roads and junction records are rejected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Closed-loop roundabout road ID."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Delete roundabout",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_superelevation",
      "description": "Delete a superelevation (vertical transition) zone from a road or path by its transition ID. Use get_road_details to see existing superelevation zones and their IDs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road or path ID"
          },
          "transitionId": {
            "type": "string",
            "description": "Vertical transition ID to delete (from get_road_details)"
          }
        },
        "required": [
          "roadId",
          "transitionId"
        ]
      },
      "annotations": {
        "title": "Delete superelevation",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_view",
      "description": "Delete a plan or section view by its ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "viewId": {
            "type": "string",
            "description": "View ID to delete"
          }
        },
        "required": [
          "viewId"
        ]
      },
      "annotations": {
        "title": "Delete view",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "delete_vip_point",
      "description": "Delete one or more VIP points from a road by index. Roads must keep at least 2 VIPs (start and end levels).\nUse get_road_details to see current VIP points with their indices.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "vipIndices": {
            "type": "array",
            "description": "Array of 0-based VIP indices to delete",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "roadId",
          "vipIndices"
        ]
      },
      "annotations": {
        "title": "Delete vip point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "delete_widening",
      "description": "Delete a widening zone (all points in a group) or a single widening point. Use get_road_details to find group IDs and point IDs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "groupId": {
            "type": "string",
            "description": "Delete all points in this widening group"
          },
          "pointId": {
            "type": "string",
            "description": "Delete a single widening point (alternative to groupId)"
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Delete widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "derive_road_centrelines_from_drawing",
      "description": "Derive ordered road centrelines from the drawing's kerb or channel lines, then stitch them into a network and report junction candidates with chainage and side. This is how you get an alignment out of a drawing — a drawing shows kerbs, never centrelines. method \"channels\" pairs kerbs locally, fills the carriageway, bridges driveway and junction-mouth breaks, and skeletonises it, so it copes with broken kerbs, loop roads and kerbs split across layers; \"pairs\" pairs whole strokes; \"auto\" (default) keeps whichever explains more. Where a layout draws one kerb on the footway layer, pass that layer in supportLayers. Returns points in scene metres ready for draw_road source=\"dense-polyline\". Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "cad",
              "pdf"
            ]
          },
          "edgeLayers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Explicit kerb/edge layer names. Omit to use the classifier result."
          },
          "centrelineLayers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Layers already holding drawn centrelines; these are passed through unpaired."
          },
          "supportLayers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Layers that may hold the far kerb (footway or path edges) but never start a road on their own. Omit to use the layers classified as footway. Channels method only."
          },
          "method": {
            "type": "string",
            "enum": [
              "auto",
              "channels",
              "pairs"
            ],
            "description": "Default auto."
          },
          "maxGap": {
            "type": "number",
            "description": "Longest kerb break or junction mouth bridged, metres. Default 25. Channels method only."
          },
          "minConfidence": {
            "type": "number",
            "description": "Drop centrelines below this confidence (0-1), with their junctions, before the evidence is stored. Use it to leave out drives and bays once you have checked them visually. Default 0, keep all."
          },
          "minWidth": {
            "type": "number",
            "description": "Narrowest carriageway to accept, metres. Default 3."
          },
          "maxWidth": {
            "type": "number",
            "description": "Widest carriageway to accept, metres. Default 15."
          },
          "stationSpacing": {
            "type": "number",
            "description": "Sampling spacing along the edge, metres. Default 5."
          },
          "includeFootways": {
            "type": "boolean",
            "description": "Also pair footway edges. Default false."
          },
          "limit": {
            "type": "number",
            "description": "Maximum centrelines returned, longest first. Default 25."
          },
          "maxPointsPerCentreline": {
            "type": "number",
            "description": "Default 200."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Derive road centrelines from drawing",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "derive_road_centrelines_from_ifc_surfaces",
      "description": "Read roads that an IFC model carries as corridor surfaces (\"R1 - Road\", \"R1 - Kerb\", \"R1 - Path\", Civil 3D style; no IfcAlignment). For each road it derives the carriageway centreline with levels sampled from the IFC surface, the carriageway width, footway and verge widths, and the junctions where one road ends on another. Returns drawRoad arguments for draw_road source=\"dense-polyline\"; draw hosts first, then each joining road with connectToRoad + connectAtChainage (read from resolve_location on the built host at junctionPoint) + connectSide + connectionEnd. Use list_ifc_alignments first when the IFC has real alignments. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "description": "IFC model id from get_model_scene_sources. Default: every IFC model."
          },
          "roads": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only these road names (case-insensitive), e.g. [\"R1\"]. Default: every road found."
          },
          "cellSizeM": {
            "type": "number",
            "minimum": 0.05,
            "maximum": 2,
            "description": "Plan raster cell, metres (default 0.25). Smaller is more exact and slower."
          },
          "spacingM": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 20,
            "description": "Centreline point spacing, metres (default 2)."
          },
          "minLengthM": {
            "type": "number",
            "minimum": 1,
            "description": "Ignore centreline pieces shorter than this (default 8)."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Derive road centrelines from ifc surfaces",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "describe_object",
      "description": "Everything about one object: label, kind, plan point and bounding box, road position (road, chainage, side, offset), key attributes and kind-specific detail (road ends and bearings, light facing bearing, pipe vertices and chambers, chamber levels, junction radii). Use before editing something the user names.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "string",
            "description": "Object label (R1, L4, C2), id, referenceId or exact name."
          }
        },
        "required": [
          "target"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Describe object",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "describe_road_build_up",
      "description": "Read-only. Pavement and construction build-ups for a road as structured stacks (layer name, material, thickness, depth to top, total) plus plain text: carriageway (and chainage build-up spans), widening groups, secondary channels, kerbs (bed, haunch, kerb spans), offset features, islands, raised tables, bridge decks. With chainage, only what applies there.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, reference or name."
          },
          "chainage": {
            "type": "number",
            "description": "Optional: limit to stacks active at this chainage."
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Describe road build up",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "dolly_camera",
      "description": "Dolly the camera forward or backward (zoom in/out toward the target point). This changes the camera-to-target distance. The target stays fixed.\n\n- distance: new camera-to-target distance in meters (e.g. 5 = very close, 50 = medium, 200 = far)\n- OR use delta to adjust relative to current distance (positive = move closer, negative = move further)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "distance": {
            "type": "number",
            "description": "Absolute distance from target in meters (e.g. 10 = 10m away)"
          },
          "delta": {
            "type": "number",
            "description": "Relative change: positive = closer, negative = further (meters)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Dolly camera",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "draw_aco_channel",
      "description": "Draw a Storm or Foul ACO Channel (slot drain) from a leading edge to a trailing edge, with its outlet lateral to the storm/foul main, exactly as the ribbon tool does. A storm or foul main must already exist. clickLevel sets the grate height at each end like the ribbon Click level: surface (visible surface under each end, hidden layers skipped), a grid level, or a manual elevation. Minimum run 0.5 m.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "network": {
            "type": "string",
            "enum": [
              "storm",
              "foul"
            ],
            "description": "Main to connect to."
          },
          "start": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "z"
            ],
            "additionalProperties": false,
            "description": "Leading edge, scene-local plan point (m)."
          },
          "end": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "z"
            ],
            "additionalProperties": false,
            "description": "Trailing edge, scene-local plan point (m)."
          },
          "clickLevel": {
            "type": "object",
            "description": "Height the points land at, same as the ribbon Click level. Default surface.",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "surface",
                  "grid-level",
                  "manual"
                ],
                "description": "surface: the highest visible surface straight under the point (IFC slab or roof, road, hardstanding, ground; hidden layers skipped). Inside a building that is the roof unless upper storeys are hidden, so use grid-level for a floor slab. grid-level: a flat plane at a construction level. manual: a flat plane at elevationM."
              },
              "gridLevel": {
                "type": "string",
                "description": "Grid level id or name, for grid-level."
              },
              "elevationM": {
                "type": "number",
                "description": "Project elevation in metres (as shown in Levels), for manual."
              }
            },
            "additionalProperties": false
          },
          "widthMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 500,
            "description": "Slot width (default 100)."
          },
          "depthMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 1000,
            "description": "Channel body depth (default 100)."
          },
          "outletEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "End that connects to drainage (default end)."
          },
          "pipeDiameterMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 600,
            "description": "Lateral diameter (default 110)."
          },
          "fallGradient": {
            "type": "number",
            "minimum": 10,
            "maximum": 500,
            "description": "Lateral fall 1:N (default 100)."
          },
          "startOffsetMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 3000,
            "description": "Drop below the top before the graded run (default 300)."
          },
          "connectionStrategy": {
            "type": "string",
            "enum": [
              "auto",
              "main-only"
            ],
            "description": "auto: tee into a nearby lateral inside the local radius, otherwise trunk to the main (default). main-only: always trunk to the main."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "network",
          "start",
          "end"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Draw aco channel",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "draw_pipe",
      "description": "Draw an underground pipe using manual vertex positions. Use ONLY for pipes that do NOT follow a road (e.g. cross-connections between roads, service connections to buildings).\nFor road-following pipes, ALWAYS use draw_pipe_along_road instead — it handles curves, elevation, and crossfall automatically.\n\n⚠️ GRAVITY PIPE RULES (SW, FS, W):\nStorm Water (SW), Foul Sewer (FS), and Water Main (W) are RIGID straight-run pipes:\n  - NO curves — only sharp-angle direction changes at vertices.\n  - SW and FS: You MUST place a chamber (create_chamber) at EVERY intermediate vertex where the pipe changes direction.\n  - Keep vertices to only the essential bend/direction-change points — do NOT add interpolation vertices.\n\nFlexible/duct services (E, PL, T, F, G) CAN use curves and bends without chambers.\n\nUTILITY TYPE IDs: W=Water, SW=Storm Water, FS=Foul Sewer, G=Gas, E=Electric, PL=Public Lighting, T=Telecom, F=Fibre",
      "inputSchema": {
        "type": "object",
        "properties": {
          "vertices": {
            "type": "array",
            "description": "Vertex array. Each vertex: {x, y, z} in scene space. y should be negative for underground.",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "y",
                "z"
              ]
            },
            "minItems": 2
          },
          "utilityType": {
            "type": "string",
            "description": "Utility type ID or name: W, SW, FS, G, E, PL, T, F"
          },
          "diameter": {
            "type": "number",
            "description": "Pipe diameter in mm (default per utility type)."
          },
          "material": {
            "type": "string",
            "description": "Pipe material (default per utility type)."
          },
          "color": {
            "type": "string",
            "description": "Hex color (default per utility type)."
          },
          "minimumBendRadius": {
            "type": "number",
            "description": "Minimum bend radius in mm."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "vertices",
          "utilityType"
        ]
      },
      "annotations": {
        "title": "Draw pipe",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "draw_pipe_along_road",
      "description": "Draw an underground pipe/service that follows a road's 3D alignment (curves, elevation profile, crossfall). Depth is RELATIVE TO THE ROAD SURFACE, not an absolute elevation.\n\nUTILITY TYPE IDs: W=Water, SW=Storm Water, FS=Foul Sewer, G=Gas, E=Electric, PL=Public Lighting, T=Telecom, F=Fibre. Street lighting conduits use \"PL\", NOT \"E\".\n\nGRAVITY/RIGID PIPES (SW, FS, W):\n  - STRAIGHT RUNS ONLY: no curves or bend radii; every change of direction is a sharp angle, preserved exactly.\n  - SW and FS need a CHAMBER at EVERY change of direction: after drawing, call create_chamber at each intermediate vertex/IP. Chambers at water-main bends are optional.\n  - Set sampleInterval high (e.g. 999) so vertices sit only at start, end and direction changes.\nFlexible/duct services (E, PL, T, F, G) may curve and need no chambers at bends.\n\nPOSITIONING (from centreline). Omit BOTH \"side\" and \"lateralOffset\" for the standard trench offset:\n  W left, channelWidth + 1.0 m | SW channel edge, channelWidth + 0.5 m | FS right, channelWidth + 1.5 m | G left, channelWidth + 0.5 m\n  E right, channelWidth + 2.0 m | PL channelWidth + 2.5 m (near light poles) | T right, channelWidth + 1.8 m | F right, channelWidth + 1.9 m\n  \"side\": snap to left-channel, right-channel, left-edge, right-edge or centre.\n  \"lateralOffset\": exact metres from centreline (positive = left, negative = right).\n\nDEPTH: positive metres below the road surface at the pipe's offset (0.9 = 900 mm cover); omitted = the utility's standard depth. Vertices align to road bends and follow the vertical profile.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to follow"
          },
          "utilityType": {
            "type": "string",
            "description": "Utility type ID or name: W, SW, FS, G, E, PL, T, F"
          },
          "side": {
            "type": "string",
            "enum": [
              "left-channel",
              "right-channel",
              "left-edge",
              "right-edge",
              "centre"
            ],
            "description": "Snap to a named road feature. Default: left-channel."
          },
          "lateralOffset": {
            "type": "number",
            "description": "Exact offset from centreline in meters. Positive=left, negative=right. Overrides side if both provided."
          },
          "depth": {
            "type": "number",
            "description": "Depth below road surface in meters (positive value, e.g. 0.9 for 900mm cover). Default: standard depth per utility type."
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage (default: start of road)"
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage (default: end of road)"
          },
          "sampleInterval": {
            "type": "number",
            "description": "Distance between vertices in meters (default: 2m). Smaller = smoother curves."
          },
          "diameter": {
            "type": "number",
            "description": "Pipe diameter in mm (default per utility type)"
          },
          "material": {
            "type": "string",
            "description": "Pipe material (default per utility type)"
          },
          "color": {
            "type": "string",
            "description": "Hex color (default per utility type)"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "utilityType"
        ]
      },
      "annotations": {
        "title": "Draw pipe along road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "draw_road",
      "description": "Create a road or path (isPath) from points in scene-local metres {x east, y level, z south}.\n- source \"ips\" (default): points are IPs (tangent intersections). The road curves round middle IPs at the design-speed radius, so two points give a straight road; add a middle IP only where the road turns.\n- source \"dense-polyline\": points are a traced centreline (query_pdf_scene ROAD_CENTRELINES or a selected polyline); the tool fits lines and arcs and places the IPs (fit tolerances).\n- T-junction: pass connectToRoad + connectAtChainage + connectSide + connectionEnd together. That end snaps to the host channel edge and is terminal.\n- Crossroads: omit connectToRoad and draw straight through a single-carriageway host; the tool splits it into two side roads with their own junctions.\nTo join two existing roads use create_junction. Read junctionCreated / junctionFailureReason in the result; never report a junction that did not form.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "ips",
              "dense-polyline"
            ],
            "description": "How to read points (default ips)."
          },
          "points": {
            "type": "array",
            "description": "At least 2 points, scene-local metres. IPs for source=ips; the traced polyline for source=dense-polyline.",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number",
                  "description": "X coordinate (scene space)"
                },
                "y": {
                  "type": "number",
                  "description": "Y coordinate / elevation (scene space)"
                },
                "z": {
                  "type": "number",
                  "description": "Z coordinate (scene space)"
                },
                "curveRadius": {
                  "type": "number",
                  "description": "Circular curve radius in metres at this PI. 0 or omit = sharp / terminal. Do not invent a radius for every vertex of a tessellated polyline — collapse to Arc PIs first."
                }
              },
              "required": [
                "x",
                "z"
              ],
              "additionalProperties": false
            }
          },
          "name": {
            "type": "string",
            "description": "Road name (e.g. \"Main Street\", \"Side Road 01\"). Auto-generated if omitted."
          },
          "leftChannelWidth": {
            "type": "number",
            "description": "Left channel width in meters (default 3.5)"
          },
          "rightChannelWidth": {
            "type": "number",
            "description": "Right channel width in meters (default mirrors left)"
          },
          "designSpeed": {
            "type": "number",
            "description": "Design speed in km/h (default 50)"
          },
          "junctionLeftRadius": {
            "type": "number",
            "description": "Left fillet radius for auto-junctions (default 6m)"
          },
          "junctionRightRadius": {
            "type": "number",
            "description": "Right fillet radius for auto-junctions (default 6m)"
          },
          "connectToRoad": {
            "type": "string",
            "description": "Main road ID to join. The tool resolves the channel-edge position at connectAtChainage — never compute it yourself. REQUIRES connectAtChainage."
          },
          "connectAtChainage": {
            "type": "number",
            "description": "Chainage ALONG THE MAIN ROAD where the junction forms. Must be inside the main road's chainageRange (get_road_details) — out-of-range is rejected, not clamped. REQUIRED whenever connectToRoad is given."
          },
          "connectSide": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Which side of the MAIN road the new road leaves from, relative to increasing chainage on the main road (face increasing chainage: left is your left). Not relative to the new road. If omitted it is inferred from the new road's own geometry."
          },
          "connectionEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "Which end of the NEW road is the junction: \"start\" = points[0], \"end\" = last point (default: start). That IP is terminal — no points beyond it."
          },
          "junctionTo": {
            "type": "string",
            "enum": [
              "channel",
              "crown",
              "outer-edge"
            ],
            "description": "Where a declared junction connects to the main road. Defaults to \"outer-edge\" for paths (isPath=true) when the main road has cross-section features on that side, and \"channel\" for regular roads. \"channel\" stops at the main road kerb line. \"crown\" runs through to the main road centreline at crown level. \"outer-edge\" connects to the outer edge of a cross-section feature (footpath, verge, swale, etc.), leaving the main road carriageway, kerb, and inboard features uncut; use junctionHostFeatureId to pick a specific feature (defaults to the outermost feature)."
          },
          "junctionHostFeatureId": {
            "type": "string",
            "description": "Optional host cross-section feature id (or presetGroupId) when junctionTo is \"outer-edge\". Omit to connect to the outermost cross-section feature on that side."
          },
          "allowCrossings": {
            "type": "boolean",
            "description": "Set true ONLY when the user has explicitly confirmed an over/underpass. Default false: an undeclared at-grade through crossing is split automatically into independent side-road segments terminating at opposite channel edges."
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped"
            ],
            "description": "Kerb type for both sides (default: half-battered)"
          },
          "kerbHeight": {
            "type": "number",
            "description": "Kerb upstand height in mm (default: 125)"
          },
          "kerbMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ],
            "description": "Kerb material (default: concrete)"
          },
          "crossfall": {
            "type": "number",
            "description": "Channel crossfall ratio e.g. 40 = 1:40 (default: 40)"
          },
          "buildUpPreset": {
            "type": "string",
            "enum": [
              "residential",
              "industrial",
              "footway"
            ],
            "description": "Build-up construction layers preset (default: residential for roads, footway for paths)"
          },
          "isPath": {
            "type": "boolean",
            "description": "Set true to create a path (footpath/cycleway) instead of a road. Paths use narrower defaults: 1.8m width, flush kerbs, footway build-up, 0m bend radius. Default: false."
          },
          "dualCarriageway": {
            "type": "boolean",
            "description": "Create a motorway corridor: a master alignment plus two linked carriageway roads and a central reserve. Join slip roads onto a carriageway, never the master."
          },
          "centralReserveWidth": {
            "type": "number",
            "description": "Central reserve width in metres when dualCarriageway is true (default 2.5)."
          },
          "followLevels": {
            "type": "boolean",
            "description": "source=dense-polyline only. Default true: fit the vertical profile to the points' y levels when they vary; false keeps only the end levels."
          },
          "fit": {
            "type": "object",
            "description": "source=dense-polyline only: line/arc fitting tolerances.",
            "properties": {
              "lineToleranceM": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Max offset from a line segment (default 0.25 m)."
              },
              "arcToleranceM": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Max radial offset from an arc (default 0.35 m)."
              },
              "minArcAngleDeg": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 180,
                "description": "Smallest sweep treated as a curve (default 6°)."
              }
            },
            "additionalProperties": false
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "points"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Draw road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "draw_road_preset",
      "description": "Draw an alignment with one of the Roads/Earthworks create presets. existing-junction:* draws a kerb (with optional footpath or verge) along an EXISTING surveyed channel edge so a new road can junction onto it (Roads > Existing Junction): put the points on the existing channel line. grading-line:* draws a grading line that shapes ground and builds nothing (plain, bermLandscape, bundAcoustic, bundContainment, pond, detentionBasin, swale, ditch, levelPad). Points are scene space {x, y, z} like draw_road. For an ordinary road or path use draw_road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "existing-junction:kerbLeft",
              "existing-junction:kerbRight",
              "existing-junction:kerbFootpathLeft",
              "existing-junction:kerbFootpathRight",
              "existing-junction:kerbVergeLeft",
              "existing-junction:kerbVergeRight",
              "grading-line:plain",
              "grading-line:bermLandscape",
              "grading-line:bundAcoustic",
              "grading-line:bundContainment",
              "grading-line:pond",
              "grading-line:detentionBasin",
              "grading-line:swale",
              "grading-line:ditch",
              "grading-line:levelPad"
            ]
          },
          "points": {
            "type": "array",
            "minItems": 2,
            "maxItems": 500,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ]
            }
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "surveyIds": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Grading lines: surveys to grade towards (default every designated survey)."
          },
          "platformHalfWidthM": {
            "type": "number",
            "minimum": 0,
            "maximum": 200,
            "description": "Grading lines: graded platform half-width (gradingEdgeOffsetM)."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "additionalProperties": false,
        "required": [
          "preset",
          "points"
        ]
      },
      "annotations": {
        "title": "Draw road preset",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "edit_superelevation",
      "description": "Edit an existing superelevation (crossfall transition) zone. Use get_road_details to find the transition ID and current values.\nYou can change any combination of parameters — only provide the ones you want to update.\n- startChainage/endChainage: move the hold zone\n- side: switch to left or right\n- targetCrossfall: change the crossfall ratio (positive=crown, negative=banking)\n- leadInDistance/leadOutDistance: change taper lengths",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road or path ID"
          },
          "transitionId": {
            "type": "string",
            "description": "Existing transition ID to edit (from get_road_details)"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Which side (only if changing)"
          },
          "startChainage": {
            "type": "number",
            "description": "New hold zone start chainage (only if changing)"
          },
          "endChainage": {
            "type": "number",
            "description": "New hold zone end chainage (only if changing)"
          },
          "targetCrossfall": {
            "type": "number",
            "description": "New target crossfall ratio (only if changing)"
          },
          "leadInDistance": {
            "type": "number",
            "description": "New lead-in taper distance in meters (only if changing)"
          },
          "leadOutDistance": {
            "type": "number",
            "description": "New lead-out taper distance in meters (only if changing)"
          }
        },
        "required": [
          "roadId",
          "transitionId"
        ]
      },
      "annotations": {
        "title": "Edit superelevation",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "extract_pdf_layer_svg",
      "description": "Extract SVG geometry from a specific PDF layer (OCG group). Call with no layerName to get the list of available layers with element counts. Call with a layerName to get that layer's content as compact SVG. This lets you inspect one layer at a time — e.g. \"SURFACE_FOOTWAY\", \"ROAD_CENTRELINE\", \"KERB_LINE\" — keeping context small and focused.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID (from snapshot). Omit for first PDF."
          },
          "layerName": {
            "type": "string",
            "description": "Layer/OCG group name to extract. Omit to list all available layers."
          },
          "filter": {
            "type": "string",
            "enum": [
              "lines",
              "fills",
              "text",
              "all"
            ],
            "description": "Element type filter (default: all)"
          },
          "pageNumber": {
            "type": "number",
            "description": "PDF page number (default: 1)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Extract pdf layer svg",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "extract_pdf_vectors",
      "description": "Extract vector geometry from a PDF overlay and return it as a compact SVG string. The SVG contains paths, rects, and text elements in scene-space coordinates — the AI can read the layout like structured code. Filter by element type or color. Scene-space coordinates in the SVG can be used directly with draw_road, draw_pipe, etc.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID (from scene snapshot). Omit to use first loaded PDF."
          },
          "filter": {
            "type": "string",
            "enum": [
              "lines",
              "fills",
              "text",
              "all"
            ],
            "description": "Type of elements to extract (default: all)"
          },
          "colorFilter": {
            "type": "string",
            "description": "Only extract elements of this color (e.g. \"red\", \"blue\", \"black\")"
          },
          "region": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "description": "Only extract within this scene-space bounding box"
          },
          "pageNumber": {
            "type": "number",
            "description": "PDF page number (default: 1)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Extract pdf vectors",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "extract_road_network_proposal",
      "description": "Compile a typed RoadNetworkProposal from either the immutable evidenceId returned by derive_road_centrelines_from_drawing or explicit loaded-scene CAD/PDF/IFC element references. Prefer evidenceId for road drawings. Never echo centreline geometry through the model. Returns proposalId/proposalHash; unresolved engineering values require project/user defaults with provenance.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "minLength": 1
          },
          "sources": {
            "default": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "cad",
                    "pdf",
                    "ifc"
                  ]
                },
                "sourceId": {
                  "type": "string",
                  "minLength": 1
                },
                "elementIds": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              },
              "required": [
                "kind",
                "sourceId",
                "elementIds"
              ]
            }
          },
          "evidenceId": {
            "type": "string",
            "minLength": 1
          },
          "defaults": {
            "type": "object",
            "properties": {
              "leftChannelWidth": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "rightChannelWidth": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "level": {
                "type": "number"
              },
              "junctionLeftRadius": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "junctionRightRadius": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "provenance": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "caller-default",
                      "project-default"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "kind",
                  "description"
                ]
              },
              "evidenceConfirmation": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "confirmedBy": {
                    "type": "string",
                    "const": "user"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "confirmed",
                  "confirmedBy",
                  "description"
                ]
              }
            },
            "required": [
              "provenance"
            ]
          },
          "terrain": {
            "type": "object",
            "properties": {
              "sourceId": {
                "type": "string",
                "minLength": 1
              },
              "interval": {
                "default": 5,
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1000
              }
            },
            "required": [
              "sourceId"
            ]
          }
        },
        "$schema": "http://json-schema.org/draft-07/schema#",
        "required": [
          "proposalId"
        ]
      },
      "annotations": {
        "title": "Extract road network proposal",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "timeoutMs": 180000,
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "proposal"
          ],
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "find_objects",
      "description": "Find scene objects of any kind (roads, junctions, lights, signs, signals, pipes, chambers, gullies, ACO channels, builders work holes (bwh), buildings, areas, parking, IFC models, drawings, surveys). Filter by kind, text (name/ref/attribute), distance from a point or another object, a plan box, a road and chainage window, side, or attribute values (for example attrs {utilityType:\"SW\"}). Returns one compact record per object with label, plan point and road position, nearest first when near/nearObject is set. Paginated.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "road",
                "junction",
                "light",
                "sign",
                "signal",
                "pipe",
                "chamber",
                "gully",
                "channel",
                "bwh",
                "building",
                "area",
                "parking",
                "model",
                "drawing",
                "survey"
              ]
            },
            "description": "Kinds to include. Omit for every kind."
          },
          "text": {
            "type": "string",
            "description": "Case-insensitive match on label, name, referenceId or attribute values."
          },
          "near": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "z"
            ],
            "additionalProperties": false,
            "description": "Scene-local plan point (m)."
          },
          "nearObject": {
            "type": "string",
            "description": "Search around this object. Object label (R1, L4, C2), id, referenceId or exact name."
          },
          "radiusM": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 5000,
            "description": "Radius for near/nearObject in metres (default 20)."
          },
          "within": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "required": [
              "minX",
              "minZ",
              "maxX",
              "maxZ"
            ],
            "additionalProperties": false,
            "description": "Scene-local plan box (m); objects that overlap it."
          },
          "road": {
            "type": "string",
            "description": "Only objects on or attached to this road (label, id or name)."
          },
          "chainageFrom": {
            "type": "number",
            "description": "Chainage window start on that road (m)."
          },
          "chainageTo": {
            "type": "number",
            "description": "Chainage window end on that road (m)."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Side of increasing chainage."
          },
          "attrs": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean"
              ]
            },
            "description": "Exact attribute matches, for example {\"utilityType\":\"SW\"}."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "Page size (default 50)."
          },
          "cursor": {
            "type": "string",
            "description": "nextCursor from the previous page."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Find objects",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "find_placement_slots",
      "description": "Free chainage intervals on a road where a feature of a given type can go, after removing junction mouths (+ type-specific clearance), transition kerbs, raised tables, islands, bridge spans and existing same-kind assets (min spacing). Returns slots per requested side with lengths, the exclusions that carved them, and the lateral offset to use for kerb-back / verge placement. Use before place_sign_on_road / place_light_on_road / place_assets_along_road / create_road_island / create_pedestrian_crossing.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "featureType": {
            "type": "string",
            "enum": [
              "sign",
              "light",
              "signal",
              "bollard",
              "building",
              "gully",
              "bus-stop",
              "crossing",
              "island",
              "raised-table",
              "transition-kerb",
              "generic"
            ]
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Side(s) relative to increasing chainage. Default both."
          },
          "fromChainage": {
            "type": "number"
          },
          "toChainage": {
            "type": "number"
          },
          "junctionClearanceM": {
            "type": "number",
            "description": "Override the keep-out beyond each junction mouth (m)."
          },
          "featureClearanceM": {
            "type": "number",
            "description": "Override clearance around kerb/table features (m)."
          },
          "minSpacingM": {
            "type": "number",
            "description": "Override min spacing to existing same-kind assets (m)."
          },
          "minSlotLengthM": {
            "type": "number",
            "description": "Drop slots shorter than this (m)."
          },
          "setbackFromKerbM": {
            "type": "number",
            "description": "Setback behind the kerb face used to compute the suggested lateral offset (default 0.5)."
          }
        },
        "required": [
          "roadId",
          "featureType"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Find placement slots",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "focus_parking_lot",
      "description": "Select a car park, open its drawer and pan the camera to it (or to a stall if stallKey is given).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string"
          },
          "stallKey": {
            "type": "string"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Focus parking lot",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "forget_memory",
      "description": "Delete a stored memory by key. Use when a preference is no longer relevant.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Key of the memory to delete"
          }
        },
        "required": [
          "key"
        ]
      },
      "annotations": {
        "title": "Forget memory",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_camera_state",
      "description": "Get the current camera position, target (look-at point), and distance. Useful for understanding where the camera is before making adjustments.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Get camera state",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_capabilities",
      "description": "Return the engine capability manifest: what the live model can build (road geometry, chainage features, junction composites, kerb/build-up spans, lights/signs/signals, roadside buildings), which tools do it, what is explicitly NOT modelled, perception (PDF/CAD/IFC) status, and the autonomy budgets. Call this before promising a feature you are unsure about, or when a user asks \"can you…\". Read-only and cheap.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "area": {
            "type": "string",
            "enum": [
              "all",
              "roads",
              "junctions",
              "assets",
              "buildings",
              "perception",
              "autonomy",
              "tools"
            ],
            "description": "Narrow the manifest (default all)."
          },
          "includeToolNames": {
            "type": "boolean",
            "description": "List tool names per scope group (default false; counts only)."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get capabilities",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_chainage_annotation_settings",
      "description": "Return the complete serialisable chainage annotation settings for one road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Get chainage annotation settings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_chamber_details",
      "description": "Get details of all chambers/manholes in the scene, or a specific chamber by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chamberId": {
            "type": "string",
            "description": "Optional chamber ID for specific details"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get chamber details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "get_chamber_wall_openings",
      "description": "Pipe openings in chamber walls, solved analytically from the model: for each connected pipe the face (rectangles) or bearing round the ring, offset from the internal left corner, opening width × height on the inside face, invert/centre levels, skew and height above the floor. Tags (O1, I1…) match the schedule's Openings Plan / Wall Openings drawings.\n\nPass reference or chamberId for one chamber, or neither for a summary of every chamber with warnings. Each chamber carries a selfCheck: meshFloorDeltaMm (3D mesh floor vs config invert), trimInsetDeltaMm (solver's outside face vs where the pipe tool trims the pipe), outerFaceOffWallMm (outside-face point distance from the outer wall), quotedInvertDeltaMm (solver vs network wall-face invert, pipes trimmed at the wall) and untrimmedVertexOffsetMm (how far the true wall crossing sits from the vertex level the network quotes for pipes that run to the chamber centre; informational).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "reference": {
            "type": "string",
            "description": "Chamber reference, e.g. \"SMH04\""
          },
          "chamberId": {
            "type": "string"
          },
          "includeOutline": {
            "type": "boolean",
            "description": "Include each opening outline on the developed inside face (default false)"
          },
          "includeInputs": {
            "type": "boolean",
            "description": "Include the raw pipe inputs the solver read: vertex, direction, quoted level, inset, grade (default false)"
          },
          "limit": {
            "type": "number",
            "description": "Summary mode: most chambers to list (default 600)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get chamber wall openings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "get_drainage_network",
      "description": "Return the full drainage network as a connected graph: all storm/foul pipes with flow direction, gullies and their connections, chambers/manholes, outfalls/headwalls, and soakaways. Flags disconnected sections and gravity issues.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Get drainage network",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "get_hardstanding_levels",
      "description": "Every node of a hardstanding area with plan x/z, level (project datum), held flag, road tie and any drawing level it came from; grade lines with end levels and fall; and the fall check report. Read this before changing levels.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get hardstanding levels",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "get_junction_details",
      "description": "Get detailed junction geometry for a road: intersection point coordinates, main road chainage, side road endpoints, corner radii, taper lengths, and junction type. Currently junctions only show chainage in scene context — this tool gives full coordinates.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to get junction details for."
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Get junction details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "validation",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit",
          "road-network"
        ]
      }
    },
    {
      "name": "get_lighting_details",
      "description": "Get details of all public lights and signs in the scene, including positions, styles, pole heights, and conduit connections.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Get lighting details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "get_model_scene_sources",
      "description": "List already-imported CAD layouts, PDF overlays/pages, IFC models, and terrain/survey surfaces. This is read-only and never imports attachments. Results are deterministic and paginated.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "all",
              "cad",
              "pdf",
              "ifc",
              "terrain"
            ]
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get model scene sources",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "get_network_summary",
      "description": "Get a comprehensive summary of the entire road network including all roads, their junctions, widening zones, curve locations, and available connection points.\n\nThis is the BEST tool to call before planning a new road network extension. It returns:\n- Every road with its chainage range, channel widths, and bearing at start/end\n- All existing junctions and where they connect\n- Widening zones with their chainage ranges\n- IP curves with their radii\n- Suggested connection points (every 20m along each road's channel edges)\n\nCall this ONCE at the start of network planning to understand the current layout.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "suggestedConnectionInterval": {
            "type": "number",
            "description": "Interval in meters for suggested connection points (default: 20)"
          }
        }
      },
      "annotations": {
        "title": "Get network summary",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "get_parking_lot",
      "description": "Full detail for one car park: rules, stall types and calc methods, circulation, islands, furniture, metrics, axis candidates and per-stall list (optional). Use lotId or the lot name; omit to use the selected lot.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "includeStalls": {
            "type": "boolean",
            "description": "Include every stall (key, type, centre, number). Default false."
          },
          "includeCandidates": {
            "type": "boolean",
            "description": "Include the ranked row-axis candidates. Default true."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get parking lot",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "get_pdf_color_zones",
      "description": "Detect color zones in a PDF overlay — groups filled regions by color and returns bounding polygons. Use to identify building footprints (gray), green spaces (green), water features (blue), road surfaces (black/dark gray), etc.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID"
          },
          "colors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter to specific colors (e.g. [\"green\", \"blue\"]). Omit for all."
          },
          "pageNumber": {
            "type": "number",
            "description": "PDF page (default: 1)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get pdf color zones",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "get_pdf_coordinate",
      "description": "Convert a point on an already-imported PDF page to scene-space coordinates. Use with query_pdf_scene or analyze_pdf_overlay. Provide PDF page coordinates (points, origin bottom-left) and receive scene-space {x,y,z}.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID"
          },
          "pdfX": {
            "type": "number",
            "description": "X coordinate in PDF points (from left edge)"
          },
          "pdfY": {
            "type": "number",
            "description": "Y coordinate in PDF points (from bottom edge)"
          },
          "pixelX": {
            "type": "number",
            "description": "Alternative: pixel X from rendered image (requires renderScale)"
          },
          "pixelY": {
            "type": "number",
            "description": "Alternative: pixel Y from rendered image (requires renderScale)"
          },
          "renderScale": {
            "type": "number",
            "description": "Scale factor used when rendering (default: 2)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get pdf coordinate",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "get_pipe_details",
      "description": "Get detailed information about all pipes/underground services in the scene, or a specific pipe by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "Optional pipe/polyline ID to get details for a specific pipe"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get pipe details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "get_pipe_flow_gradient",
      "description": "Compute longitudinal gradient between each pair of vertices for gravity pipes (Storm Water, Foul Sewer, Water). Flags sections with gradient below minimum (0.5% for storm, 1% for foul) and adverse gradients (uphill flow). Returns invert levels at each vertex.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "Pipe ID to analyze. If omitted, analyzes all gravity pipes."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Get pipe flow gradient",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "get_relationships",
      "description": "How one object relates to the rest of the scene: its parent and children (road → junctions/buildings, pipe → chambers), linked objects, the previous and next object of the same kind along the same road side, and the nearest other objects.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "string",
            "description": "Object label (R1, L4, C2), id, referenceId or exact name."
          },
          "nearbyRadiusM": {
            "type": "number",
            "minimum": 1,
            "maximum": 500,
            "description": "Radius for nearby objects (default 15 m)."
          }
        },
        "required": [
          "target"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get relationships",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_road_advanced_details",
      "description": "Read a road’s complete serialisable configuration or selected bounded nested sections. Includes corridor membership, full traffic-calming/surfacing records, islands, bridges, marking IDs, drainage/gullies, grading, annotations, offset features and offset-feature widenings.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "includeFullConfig": {
            "type": "boolean",
            "description": "Include the complete JSON-safe RoadConfiguration."
          },
          "sections": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "identity",
                "alignments",
                "crossSection",
                "crossSectionVariations",
                "corridor",
                "transitionKerbs",
                "raisedTables",
                "islands",
                "bridgeSpans",
                "markingRefs",
                "gullies",
                "drainage",
                "grading",
                "annotations",
                "offsetFeatures",
                "offsetFeatureWidenings",
                "widenings",
                "junctions",
                "superelevation"
              ]
            },
            "description": "Nested sections to return. Omit to return every section."
          },
          "maxItemsPerSection": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "description": "Array bound, default 100."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Get road advanced details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "get_road_alignment_report",
      "description": "Alignment report for ONE road, the same numbers as the Alignment report schedule. Horizontal: every IP with its requested radius and the built curve (radius, turn, arc length, tangent length, deflection, chord, external, TC/CT chainage) plus straights with bearing. Vertical: every VIP with chainage, level and its crest/sag curve (length, K value, grades in/out, turning point) plus each grade. Camber: left/right channel crossfall. Checks: radius against the absolute and desirable minimum for the road's design speed and standard, clamped radii and curve lengths, overlapping curves, K below the road's design crest/sag K, steep and flat grades. Use it to review a design or after changing IPs, VIPs, design speed or standard.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "maxGradePercent": {
            "type": "number",
            "description": "Flag grades steeper than this (default 8)."
          },
          "minGradePercent": {
            "type": "number",
            "description": "Flag grades flatter than this for channel drainage (default 0.5)."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road alignment report",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_road_bridge_span_config",
      "description": "Read the full stored BridgeSpanConfig of one bridge span (every Bridge Span drawer field: levels, deck recipe/girders/voids/haunch, abutments, supports, footprint, reinforcement, furniture, structural system settings, upstands, member overrides), plus derived levels (deck top, soffit, effective deck depth), schedules when built, and the member keys that set_road_bridge_member_override accepts. Use before patch_road_bridge_span.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "spanId": {
            "type": "string",
            "description": "Bridge span id (see get_road_corridor_map or get_scene_snapshot)."
          },
          "includeMemberKeys": {
            "type": "boolean",
            "description": "List the editable member keys (default true)."
          }
        },
        "required": [
          "roadId",
          "spanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road bridge span config",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "get_road_contours",
      "description": "Read road contours as data: marches the road mesh triangles (top surface by default) at absolute levels on the Styles contour grid for each component (road/island use Roads spacing, kerb uses Kerbs, footpath/widening/verge/swale use Footpaths, grading uses Grading) unless majorIntervalM/minorIntervalM override it. Returns per road and component the elevation range and, per level, isMajor, line count, closed count, total length and per-line length/point count/start/end (optional points, capped). Use it to check falls, ponding (closed loops), and that levels match the design. Never changes the scene.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road to inspect. Omit for every road."
          },
          "components": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "road",
                "island",
                "kerb",
                "footpath",
                "widening",
                "verge",
                "swale",
                "grading"
              ]
            },
            "description": "Components to contour (default all)."
          },
          "majorIntervalM": {
            "type": "number",
            "minimum": 0.001,
            "description": "Override the major interval (metres)."
          },
          "minorIntervalM": {
            "type": "number",
            "minimum": 0.001,
            "description": "Override the minor interval (metres)."
          },
          "surface": {
            "type": "string",
            "enum": [
              "top",
              "all"
            ],
            "description": "top = wearing surface (default, as the overlay); all = every triangle."
          },
          "visibleOnly": {
            "type": "boolean",
            "description": "Skip hidden meshes (default false)."
          },
          "includePoints": {
            "type": "boolean",
            "description": "Include polyline points [x,y,z] (default false)."
          },
          "maxPointsPerLine": {
            "type": "integer",
            "minimum": 2,
            "maximum": 2000,
            "description": "Downsample cap per line (default 100)."
          },
          "maxLinesPerLevel": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "Lines listed per level, longest first (default 10)."
          },
          "maxLevels": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2000,
            "description": "Levels listed per component (default 200)."
          },
          "bounds": {
            "type": "object",
            "additionalProperties": false,
            "description": "Plan window in scene metres; a triangle or contour segment is kept when its centroid/midpoint is inside.",
            "properties": {
              "minX": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "required": [
              "minX",
              "maxX",
              "minZ",
              "maxZ"
            ]
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road contours",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_road_corridor_map",
      "description": "Situational awareness for ONE road in a single call: an ordered chainage timeline of junction mouths, transition/drop kerbs, raised tables, speed bumps, surfacing, islands, widenings, bus lay-bys, superelevation and channel transitions, kerb and build-up spans, bridges, gullies, horizontal and vertical elements, cross-section widths, attached lights/signs/signals/buildings, keep-out zones and FREE chainage slots per side. Feature and point ids are the ids the update_* tools take.\n\nCall this BEFORE placing anything along a road or answering \"what is at chainage X\". Prefer it over find_objects for road questions. Use fromChainage/toChainage to window a long road.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "fromChainage": {
            "type": "number",
            "description": "Optional window start (m)."
          },
          "toChainage": {
            "type": "number",
            "description": "Optional window end (m)."
          },
          "junctionClearanceM": {
            "type": "number",
            "description": "Keep-out beyond each junction mouth when deriving free slots (default 5)."
          },
          "includeFreeSlots": {
            "type": "boolean",
            "description": "Include per-side free slots (default true)."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road corridor map",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_road_design_review",
      "description": "Full design review pack for ONE road in one call: the alignment report (IPs and radii, VIPs and K values, grades, camber, standard checks) plus every item on the road grouped by kind with chainage, side and offset — junctions (type, kerb radii, mouth span), lights, signs, signals, buildings, speed bumps, raised tables, surfacing, drop kerbs, islands, widenings with every point (chainage, offset, radius), lay-bys, offset-feature widenings, superelevation / channel transitions, kerb and build-up spans, bridges and gullies (enabled and disabled). Adds position checks: traffic-calming inside a junction mouth, stacked lights, every gully disabled. Use it when asked to review, check or sign off a road; then render_road_plan_svg / render_road_long_section_svg or capture_plan_view to see it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "maxGradePercent": {
            "type": "number",
            "description": "Flag grades steeper than this (default 8)."
          },
          "minGradePercent": {
            "type": "number",
            "description": "Flag grades flatter than this (default 0.5)."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road design review",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_road_details",
      "description": "Get detailed information about a specific road or path including IP points, VIP points, cross-section config, offset features, build-up layers, widenings, superelevation zones, junctions, and design parameters. Works for both roads and paths (isPath flag).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "The road ID. Use get_scene_summary first to find available road IDs."
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Get road details",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "validation",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit",
          "road-network"
        ]
      }
    },
    {
      "name": "get_road_geometry",
      "description": "Get road geometry sampled every N meters. Supports a single roadId OR an array of roadIds to batch multiple roads in one call. Returns scene-space points with centreline, channel edges, and road edges at each chainage. Use interval=2 for curves, 5-10 for straight roads. Returned edge coordinates can be used DIRECTLY as pipe vertices.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Single road ID (use this OR roadIds, not both)"
          },
          "roadIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of road IDs to batch in one call (use this OR roadId)"
          },
          "interval": {
            "type": "number",
            "minimum": 0.25,
            "maximum": 100,
            "description": "Sampling interval in meters (default 10). Smaller = more detail at curves."
          }
        }
      },
      "annotations": {
        "title": "Get road geometry",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit"
        ]
      }
    },
    {
      "name": "get_road_grading",
      "description": "Return the normalised, serialisable grading settings for one road, including independent sides, survey IDs, steps (with any retained-face spec on a step) and regions.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Get road grading",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "get_road_hosted_features",
      "description": "Read immutable stored road-hosted transition kerbs (incl. independent P2/P3 inner heights and gradients), raised tables/speed cushions/surfacing (ramp profile, width, insets, junction wrap, preset, ramp-arrow slots), bridge spans, islands (kerb upstand, roundabout-arm link), road-native gullies/settings/catchments, and road marking config. No geometry is inferred.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "includeMarkings": {
            "type": "boolean",
            "description": "Include the potentially large road marking config."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road hosted features",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit"
        ]
      }
    },
    {
      "name": "get_road_markings",
      "description": "Get an immutable clone of the road-native marking configuration.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road markings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "get_road_native_drainage",
      "description": "Read immutable road-native gully settings, persisted gullies, and chainage catchments from RoadConfiguration (not drainageTools ephemeral maps).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road native drainage",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "get_road_spans",
      "description": "List kerb-type spans and carriageway build-up spans on a road, plus the effective kerb type / build-up at an optional chainage. Use before create_kerb_span / create_build_up_span to avoid overlaps.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "atChainage": {
            "type": "number",
            "description": "Report the effective kerb (both sides) and build-up at this chainage."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road spans",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "get_road_triangulation",
      "description": "Read the road TIN as numbers, from the same mesh buffers the Styles → Triangulation wireframe draws. Per road and component (road, island, kerb, footpath, widening, verge, swale, grading): mesh, vertex and triangle counts, world bbox, min/max elevation, degenerate (≈zero area) and sliver (small minimum angle) counts, edge lengths, facing counts and areas. Optional capped triangle list (world xyz, scene metres) — use triangleFilter \"problem\" to list only degenerate/sliver triangles. Filter with bounds (plan window) or chainageRange (needs roadId). Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road to inspect. Omit for every road."
          },
          "components": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "road",
                "island",
                "kerb",
                "footpath",
                "widening",
                "verge",
                "swale",
                "grading"
              ]
            },
            "description": "Components to include (default all)."
          },
          "surface": {
            "type": "string",
            "enum": [
              "all",
              "top"
            ],
            "description": "all = every triangle the wireframe shows (default); top = wearing surface only."
          },
          "visibleOnly": {
            "type": "boolean",
            "description": "Skip hidden meshes (default false)."
          },
          "includeTriangles": {
            "type": "boolean",
            "description": "Return a capped triangle list (default false)."
          },
          "triangleFilter": {
            "type": "string",
            "enum": [
              "all",
              "problem"
            ],
            "description": "problem = only degenerate or sliver triangles."
          },
          "maxTriangles": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2000,
            "description": "Triangle list cap (default 100)."
          },
          "includeMeshes": {
            "type": "boolean",
            "description": "Return per-mesh rows (capped at 50 per road)."
          },
          "sliverAngleDeg": {
            "type": "number",
            "description": "Minimum-angle threshold for a sliver (default 5°)."
          },
          "degenerateAreaM2": {
            "type": "number",
            "description": "Area threshold for a degenerate triangle (default 1e-6 m²)."
          },
          "bounds": {
            "type": "object",
            "additionalProperties": false,
            "description": "Plan window in scene metres; a triangle or contour segment is kept when its centroid/midpoint is inside.",
            "properties": {
              "minX": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "required": [
              "minX",
              "maxX",
              "minZ",
              "maxZ"
            ]
          },
          "chainageRange": {
            "type": "object",
            "additionalProperties": false,
            "description": "Chainage window in metres (requires roadId); centroids are projected onto the road centreline.",
            "properties": {
              "start": {
                "type": "number"
              },
              "end": {
                "type": "number"
              }
            },
            "required": [
              "start",
              "end"
            ]
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get road triangulation",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_roadside_buildings",
      "description": "Read a road's roadside-building (\"Place buildings\") settings, the resolved construction build-up of each part (house, garden, accessPath, driveway, plotLeftover), and every placed building by chainage/side, including type, setback, scale, level offset, garden fall/tiers, lock/anchor, world frame and drawn plot. Also lists the available building presets.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get roadside buildings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "get_scene_coordinate_reference",
      "description": "Return the canonical scene/project coordinate contract, including EPSG and origin when configured, axis/sign convention, north rotation, vertical datum/AOD provenance, model transforms, and explicit unknowns.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Get scene coordinate reference",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "get_selection",
      "description": "Read what the user has selected in the app right now: the selected road(s), light/sign, pipe, chamber, PDF element or overlay, or IFC element, with its id and key properties. Use it to resolve \"this road\" or \"the selected chamber\".",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get selection",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "get_undo_history",
      "description": "Get a list of all undoable actions with their descriptions. Use this to understand what actions have been performed and decide how far to roll back.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Get undo history",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "get_view_style_settings",
      "description": "Read every setting in the bottom-ribbon Styles popover: Roads → Triangulation toggles, Roads → Contours rows (show, major/minor spacing in metres and millimetres, major/minor colours) for Roads, Kerbs, Footpaths, Areas, Ponds, Grading and Survey, Services, Point Cloud section display, and the Camera pivot indicator. Returns grouped values with their setting keys, plus `flat` in the exact shape update_view_style_settings accepts.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get view style settings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "get_visible_objects",
      "description": "Objects inside the current camera view (what the user is looking at), nearest to the camera first. Use for \"this\", \"these\", \"what I can see\" or \"the one on screen\" when nothing is selected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "road",
                "junction",
                "light",
                "sign",
                "signal",
                "pipe",
                "chamber",
                "gully",
                "channel",
                "bwh",
                "building",
                "area",
                "parking",
                "model",
                "drawing",
                "survey"
              ]
            },
            "description": "Kinds to include. Omit for every kind except surveys."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "Maximum objects (default 60)."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get visible objects",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "grade_hardstanding_grade_line",
      "description": "Re-level the nodes along an existing grade line (interpolate between the ends, or fall at 1:ratio from the start or end), and/or change its kind. Held nodes stay put.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "lineId": {
            "type": "string"
          },
          "fill": {
            "type": "string",
            "enum": [
              "interpolate",
              "gradient"
            ]
          },
          "ratio": {
            "type": "number"
          },
          "from": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "grade",
              "ridge",
              "valley",
              "channel"
            ]
          }
        },
        "required": [
          "lineId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Grade hardstanding grade line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "hand_over_building_access",
      "description": "Drawer \"Hand over to Areas\" for one building (road-placed, or a site building with roadId \"site\"): its current auto access path and driveway become normal Areas (Footpath / Driveway presets) levelled from the outer channel up to the door, and the generated front yard becomes a normal Area. The building switches to accessMode \"manual\" so regeneration never rebuilds or moves them; reshape them afterwards with the Areas tools (set_hardstanding_vertex_levels, apply_hardstanding_fall). Needs a host road. Returns the new area ids.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road the building is placed on, or \"site\" for a site building."
          },
          "buildingId": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "buildingId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Hand over building access",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "import_hardstanding_levels",
      "description": "Put spot levels onto a hardstanding area. Each level sets the nearest node, adds a node on the edge, or adds an internal grading point, and is held so later falls keep it. Without `levels`, reads level text from imported CAD drawings near the area (run preview_hardstanding_level_import first). With `levels`, uses those points instead: scene x/z plus the project-datum level, e.g. levels read from a PDF. A TOK with no BOK/FL within 1 m is lowered by the kerb upstand. IL, INV and FFL are not surface levels and are skipped by default.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "levels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                },
                "level": {
                  "type": "number",
                  "description": "Project datum, metres."
                },
                "qualifier": {
                  "type": "string",
                  "description": "FL, BOK, TOK… Omit for a spot level."
                },
                "text": {
                  "type": "string",
                  "description": "Source text, kept on the node."
                }
              },
              "required": [
                "x",
                "z",
                "level"
              ],
              "additionalProperties": false
            },
            "description": "Explicit levels to use instead of the drawing text."
          },
          "layers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "qualifiers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "vertexSnapM": {
            "type": "number"
          },
          "edgeSnapM": {
            "type": "number"
          },
          "hold": {
            "type": "boolean",
            "description": "Hold imported levels. Default true."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Import hardstanding levels",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "inspect_advanced_widenings",
      "description": "Inspect live lane-shift, mitre, bend-mitre, standalone-point, and add-point widening records: points, group settings (crossfall, fold kerb, build-up, surface) and per-IP bend mitre channel radii (IP drawer Channel radius left/right; isAuto marks the auto flush value). With roadId every interior IP is listed; without it only IPs that have a bend mitre.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Optional road ID. Omit to inspect all roads."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Inspect advanced widenings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "inspect_junction_zones",
      "description": "List the selectable junction zones (T-junctions and crossroads clusters) derived from the live road network: host road, host chainage range, centre, and the arms meeting at each zone. Use the zoneId with convert_junction_to_roundabout.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "zoneId": {
            "type": "string",
            "description": "Optional junction zone ID. Omit to list all zones."
          },
          "hostRoadId": {
            "type": "string",
            "description": "Optional host road ID filter."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Inspect junction zones",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "road-edit"
        ]
      }
    },
    {
      "name": "inspect_offset_feature_widenings",
      "description": "Inspect offset-feature string widenings: two-cap zones (kind zone-cap, with groupId) and single points (kind point, groupId null). Points on one string join their neighbours in chainage order.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "groupId": {
            "type": "string"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Inspect offset feature widenings",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "inspect_road_corridor",
      "description": "Inspect a corridor by any member road ID. Returns master, ordered carriageways, reserves, layout and explicit capability flags. Unsupported detach/relink/convert operations are reported false and never mutate.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Inspect road corridor",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "inspect_roundabouts",
      "description": "Inspect actual closed-loop roundabout roads, including ring geometry and central-island layers. A junction whose type is roundabout is not returned as a ring.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Optional roundabout road ID. Omit to list all rings."
          }
        }
      },
      "annotations": {
        "title": "Inspect roundabouts",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "list_bridge_presets",
      "description": "List the bridge type presets (the Bridge Span type picker tiles): id, family, label, description, structural system, typical span range, and what each one sets (deck recipe, girders, abutments, supports, parapets, system settings). Pass presetId for the full list of fields that preset writes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "family": {
            "type": "string",
            "description": "Filter by family, e.g. slab, beam, composite, box, arch, truss, cable, suspension, culvert, footbridge."
          },
          "presetId": {
            "type": "string",
            "enum": [
              "solid-slab",
              "voided-slab",
              "slab-integral-portal",
              "precast-y-beam",
              "precast-ty-beam",
              "precast-u-beam",
              "precast-inverted-t",
              "adjacent-box-beam",
              "steel-composite-plate",
              "steel-composite-tub",
              "steel-half-through",
              "box-in-situ",
              "box-balanced-cantilever",
              "box-precast-segmental",
              "box-incremental-launch",
              "masonry-arch",
              "concrete-open-spandrel-arch",
              "tied-arch-bowstring",
              "steel-through-arch",
              "warren-through-truss",
              "pratt-through-truss",
              "deck-truss",
              "vierendeel-truss",
              "cable-stayed-fan",
              "cable-stayed-harp",
              "cable-stayed-a-frame",
              "suspension-classic",
              "box-culvert",
              "portal-culvert",
              "footbridge-steel",
              "footbridge-truss"
            ],
            "description": "Return one preset with every field it writes."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "List bridge presets",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "list_hardstanding_areas",
      "description": "List hardstanding (paved) areas with node counts, level range, fall settings, grade-line count and the fall check summary (flattest fall, flat %, low spots, drawing-level fit).",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "List hardstanding areas",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "list_ifc_alignments",
      "description": "List every IfcAlignment in the imported IFC models as ordered horizontal elements (line / arc / clothoid / parabola) in scene metres, with per-element length, fitted radius and sweep, elevation availability, and a placement check against the model footprint. Use this before create_road_from_ifc_alignment. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "description": "Restrict to one IFC model id."
          },
          "applyModelTransform": {
            "type": "boolean",
            "description": "Map through the model object transform (default true). Set false only if placement reports \"far\" and the raw frame matches the scene."
          },
          "maxPointsPerAlignment": {
            "type": "number",
            "description": "Sampled points returned per alignment. Default 40."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "List ifc alignments",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "list_parking_lots",
      "description": "List every Parking V2 car park in the project with its boundary area, rule pack, stall angle, stall counts by kind, areas and warnings. Also lists hardstanding areas that could host a car park.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "List parking lots",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "list_road_country_packs",
      "description": "List the country packs and their road / footpath build-up presets (the Country pack picker in the Edit Road dialog and road drawer Build-up group). Use the returned preset ids with apply_road_country_pack. Road presets apply to roads; footpath presets apply to paths.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "packId": {
            "type": "string",
            "description": "Pack to list presets for. Defaults to the active pack (the one the picker shows)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "road",
              "footpath"
            ],
            "description": "Only list this preset kind. Default both."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "List road country packs",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "list_road_presets",
      "description": "List the named presets the Roads tools accept: build-ups (set_road_build_up), island surfaces, kerb units, offset-feature defaults, raised table / speed bump / surfacing presets, marking pattern ids (apply_road_markings_config patternId), gully defaults, create presets (draw_road_preset) and design standards. Omit category for all.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "buildUps",
              "islandSurfaces",
              "kerbs",
              "offsetFeatures",
              "raisedFeatures",
              "markingPatterns",
              "gullyDefaults",
              "createPresets",
              "designStandards"
            ]
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "List road presets",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "list_surveys",
      "description": "List all surfaces currently designated as survey (existing ground). Returns id, name, sourceType, elevation range, and bounding box for each survey surface.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "List surveys",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "survey"
        ]
      }
    },
    {
      "name": "list_views",
      "description": "List all existing plan and section views. Returns view IDs, types, and configuration.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "List views",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "mark_as_survey",
      "description": "Designate a scene object (CAD surface, IFC model, or point-cloud surface) as survey geometry for elevation queries and future grading.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "objectName": {
            "type": "string",
            "description": "Name of the object in the scene to mark as survey"
          },
          "sourceType": {
            "type": "string",
            "enum": [
              "dwg_surface",
              "ifc",
              "point_cloud_surface"
            ],
            "description": "Type of survey source"
          }
        },
        "required": [
          "objectName",
          "sourceType"
        ]
      },
      "annotations": {
        "title": "Mark as survey",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "survey"
        ]
      }
    },
    {
      "name": "merge_road_marking_lines",
      "description": "Merge two compatible adjacent marking lines through the public mergeMarkingLines API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "line1Id": {
            "type": "string"
          },
          "line2Id": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "line1Id",
          "line2Id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Merge road marking lines",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "move_ip_point",
      "description": "Move an existing IP point to a new position. Coordinates in scene space (x east, z south; north is -Z). Call get_road_details first to see current IP positions and indices.\n\nTOPOLOGY SAFETY: an existing road may not be moved through another road or detached from an existing terminal junction. A junction endpoint may move only while it remains on its declared host channel edge. Use delete_junction and create_junction to relocate or remove a junction. Rejected edits return a typed topologyError and leave the model unchanged.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "ipIndex": {
            "type": "number",
            "description": "0-based IP index to move. Index 0 and the last index are the road ends, and may carry a junction."
          },
          "x": {
            "type": "number",
            "description": "New scene-local X (m, +X east)"
          },
          "z": {
            "type": "number",
            "description": "New scene-local Z (m, +Z south)"
          }
        },
        "required": [
          "roadId",
          "ipIndex",
          "x",
          "z"
        ]
      },
      "annotations": {
        "title": "Move ip point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "move_light",
      "description": "Move an existing light or sign to a new position. Updates the 3D position without recreating the light. Use to reposition lights that were placed incorrectly.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lightId": {
            "type": "string",
            "description": "Light/sign ID to move."
          },
          "referenceId": {
            "type": "string",
            "description": "Alternative: find by reference ID (e.g. L01)."
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "New scene-local X (m, +X east)"
              },
              "y": {
                "type": "number",
                "description": "New elevation (scene-space Y)"
              },
              "z": {
                "type": "number",
                "description": "New scene-local Z (m, +Z south)"
              }
            },
            "description": "New scene-space position."
          }
        },
        "required": [
          "position"
        ]
      },
      "annotations": {
        "title": "Move light",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "move_pipe_vertex",
      "description": "Adjust an individual pipe vertex position. Use to fine-tune pipe alignment without redrawing the entire pipe.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "Pipe/polyline ID."
          },
          "vertexIndex": {
            "type": "number",
            "description": "Index of the vertex to move (0 = start)."
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "New scene-local X (m, +X east)"
              },
              "y": {
                "type": "number",
                "description": "New elevation (scene-space Y)"
              },
              "z": {
                "type": "number",
                "description": "New scene-local Z (m, +Z south)"
              }
            },
            "description": "New position for the vertex."
          }
        },
        "required": [
          "pipeId",
          "vertexIndex",
          "position"
        ]
      },
      "annotations": {
        "title": "Move pipe vertex",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "move_vip_point",
      "description": "Move one existing VIP by stable ID. Changes its chainage and/or level without replacing IDs. Endpoint chainages are fixed, and interior moves must remain inside the road range and strictly between neighbours.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "vipId": {
            "type": "string",
            "minLength": 1
          },
          "chainage": {
            "type": "number",
            "description": "New chainage for an interior VIP only."
          },
          "level": {
            "type": "number",
            "description": "New elevation in metres."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "vipId"
        ]
      },
      "annotations": {
        "title": "Move vip point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "open_alignment_panel",
      "description": "Open the Civil Alignment Panel (vertical/horizontal road alignment editor). This shows the road's vertical profile, allows editing VIPs, and displays pipe long-sections alongside the road. Optionally specify a roadId to pre-select that road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to pre-select in the alignment panel (optional)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Open alignment panel",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "open_view",
      "description": "Open/activate an existing plan or section view by its ID. The camera will switch to the 2D orthographic view.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "viewId": {
            "type": "string",
            "description": "View ID to open"
          }
        },
        "required": [
          "viewId"
        ]
      },
      "annotations": {
        "title": "Open view",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "open_views_panel",
      "description": "Open the Plans & Sections side panel which lists all 2D BIM views (floor plans, sections). The user can manage and open views from here.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Open views panel",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "orbit_camera",
      "description": "Orbit the camera around a target point. azimuthDeg is the compass bearing the camera LOOKS towards (0 = looking north, 90 = looking east, 180 = south, 270 = west); the camera sits on the opposite side of the target. polarDeg 0 = directly above (top-down), 90 = horizontal.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "description": "Point to orbit around (scene space)",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "azimuthDeg": {
            "type": "number",
            "description": "Compass bearing the camera looks towards, degrees (0 = north, 90 = east). Default 0."
          },
          "polarDeg": {
            "type": "number",
            "description": "Vertical angle in degrees (0=top, 90=horizontal). Default: 45."
          },
          "distance": {
            "type": "number",
            "description": "Distance from target in meters. Default: 100."
          }
        },
        "required": [
          "target"
        ]
      },
      "annotations": {
        "title": "Orbit camera",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "override_parking_stall",
      "description": "Override individual stalls: change type (e.g. make a stall accessible/EV), disable (remove) or lock them. Stall keys come from get_parking_lot with includeStalls. Pass clear=true to remove overrides.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string"
          },
          "stallKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "typeId": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "clear": {
            "type": "boolean"
          }
        },
        "required": [
          "stallKeys"
        ]
      },
      "annotations": {
        "title": "Override parking stall",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "pan_camera",
      "description": "Pan (truck) the camera by shifting position and target by the same offset in world space. The viewing angle and distance stay the same.\n\n- dx: shift in X (meters, positive = east/right)\n- dy: shift in Y (meters, positive = up)  \n- dz: shift in Z (meters, positive = south/forward in default orientation)\n\nExample: pan_camera({dx: 50}) shifts the view 50m to the east.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "dx": {
            "type": "number",
            "description": "Shift in X (meters)"
          },
          "dy": {
            "type": "number",
            "description": "Shift in Y (meters)"
          },
          "dz": {
            "type": "number",
            "description": "Shift in Z (meters)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Pan camera",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "patch_road_bridge_span",
      "description": "Change any Bridge Span drawer setting with a partial BridgeSpanConfig (deep merge — send only what changes). Covers levels (name, chainages, deck depth, soffit name, abutment thickness, founding level), deck recipe / material / girders / voids / haunch, abutment kind / integral / seat / backwall / wing walls / bearings / foundation, intermediate supports (add, edit, remove by id), footprint and width stations, reinforcement sets, every furniture block (parapets with link/standard, joints, surfacing layers, drainage, services ducts, diaphragms, stiffeners, approach slabs), the structural system and its settings (arch, truss, cable-stayed, suspension, box girder, culvert), and kerb upstands.\nUnits: mm for sizes, m for chainages/lengths marked (m), m AOD for levels, degrees for angles. Values outside the drawer's ranges are rejected, not clamped. Discriminant changes re-seed like the drawer (deck recipe → girder layout, girder section, foundation type, support kind, arch kind, pylon form, box construction, culvert form, parapet kind/standard).\nArray items (supports, reinforcement, footprint.stations, furniture.surfacing.layers, furniture.services.ducts) merge by id: omit id to add (seeded like the Add button), {id, remove:true} to delete. Number lists replace.\nsoffitLevelM sets the soffit RL the drawer way (deck depth = deck top − surfacing − soffit), slab recipes only. Returns the stored values of every patched field.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "spanId": {
            "type": "string"
          },
          "patch": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "description": "Span name. Empty = \"Bridge\"."
              },
              "startChainage": {
                "type": "number",
                "minimum": -1000000000,
                "maximum": 1000000000,
                "description": "Start chainage on the host road (m)"
              },
              "endChainage": {
                "type": "number",
                "minimum": -1000000000,
                "maximum": 1000000000,
                "description": "End chainage on the host road (span ≥ 1 m) (m)"
              },
              "deck": {
                "type": "object",
                "properties": {
                  "depth": {
                    "type": "number",
                    "minimum": 50,
                    "maximum": 20000,
                    "description": "Slab deck depth. Only slab recipes use it; girder recipes derive depth from the girders (mm)"
                  },
                  "soffitName": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "Soffit surface name. Empty = \"<name> Soffit\"."
                  },
                  "recipe": {
                    "type": "string",
                    "enum": [
                      "solid-slab",
                      "voided-slab",
                      "precast-beam-slab",
                      "steel-composite",
                      "steel-box",
                      "adjacent-box"
                    ],
                    "description": "Deck recipe. Changing it re-seeds the girder layout for the new recipe (kept when both recipes have girders), as the drawer does."
                  },
                  "material": {
                    "type": "string",
                    "enum": [
                      "in-situ-concrete",
                      "precast-concrete",
                      "prestressed-concrete",
                      "structural-steel",
                      "weathering-steel",
                      "composite",
                      "timber",
                      "masonry"
                    ]
                  },
                  "girders": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "precast-y",
                          "precast-ty",
                          "precast-sy",
                          "precast-u",
                          "precast-inverted-t",
                          "precast-box",
                          "precast-voided-slab-unit",
                          "steel-i-plate",
                          "steel-rolled-ub",
                          "steel-tub",
                          "timber-glulam"
                        ],
                        "description": "Changing section re-seeds every girder field from that section's defaults, as the drawer does."
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "count",
                          "spacing",
                          "explicit"
                        ],
                        "description": "How girders are laid out across the deck."
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 60,
                        "description": "Girder count (count mode)"
                      },
                      "spacing": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 30000,
                        "description": "Centre-to-centre spacing (spacing mode) (mm)"
                      },
                      "offsets": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "description": "Signed offset from the deck centreline (mm), +left"
                        },
                        "maxItems": 60,
                        "description": "Explicit girder offsets (explicit mode). Replaces the whole list."
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 8000,
                        "description": "Girder depth (mm)"
                      },
                      "webThickness": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "topFlangeWidth": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "topFlangeThickness": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "bottomFlangeWidth": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "bottomFlangeThickness": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "toppingThickness": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 2000,
                        "description": "Slab cast over the girders (mm)"
                      },
                      "haunchThickness": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000,
                        "description": "Packing between girder top and slab (mm)"
                      },
                      "endTrim": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 5000,
                        "description": "Girder end setback from the deck end (mm)"
                      },
                      "shearKeys": {
                        "type": "boolean",
                        "description": "Model shear keys between butted units"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Girder layout (girder recipes only)."
                  },
                  "voids": {
                    "type": "object",
                    "properties": {
                      "shape": {
                        "type": "string",
                        "enum": [
                          "circular",
                          "rectangular"
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 40
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 4000,
                        "description": "Void diameter / width (mm)"
                      },
                      "height": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 4000,
                        "description": "Rectangular void height (mm)"
                      },
                      "spacing": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "endDiaphragm": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Solid length at each end (mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Voids (voided-slab recipe)."
                  },
                  "haunch": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "supportDepthIncrease": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Extra depth at supports (mm)"
                      },
                      "lengthRatio": {
                        "type": "number",
                        "minimum": 0.02,
                        "maximum": 0.5,
                        "description": "Haunch length as a fraction of the span"
                      },
                      "shape": {
                        "type": "string",
                        "enum": [
                          "linear",
                          "parabolic"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Deck haunch."
                  }
                },
                "additionalProperties": false,
                "description": "Levels / deck recipe."
              },
              "abutments": {
                "type": "object",
                "properties": {
                  "thickness": {
                    "type": "number",
                    "minimum": 50,
                    "maximum": 20000,
                    "description": "Abutment thickness (mm)"
                  },
                  "foundingLevel": {
                    "type": "number",
                    "description": "Founding level (m AOD)"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "abutment-bankseat",
                      "abutment-cantilever",
                      "abutment-spill-through"
                    ]
                  },
                  "integral": {
                    "type": "boolean",
                    "description": "Cast with the deck. Turning on also disables bearings; seat length, backwall and bearings are then hidden."
                  },
                  "seatLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 5000,
                    "description": "Bearing shelf length (mm)"
                  },
                  "backwallThickness": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 3000,
                    "description": "(mm)"
                  },
                  "wingWalls": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "length": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 60,
                        "description": "Wing wall length (m)"
                      },
                      "angleDeg": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90,
                        "description": "Splay from square (deg)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 3000,
                        "description": "Wing wall thickness (mm)"
                      },
                      "topDrop": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Drop of the wall top at its tip (mm)"
                      }
                    },
                    "additionalProperties": false
                  },
                  "bearings": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "height": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 2000,
                        "description": "Bearing height (mm)"
                      },
                      "length": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "Bearing length (mm)"
                      },
                      "width": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "Bearing width (mm)"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 40,
                        "description": "Bearings per support line"
                      }
                    },
                    "additionalProperties": false
                  },
                  "foundation": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "none",
                          "pad",
                          "strip",
                          "pile-cap",
                          "piles"
                        ],
                        "description": "Changing type re-seeds the foundation from that type's defaults (piles kept), as the drawer does."
                      },
                      "length": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 60000,
                        "description": "Base length along the support (mm)"
                      },
                      "width": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000,
                        "description": "Base width (0 = support width) (mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 8000,
                        "description": "Base thickness (mm)"
                      },
                      "topLevel": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Explicit top of foundation; null = sit on the founding level (m AOD). null clears it."
                      },
                      "blinding": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 500,
                        "description": "Blinding thickness (mm)"
                      },
                      "piles": {
                        "type": "object",
                        "properties": {
                          "grid": {
                            "type": "string",
                            "enum": [
                              "single-row",
                              "rectangular",
                              "triangular",
                              "perimeter"
                            ]
                          },
                          "rows": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20
                          },
                          "columns": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 40
                          },
                          "diameter": {
                            "type": "number",
                            "minimum": 100,
                            "maximum": 4000,
                            "description": "Pile diameter (mm)"
                          },
                          "length": {
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 120,
                            "description": "Pile length (m)"
                          },
                          "spacingAlong": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 20000,
                            "description": "Spacing along the support (mm)"
                          },
                          "spacingAcross": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 20000,
                            "description": "Spacing across the support (mm)"
                          },
                          "rakeDeg": {
                            "type": "number",
                            "minimum": -30,
                            "maximum": 30,
                            "description": "Rake (deg)"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "bored",
                              "driven",
                              "cfa",
                              "steel-tube",
                              "sheet"
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "description": "Pile group (pile-cap / piles types)."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Abutment foundation."
                  }
                },
                "additionalProperties": false,
                "description": "Abutments (both ends)."
              },
              "supports": {
                "type": "array",
                "maxItems": 40,
                "description": "Intermediate supports (piers). Items merge by id; omit id to add a new item seeded like the drawer's Add button; {id, remove:true} deletes.",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "Existing item id. Omit to add."
                    },
                    "remove": {
                      "type": "boolean",
                      "description": "Delete the item with this id."
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "Support name. Empty clears it."
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "abutment-bankseat",
                        "abutment-cantilever",
                        "abutment-spill-through",
                        "pier-wall",
                        "pier-column-bent",
                        "pier-hammerhead",
                        "pier-portal",
                        "pier-pile-bent"
                      ],
                      "description": "Changing kind rebuilds the support from that kind's defaults, keeping id, chainage, founding level, name and skew, as the drawer does."
                    },
                    "chainage": {
                      "type": "number",
                      "minimum": -1000000000,
                      "maximum": 1000000000,
                      "description": "Support chainage, inside the span (m)"
                    },
                    "skewDeg": {
                      "type": "number",
                      "minimum": -75,
                      "maximum": 75,
                      "description": "Skew (deg)"
                    },
                    "foundingLevel": {
                      "type": "number",
                      "description": "Founding level (m AOD)"
                    },
                    "thickness": {
                      "type": "number",
                      "minimum": 50,
                      "maximum": 20000,
                      "description": "Wall / leaf thickness (mm)"
                    },
                    "width": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 200000,
                      "description": "Width across the deck (0 = deck width) (mm)"
                    },
                    "columns": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 40
                        },
                        "spacing": {
                          "type": "number",
                          "minimum": 300,
                          "maximum": 40000,
                          "description": "(mm)"
                        },
                        "section": {
                          "type": "string",
                          "enum": [
                            "rectangular",
                            "circular",
                            "octagonal"
                          ]
                        },
                        "diameter": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 8000,
                          "description": "(mm)"
                        },
                        "thickness": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 8000,
                          "description": "(mm)"
                        },
                        "taperDeg": {
                          "type": "number",
                          "minimum": -20,
                          "maximum": 20,
                          "description": "(deg)"
                        }
                      },
                      "additionalProperties": false,
                      "description": "Columns (column bent / hammerhead / portal)."
                    },
                    "cap": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "depth": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 6000,
                          "description": "(mm)"
                        },
                        "width": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 10000,
                          "description": "(mm)"
                        },
                        "overhang": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 20000,
                          "description": "(mm)"
                        },
                        "taper": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 20000,
                          "description": "(mm)"
                        }
                      },
                      "additionalProperties": false,
                      "description": "Cap beam / crosshead."
                    },
                    "wingWalls": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "length": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 60,
                          "description": "Wing wall length (m)"
                        },
                        "angleDeg": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90,
                          "description": "Splay from square (deg)"
                        },
                        "thickness": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 3000,
                          "description": "Wing wall thickness (mm)"
                        },
                        "topDrop": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10000,
                          "description": "Drop of the wall top at its tip (mm)"
                        }
                      },
                      "additionalProperties": false
                    },
                    "bearings": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "height": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 2000,
                          "description": "Bearing height (mm)"
                        },
                        "length": {
                          "type": "number",
                          "minimum": 50,
                          "maximum": 3000,
                          "description": "Bearing length (mm)"
                        },
                        "width": {
                          "type": "number",
                          "minimum": 50,
                          "maximum": 3000,
                          "description": "Bearing width (mm)"
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 40,
                          "description": "Bearings per support line"
                        }
                      },
                      "additionalProperties": false
                    },
                    "foundation": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "none",
                            "pad",
                            "strip",
                            "pile-cap",
                            "piles"
                          ],
                          "description": "Changing type re-seeds the foundation from that type's defaults (piles kept), as the drawer does."
                        },
                        "length": {
                          "type": "number",
                          "minimum": 200,
                          "maximum": 60000,
                          "description": "Base length along the support (mm)"
                        },
                        "width": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100000,
                          "description": "Base width (0 = support width) (mm)"
                        },
                        "thickness": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 8000,
                          "description": "Base thickness (mm)"
                        },
                        "topLevel": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Explicit top of foundation; null = sit on the founding level (m AOD). null clears it."
                        },
                        "blinding": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 500,
                          "description": "Blinding thickness (mm)"
                        },
                        "piles": {
                          "type": "object",
                          "properties": {
                            "grid": {
                              "type": "string",
                              "enum": [
                                "single-row",
                                "rectangular",
                                "triangular",
                                "perimeter"
                              ]
                            },
                            "rows": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 20
                            },
                            "columns": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 40
                            },
                            "diameter": {
                              "type": "number",
                              "minimum": 100,
                              "maximum": 4000,
                              "description": "Pile diameter (mm)"
                            },
                            "length": {
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 120,
                              "description": "Pile length (m)"
                            },
                            "spacingAlong": {
                              "type": "number",
                              "minimum": 300,
                              "maximum": 20000,
                              "description": "Spacing along the support (mm)"
                            },
                            "spacingAcross": {
                              "type": "number",
                              "minimum": 300,
                              "maximum": 20000,
                              "description": "Spacing across the support (mm)"
                            },
                            "rakeDeg": {
                              "type": "number",
                              "minimum": -30,
                              "maximum": 30,
                              "description": "Rake (deg)"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "bored",
                                "driven",
                                "cfa",
                                "steel-tube",
                                "sheet"
                              ]
                            }
                          },
                          "additionalProperties": false,
                          "description": "Pile group (pile-cap / piles types)."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Support foundation."
                    }
                  },
                  "additionalProperties": false
                }
              },
              "footprint": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "inherit-host",
                      "fixed",
                      "variable"
                    ],
                    "description": "Switching to variable with no stations seeds two stations at the span ends from the fixed widths, as the drawer does."
                  },
                  "fixedLeftWidth": {
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 200,
                    "description": "Left half width (fixed) (m)"
                  },
                  "fixedRightWidth": {
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 200,
                    "description": "Right half width (fixed) (m)"
                  },
                  "stations": {
                    "type": "array",
                    "maxItems": 60,
                    "description": "Variable-width stations (at least two in variable mode). Items merge by id; omit id to add a new item seeded like the drawer's Add button; {id, remove:true} deletes.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 200,
                          "description": "Existing item id. Omit to add."
                        },
                        "remove": {
                          "type": "boolean",
                          "description": "Delete the item with this id."
                        },
                        "chainage": {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000,
                          "description": "Station chainage, inside the span (m)"
                        },
                        "leftWidth": {
                          "type": "number",
                          "minimum": 0.1,
                          "maximum": 200,
                          "description": "(m)"
                        },
                        "rightWidth": {
                          "type": "number",
                          "minimum": 0.1,
                          "maximum": 200,
                          "description": "(m)"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "edgeCantilever": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20,
                    "description": "Edge cantilever (m)"
                  },
                  "skewDeg": {
                    "type": "number",
                    "minimum": -75,
                    "maximum": 75,
                    "description": "Deck skew (deg)"
                  }
                },
                "additionalProperties": false,
                "description": "Deck footprint / width."
              },
              "reinforcement": {
                "type": "array",
                "maxItems": 60,
                "description": "Reinforcement sets. Items merge by id; omit id to add a new item seeded like the drawer's Add button; {id, remove:true} deletes.",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "Existing item id. Omit to add."
                    },
                    "remove": {
                      "type": "boolean",
                      "description": "Delete the item with this id."
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "Set name. Empty clears it."
                    },
                    "target": {
                      "type": "string",
                      "enum": [
                        "deck",
                        "girder",
                        "abutment",
                        "pier",
                        "cap",
                        "foundation",
                        "pile",
                        "upstand"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "bar",
                        "mesh",
                        "link",
                        "tendon"
                      ]
                    },
                    "layer": {
                      "type": "string",
                      "enum": [
                        "longitudinal-top",
                        "longitudinal-bottom",
                        "transverse-top",
                        "transverse-bottom",
                        "link",
                        "vertical"
                      ]
                    },
                    "mark": {
                      "type": "string",
                      "maxLength": 40,
                      "description": "Bar mark. Empty clears it."
                    },
                    "diameter": {
                      "type": "number",
                      "minimum": 4,
                      "maximum": 80,
                      "description": "Bar diameter (mm)"
                    },
                    "spacing": {
                      "type": "number",
                      "minimum": 25,
                      "maximum": 2000,
                      "description": "(mm)"
                    },
                    "cover": {
                      "type": "number",
                      "minimum": 10,
                      "maximum": 200,
                      "description": "(mm)"
                    },
                    "grade": {
                      "type": "string",
                      "maxLength": 40,
                      "description": "Steel grade, e.g. B500B."
                    },
                    "show3D": {
                      "type": "boolean",
                      "description": "Draw the bars in 3D"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "furniture": {
                "type": "object",
                "properties": {
                  "parapets": {
                    "type": "object",
                    "properties": {
                      "linked": {
                        "type": "boolean",
                        "description": "Edit both sides together. Turning on copies left to right; while linked only `left` may be edited."
                      },
                      "left": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "none",
                              "metal-post-rail",
                              "concrete-solid",
                              "concrete-profile",
                              "masonry",
                              "combined-pedestrian",
                              "noise-barrier"
                            ],
                            "description": "Changing kind re-seeds the side from that kind's defaults."
                          },
                          "standard": {
                            "type": "string",
                            "enum": [
                              "custom",
                              "pedestrian-1150",
                              "cycle-1400",
                              "equestrian-1800",
                              "over-railway-1800",
                              "n1-1000",
                              "n2-1000",
                              "h2-1250",
                              "h4a-1500"
                            ],
                            "description": "Named standard: seeds height, containment and family; editing height or containment afterwards sets custom."
                          },
                          "containment": {
                            "type": "string",
                            "enum": [
                              "none",
                              "N1",
                              "N2",
                              "H1",
                              "H2",
                              "H4a",
                              "H4b"
                            ]
                          },
                          "height": {
                            "type": "number",
                            "minimum": 100,
                            "maximum": 8000,
                            "description": "Parapet height (mm)"
                          },
                          "width": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 3000,
                            "description": "Parapet width (mm)"
                          },
                          "edgeOffset": {
                            "type": "number",
                            "minimum": -2000,
                            "maximum": 8000,
                            "description": "Set-in from the deck edge (mm)"
                          },
                          "postSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "postCadence": {
                            "type": "string",
                            "enum": [
                              "spacing",
                              "count"
                            ]
                          },
                          "postSpacing": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 12000,
                            "description": "(mm)"
                          },
                          "postCount": {
                            "type": "integer",
                            "minimum": 2,
                            "maximum": 400
                          },
                          "postWidth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 1500,
                            "description": "(mm)"
                          },
                          "postDepth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 1500,
                            "description": "(mm)"
                          },
                          "postWallThickness": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "(mm)"
                          },
                          "endPosts": {
                            "type": "boolean"
                          },
                          "alignToJoints": {
                            "type": "boolean"
                          },
                          "basePlateEnabled": {
                            "type": "boolean"
                          },
                          "basePlateLength": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "basePlateWidth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "basePlateThickness": {
                            "type": "number",
                            "minimum": 2,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "railCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 12,
                            "description": "Intermediate rails"
                          },
                          "railSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "railDepth": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 1200,
                            "description": "(mm)"
                          },
                          "railThickness": {
                            "type": "number",
                            "minimum": 5,
                            "maximum": 800,
                            "description": "(mm)"
                          },
                          "railHeights": {
                            "type": "array",
                            "items": {
                              "type": "number",
                              "minimum": 50,
                              "maximum": 8000,
                              "description": "Rail centre height (mm)"
                            },
                            "maxItems": 12,
                            "description": "Rail centre heights; empty = spread evenly. Replaces the whole list."
                          },
                          "topRailHeight": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 8000,
                            "description": "Top rail height (0 = parapet top) (mm)"
                          },
                          "topRailSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "topRailDepth": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 1200,
                            "description": "(mm)"
                          },
                          "topRailThickness": {
                            "type": "number",
                            "minimum": 5,
                            "maximum": 800,
                            "description": "(mm)"
                          },
                          "handrailEnabled": {
                            "type": "boolean"
                          },
                          "handrailHeight": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "handrailDiameter": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "infill": {
                            "type": "string",
                            "enum": [
                              "none",
                              "mesh",
                              "vertical-bars",
                              "glass",
                              "solid-panel"
                            ]
                          },
                          "infillBarSpacing": {
                            "type": "number",
                            "minimum": 30,
                            "maximum": 1000,
                            "description": "(mm)"
                          },
                          "infillPanelThickness": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "infillTopGap": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "infillBottomGap": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "lowerBarrier": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "concrete",
                                  "metal-rail"
                                ]
                              },
                              "height": {
                                "type": "number",
                                "minimum": 100,
                                "maximum": 3000,
                                "description": "(mm)"
                              },
                              "width": {
                                "type": "number",
                                "minimum": 20,
                                "maximum": 1500,
                                "description": "(mm)"
                              },
                              "railCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 6
                              },
                              "railDepth": {
                                "type": "number",
                                "minimum": 10,
                                "maximum": 600,
                                "description": "(mm)"
                              },
                              "faceBatterDeg": {
                                "type": "number",
                                "minimum": -45,
                                "maximum": 45,
                                "description": "(deg)"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Lower barrier (combined pedestrian parapet)."
                          },
                          "plinthHeight": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "plinthWidth": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "faceBatterDeg": {
                            "type": "number",
                            "minimum": -45,
                            "maximum": 45,
                            "description": "Traffic face batter (deg)"
                          }
                        },
                        "additionalProperties": false,
                        "description": "One parapet side."
                      },
                      "right": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "none",
                              "metal-post-rail",
                              "concrete-solid",
                              "concrete-profile",
                              "masonry",
                              "combined-pedestrian",
                              "noise-barrier"
                            ],
                            "description": "Changing kind re-seeds the side from that kind's defaults."
                          },
                          "standard": {
                            "type": "string",
                            "enum": [
                              "custom",
                              "pedestrian-1150",
                              "cycle-1400",
                              "equestrian-1800",
                              "over-railway-1800",
                              "n1-1000",
                              "n2-1000",
                              "h2-1250",
                              "h4a-1500"
                            ],
                            "description": "Named standard: seeds height, containment and family; editing height or containment afterwards sets custom."
                          },
                          "containment": {
                            "type": "string",
                            "enum": [
                              "none",
                              "N1",
                              "N2",
                              "H1",
                              "H2",
                              "H4a",
                              "H4b"
                            ]
                          },
                          "height": {
                            "type": "number",
                            "minimum": 100,
                            "maximum": 8000,
                            "description": "Parapet height (mm)"
                          },
                          "width": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 3000,
                            "description": "Parapet width (mm)"
                          },
                          "edgeOffset": {
                            "type": "number",
                            "minimum": -2000,
                            "maximum": 8000,
                            "description": "Set-in from the deck edge (mm)"
                          },
                          "postSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "postCadence": {
                            "type": "string",
                            "enum": [
                              "spacing",
                              "count"
                            ]
                          },
                          "postSpacing": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 12000,
                            "description": "(mm)"
                          },
                          "postCount": {
                            "type": "integer",
                            "minimum": 2,
                            "maximum": 400
                          },
                          "postWidth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 1500,
                            "description": "(mm)"
                          },
                          "postDepth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 1500,
                            "description": "(mm)"
                          },
                          "postWallThickness": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "(mm)"
                          },
                          "endPosts": {
                            "type": "boolean"
                          },
                          "alignToJoints": {
                            "type": "boolean"
                          },
                          "basePlateEnabled": {
                            "type": "boolean"
                          },
                          "basePlateLength": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "basePlateWidth": {
                            "type": "number",
                            "minimum": 20,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "basePlateThickness": {
                            "type": "number",
                            "minimum": 2,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "railCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 12,
                            "description": "Intermediate rails"
                          },
                          "railSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "railDepth": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 1200,
                            "description": "(mm)"
                          },
                          "railThickness": {
                            "type": "number",
                            "minimum": 5,
                            "maximum": 800,
                            "description": "(mm)"
                          },
                          "railHeights": {
                            "type": "array",
                            "items": {
                              "type": "number",
                              "minimum": 50,
                              "maximum": 8000,
                              "description": "Rail centre height (mm)"
                            },
                            "maxItems": 12,
                            "description": "Rail centre heights; empty = spread evenly. Replaces the whole list."
                          },
                          "topRailHeight": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 8000,
                            "description": "Top rail height (0 = parapet top) (mm)"
                          },
                          "topRailSection": {
                            "type": "string",
                            "enum": [
                              "rhs",
                              "chs",
                              "i-section",
                              "flat-plate",
                              "concrete"
                            ]
                          },
                          "topRailDepth": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 1200,
                            "description": "(mm)"
                          },
                          "topRailThickness": {
                            "type": "number",
                            "minimum": 5,
                            "maximum": 800,
                            "description": "(mm)"
                          },
                          "handrailEnabled": {
                            "type": "boolean"
                          },
                          "handrailHeight": {
                            "type": "number",
                            "minimum": 300,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "handrailDiameter": {
                            "type": "number",
                            "minimum": 10,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "infill": {
                            "type": "string",
                            "enum": [
                              "none",
                              "mesh",
                              "vertical-bars",
                              "glass",
                              "solid-panel"
                            ]
                          },
                          "infillBarSpacing": {
                            "type": "number",
                            "minimum": 30,
                            "maximum": 1000,
                            "description": "(mm)"
                          },
                          "infillPanelThickness": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 200,
                            "description": "(mm)"
                          },
                          "infillTopGap": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "infillBottomGap": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2000,
                            "description": "(mm)"
                          },
                          "lowerBarrier": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "concrete",
                                  "metal-rail"
                                ]
                              },
                              "height": {
                                "type": "number",
                                "minimum": 100,
                                "maximum": 3000,
                                "description": "(mm)"
                              },
                              "width": {
                                "type": "number",
                                "minimum": 20,
                                "maximum": 1500,
                                "description": "(mm)"
                              },
                              "railCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 6
                              },
                              "railDepth": {
                                "type": "number",
                                "minimum": 10,
                                "maximum": 600,
                                "description": "(mm)"
                              },
                              "faceBatterDeg": {
                                "type": "number",
                                "minimum": -45,
                                "maximum": 45,
                                "description": "(deg)"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Lower barrier (combined pedestrian parapet)."
                          },
                          "plinthHeight": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "plinthWidth": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3000,
                            "description": "(mm)"
                          },
                          "faceBatterDeg": {
                            "type": "number",
                            "minimum": -45,
                            "maximum": 45,
                            "description": "Traffic face batter (deg)"
                          }
                        },
                        "additionalProperties": false,
                        "description": "One parapet side."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Parapets."
                  },
                  "joints": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "none",
                          "buried",
                          "asphaltic-plug",
                          "nosing",
                          "reinforced-elastomeric",
                          "cantilever-comb",
                          "modular"
                        ]
                      },
                      "gap": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "nosingWidth": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "proudMm": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 200,
                        "description": "Height proud of the surfacing (mm)"
                      },
                      "atStart": {
                        "type": "boolean"
                      },
                      "atEnd": {
                        "type": "boolean"
                      },
                      "atIntermediateSupports": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Expansion joints."
                  },
                  "surfacing": {
                    "type": "object",
                    "properties": {
                      "waterproofingEnabled": {
                        "type": "boolean"
                      },
                      "waterproofingThickness": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 100,
                        "description": "(mm)"
                      },
                      "protectionThickness": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 200,
                        "description": "(mm)"
                      },
                      "layers": {
                        "type": "array",
                        "maxItems": 8,
                        "description": "Surfacing layers (max 8). Items merge by id; omit id to add a new item seeded like the drawer's Add button; {id, remove:true} deletes.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "Existing item id. Omit to add."
                            },
                            "remove": {
                              "type": "boolean",
                              "description": "Delete the item with this id."
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "Layer name."
                            },
                            "thickness": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 500,
                              "description": "(mm)"
                            },
                            "material": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "Material."
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    },
                    "additionalProperties": false,
                    "description": "Deck surfacing build-up."
                  },
                  "drainage": {
                    "type": "object",
                    "properties": {
                      "gulliesEnabled": {
                        "type": "boolean"
                      },
                      "gullySpacing": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 100,
                        "description": "(m)"
                      },
                      "gullyLength": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "gullyWidth": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "gullyOffset": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 20000,
                        "description": "Offset from the kerb line (mm)"
                      },
                      "downpipesEnabled": {
                        "type": "boolean"
                      },
                      "downpipeDiameter": {
                        "type": "number",
                        "minimum": 25,
                        "maximum": 1200,
                        "description": "(mm)"
                      },
                      "carrierDrainEnabled": {
                        "type": "boolean"
                      },
                      "carrierDrainDiameter": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "carrierDrainDrop": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 6000,
                        "description": "(mm)"
                      },
                      "carrierDrainOffset": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 40000,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Deck drainage."
                  },
                  "services": {
                    "type": "object",
                    "properties": {
                      "ducts": {
                        "type": "array",
                        "maxItems": 24,
                        "description": "Service ducts (max 24). Items merge by id; omit id to add a new item seeded like the drawer's Add button; {id, remove:true} deletes.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "Existing item id. Omit to add."
                            },
                            "remove": {
                              "type": "boolean",
                              "description": "Delete the item with this id."
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "Duct name."
                            },
                            "count": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 40
                            },
                            "diameter": {
                              "type": "number",
                              "minimum": 20,
                              "maximum": 1500,
                              "description": "(mm)"
                            },
                            "offset": {
                              "type": "number",
                              "minimum": -40000,
                              "maximum": 40000,
                              "description": "Offset from the deck centreline (mm)"
                            },
                            "drop": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 8000,
                              "description": "Depth below the deck top (mm)"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "troughEnabled": {
                        "type": "boolean"
                      },
                      "troughWidth": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "troughDepth": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 3000,
                        "description": "(mm)"
                      },
                      "troughOffset": {
                        "type": "number",
                        "minimum": -40000,
                        "maximum": 40000,
                        "description": "(mm)"
                      },
                      "troughBothSides": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Services."
                  },
                  "diaphragms": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "none",
                          "solid-concrete",
                          "plate-girder",
                          "cross-braced",
                          "k-braced",
                          "channel"
                        ]
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 12000,
                        "description": "(mm)"
                      },
                      "spacing": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 200,
                        "description": "(m)"
                      },
                      "atSupports": {
                        "type": "boolean"
                      },
                      "atEnds": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Diaphragms / cross-frames."
                  },
                  "stiffeners": {
                    "type": "object",
                    "properties": {
                      "verticalEnabled": {
                        "type": "boolean"
                      },
                      "verticalSpacing": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 20000,
                        "description": "(mm)"
                      },
                      "verticalWidth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "verticalThickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 200,
                        "description": "(mm)"
                      },
                      "longitudinalEnabled": {
                        "type": "boolean"
                      },
                      "longitudinalWidth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "longitudinalThickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 200,
                        "description": "(mm)"
                      },
                      "longitudinalHeight": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 12000,
                        "description": "(mm)"
                      },
                      "bearingStiffenersEnabled": {
                        "type": "boolean"
                      },
                      "bearingStiffenerThickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 300,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Steel stiffeners."
                  },
                  "approachSlabs": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "length": {
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 40,
                        "description": "(m)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "endThickness": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 2000,
                        "description": "(mm)"
                      },
                      "atStart": {
                        "type": "boolean"
                      },
                      "atEnd": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Approach slabs."
                  }
                },
                "additionalProperties": false,
                "description": "Furniture."
              },
              "system": {
                "type": "string",
                "enum": [
                  "girder",
                  "box-girder",
                  "arch",
                  "truss",
                  "cable-stayed",
                  "suspension",
                  "culvert"
                ],
                "description": "Structural system. Each system keeps its own settings below."
              },
              "arch": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "deck-arch-open-spandrel",
                      "deck-arch-closed-spandrel",
                      "through-arch",
                      "half-through-arch",
                      "tied-arch"
                    ],
                    "description": "Changing kind re-seeds the arch, keeping span, rise and springing level, as the drawer does."
                  },
                  "shape": {
                    "type": "string",
                    "enum": [
                      "circular",
                      "parabolic",
                      "catenary",
                      "elliptical"
                    ]
                  },
                  "span": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000,
                    "description": "Arch span (0 = deck span) (m)"
                  },
                  "rise": {
                    "type": "number",
                    "minimum": 0.2,
                    "maximum": 300,
                    "description": "(m)"
                  },
                  "springingLevel": {
                    "type": "number",
                    "description": "Springing level (m AOD)"
                  },
                  "ribCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20
                  },
                  "ribSpacing": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "ribWidth": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 40000,
                    "description": "(mm)"
                  },
                  "ribDepthCrown": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 12000,
                    "description": "(mm)"
                  },
                  "ribDepthSpringing": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "barrel": {
                    "type": "boolean",
                    "description": "Solid barrel instead of ribs"
                  },
                  "spandrel": {
                    "type": "object",
                    "properties": {
                      "columnsEnabled": {
                        "type": "boolean"
                      },
                      "columnSpacing": {
                        "type": "number",
                        "minimum": 500,
                        "maximum": 40000,
                        "description": "(mm)"
                      },
                      "columnWidth": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "columnThickness": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "wallsEnabled": {
                        "type": "boolean"
                      },
                      "wallThickness": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "fillEnabled": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "hangers": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 120
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 1500,
                        "description": "(mm)"
                      },
                      "arrangement": {
                        "type": "string",
                        "enum": [
                          "vertical",
                          "network"
                        ]
                      },
                      "inclinationDeg": {
                        "type": "number",
                        "minimum": -60,
                        "maximum": 60,
                        "description": "(deg)"
                      }
                    },
                    "additionalProperties": false
                  },
                  "tieEnabled": {
                    "type": "boolean"
                  },
                  "tieDepth": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 8000,
                    "description": "(mm)"
                  },
                  "tieWidth": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 8000,
                    "description": "(mm)"
                  },
                  "bracingEnabled": {
                    "type": "boolean"
                  },
                  "bracingDiameter": {
                    "type": "number",
                    "minimum": 50,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "springingBlockEnabled": {
                    "type": "boolean"
                  },
                  "springingBlockLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "springingBlockDepth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  }
                },
                "additionalProperties": false,
                "description": "Arch system settings."
              },
              "truss": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "warren",
                      "warren-verticals",
                      "pratt",
                      "howe",
                      "k-truss",
                      "vierendeel",
                      "bowstring",
                      "lattice",
                      "baltimore"
                    ],
                    "description": "Switching to bowstring seeds a 3000 mm top-chord rise when it was 0, as the drawer does."
                  },
                  "deckPosition": {
                    "type": "string",
                    "enum": [
                      "deck",
                      "through",
                      "half-through"
                    ]
                  },
                  "panelCount": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 80
                  },
                  "depth": {
                    "type": "number",
                    "minimum": 300,
                    "maximum": 40000,
                    "description": "(mm)"
                  },
                  "trussCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  },
                  "trussSpacing": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "topChord": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "rectangular-hollow",
                          "circular-hollow",
                          "i-section",
                          "angle-pair"
                        ]
                      },
                      "width": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 2,
                        "maximum": 400,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Top chord."
                  },
                  "bottomChord": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "rectangular-hollow",
                          "circular-hollow",
                          "i-section",
                          "angle-pair"
                        ]
                      },
                      "width": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 2,
                        "maximum": 400,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Bottom chord."
                  },
                  "diagonal": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "rectangular-hollow",
                          "circular-hollow",
                          "i-section",
                          "angle-pair"
                        ]
                      },
                      "width": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 2,
                        "maximum": 400,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Diagonals."
                  },
                  "vertical": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "rectangular-hollow",
                          "circular-hollow",
                          "i-section",
                          "angle-pair"
                        ]
                      },
                      "width": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 2,
                        "maximum": 400,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Verticals."
                  },
                  "bracing": {
                    "type": "object",
                    "properties": {
                      "section": {
                        "type": "string",
                        "enum": [
                          "rectangular-hollow",
                          "circular-hollow",
                          "i-section",
                          "angle-pair"
                        ]
                      },
                      "width": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "depth": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 4000,
                        "description": "(mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 2,
                        "maximum": 400,
                        "description": "(mm)"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lateral bracing."
                  },
                  "topChordRise": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30000,
                    "description": "(mm)"
                  },
                  "topBracingEnabled": {
                    "type": "boolean"
                  },
                  "bottomBracingEnabled": {
                    "type": "boolean"
                  },
                  "portalBracingEnabled": {
                    "type": "boolean"
                  },
                  "portalDepth": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 6000,
                    "description": "(mm)"
                  },
                  "crossGirderEnabled": {
                    "type": "boolean"
                  },
                  "crossGirderSpacing": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30000,
                    "description": "(mm)"
                  },
                  "crossGirderDepth": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 6000,
                    "description": "(mm)"
                  },
                  "crossGirderWidth": {
                    "type": "number",
                    "minimum": 50,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "camber": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3000,
                    "description": "(mm)"
                  },
                  "panelLengths": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "minimum": 0.2,
                      "maximum": 200,
                      "description": "Bay length (m)"
                    },
                    "maxItems": 80,
                    "description": "Bay lengths; empty = equal panels. Replaces the whole list."
                  }
                },
                "additionalProperties": false,
                "description": "Truss system settings."
              },
              "cableStayed": {
                "type": "object",
                "properties": {
                  "pylon": {
                    "type": "object",
                    "properties": {
                      "form": {
                        "type": "string",
                        "enum": [
                          "single-mast",
                          "twin-mast",
                          "a-frame",
                          "h-frame",
                          "inverted-y",
                          "diamond"
                        ],
                        "description": "Changing form re-seeds the pylon from that form's defaults, keeping heights, founding level and foundation, as the drawer does."
                      },
                      "heightAboveDeck": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 500,
                        "description": "(m)"
                      },
                      "heightBelowDeck": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 200,
                        "description": "(m)"
                      },
                      "foundingLevel": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Pylon founding level (m AOD). null clears it."
                      },
                      "foundation": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "none",
                              "pad",
                              "strip",
                              "pile-cap",
                              "piles"
                            ],
                            "description": "Changing type re-seeds the foundation from that type's defaults (piles kept), as the drawer does."
                          },
                          "length": {
                            "type": "number",
                            "minimum": 200,
                            "maximum": 60000,
                            "description": "Base length along the support (mm)"
                          },
                          "width": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000,
                            "description": "Base width (0 = support width) (mm)"
                          },
                          "thickness": {
                            "type": "number",
                            "minimum": 100,
                            "maximum": 8000,
                            "description": "Base thickness (mm)"
                          },
                          "topLevel": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Explicit top of foundation; null = sit on the founding level (m AOD). null clears it."
                          },
                          "blinding": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 500,
                            "description": "Blinding thickness (mm)"
                          },
                          "piles": {
                            "type": "object",
                            "properties": {
                              "grid": {
                                "type": "string",
                                "enum": [
                                  "single-row",
                                  "rectangular",
                                  "triangular",
                                  "perimeter"
                                ]
                              },
                              "rows": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 20
                              },
                              "columns": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 40
                              },
                              "diameter": {
                                "type": "number",
                                "minimum": 100,
                                "maximum": 4000,
                                "description": "Pile diameter (mm)"
                              },
                              "length": {
                                "type": "number",
                                "minimum": 0.5,
                                "maximum": 120,
                                "description": "Pile length (m)"
                              },
                              "spacingAlong": {
                                "type": "number",
                                "minimum": 300,
                                "maximum": 20000,
                                "description": "Spacing along the support (mm)"
                              },
                              "spacingAcross": {
                                "type": "number",
                                "minimum": 300,
                                "maximum": 20000,
                                "description": "Spacing across the support (mm)"
                              },
                              "rakeDeg": {
                                "type": "number",
                                "minimum": -30,
                                "maximum": 30,
                                "description": "Rake (deg)"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "bored",
                                  "driven",
                                  "cfa",
                                  "steel-tube",
                                  "sheet"
                                ]
                              }
                            },
                            "additionalProperties": false,
                            "description": "Pile group (pile-cap / piles types)."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Pylon foundation."
                      },
                      "width": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 30000,
                        "description": "Leg width (mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 30000,
                        "description": "Leg thickness (mm)"
                      },
                      "legSpacing": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 80000,
                        "description": "Leg spacing at deck (mm)"
                      },
                      "headSpacing": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 80000,
                        "description": "Leg spacing at the head (mm)"
                      },
                      "junctionRatio": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "description": "Height ratio where the legs meet (inverted-Y / diamond)"
                      },
                      "crossBeamEnabled": {
                        "type": "boolean"
                      },
                      "crossBeamDepth": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 12000,
                        "description": "(mm)"
                      },
                      "taper": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 0.9,
                        "description": "Leg taper ratio"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Pylon."
                  },
                  "arrangement": {
                    "type": "string",
                    "enum": [
                      "fan",
                      "harp",
                      "semi-harp"
                    ]
                  },
                  "pylonChainages": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "description": "Pylon chainage (m)"
                    },
                    "maxItems": 12,
                    "description": "Pylon chainages; empty = support lines. Replaces the whole list."
                  },
                  "staysPerFan": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "stayDiameter": {
                    "type": "number",
                    "minimum": 20,
                    "maximum": 1200,
                    "description": "(mm)"
                  },
                  "stayDeckSpacing": {
                    "type": "number",
                    "minimum": 1000,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "stayFirstOffset": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000,
                    "description": "(mm)"
                  },
                  "stayPylonSpacing": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "cablePlanes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4
                  },
                  "deckAnchorInset": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "backStaysEnabled": {
                    "type": "boolean"
                  },
                  "backStayAnchorDistance": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 400,
                    "description": "(m)"
                  },
                  "stayDiameters": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1200,
                      "description": "Stay diameter (0 omits the stay) (mm)"
                    },
                    "maxItems": 60,
                    "description": "Per-stay diameters. Replaces the whole list."
                  },
                  "stayDeckOffsets": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 200000,
                      "description": "Deck anchor distance from the pylon (mm)"
                    },
                    "maxItems": 60,
                    "description": "Per-stay deck offsets. Replaces the whole list."
                  }
                },
                "additionalProperties": false,
                "description": "Cable-stayed system settings."
              },
              "suspension": {
                "type": "object",
                "properties": {
                  "tower": {
                    "type": "object",
                    "properties": {
                      "form": {
                        "type": "string",
                        "enum": [
                          "single-mast",
                          "twin-mast",
                          "a-frame",
                          "h-frame",
                          "inverted-y",
                          "diamond"
                        ],
                        "description": "Changing form re-seeds the pylon from that form's defaults, keeping heights, founding level and foundation, as the drawer does."
                      },
                      "heightAboveDeck": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 500,
                        "description": "(m)"
                      },
                      "heightBelowDeck": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 200,
                        "description": "(m)"
                      },
                      "foundingLevel": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Pylon founding level (m AOD). null clears it."
                      },
                      "foundation": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "none",
                              "pad",
                              "strip",
                              "pile-cap",
                              "piles"
                            ],
                            "description": "Changing type re-seeds the foundation from that type's defaults (piles kept), as the drawer does."
                          },
                          "length": {
                            "type": "number",
                            "minimum": 200,
                            "maximum": 60000,
                            "description": "Base length along the support (mm)"
                          },
                          "width": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000,
                            "description": "Base width (0 = support width) (mm)"
                          },
                          "thickness": {
                            "type": "number",
                            "minimum": 100,
                            "maximum": 8000,
                            "description": "Base thickness (mm)"
                          },
                          "topLevel": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Explicit top of foundation; null = sit on the founding level (m AOD). null clears it."
                          },
                          "blinding": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 500,
                            "description": "Blinding thickness (mm)"
                          },
                          "piles": {
                            "type": "object",
                            "properties": {
                              "grid": {
                                "type": "string",
                                "enum": [
                                  "single-row",
                                  "rectangular",
                                  "triangular",
                                  "perimeter"
                                ]
                              },
                              "rows": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 20
                              },
                              "columns": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 40
                              },
                              "diameter": {
                                "type": "number",
                                "minimum": 100,
                                "maximum": 4000,
                                "description": "Pile diameter (mm)"
                              },
                              "length": {
                                "type": "number",
                                "minimum": 0.5,
                                "maximum": 120,
                                "description": "Pile length (m)"
                              },
                              "spacingAlong": {
                                "type": "number",
                                "minimum": 300,
                                "maximum": 20000,
                                "description": "Spacing along the support (mm)"
                              },
                              "spacingAcross": {
                                "type": "number",
                                "minimum": 300,
                                "maximum": 20000,
                                "description": "Spacing across the support (mm)"
                              },
                              "rakeDeg": {
                                "type": "number",
                                "minimum": -30,
                                "maximum": 30,
                                "description": "Rake (deg)"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "bored",
                                  "driven",
                                  "cfa",
                                  "steel-tube",
                                  "sheet"
                                ]
                              }
                            },
                            "additionalProperties": false,
                            "description": "Pile group (pile-cap / piles types)."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Pylon foundation."
                      },
                      "width": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 30000,
                        "description": "Leg width (mm)"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 200,
                        "maximum": 30000,
                        "description": "Leg thickness (mm)"
                      },
                      "legSpacing": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 80000,
                        "description": "Leg spacing at deck (mm)"
                      },
                      "headSpacing": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 80000,
                        "description": "Leg spacing at the head (mm)"
                      },
                      "junctionRatio": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "description": "Height ratio where the legs meet (inverted-Y / diamond)"
                      },
                      "crossBeamEnabled": {
                        "type": "boolean"
                      },
                      "crossBeamDepth": {
                        "type": "number",
                        "minimum": 100,
                        "maximum": 12000,
                        "description": "(mm)"
                      },
                      "taper": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 0.9,
                        "description": "Leg taper ratio"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Tower."
                  },
                  "towerChainages": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "description": "Tower chainage (m)"
                    },
                    "maxItems": 12,
                    "description": "Tower chainages; empty = support lines. Replaces the whole list."
                  },
                  "mainCableDiameter": {
                    "type": "number",
                    "minimum": 30,
                    "maximum": 2500,
                    "description": "(mm)"
                  },
                  "sagRatio": {
                    "type": "number",
                    "minimum": 0.02,
                    "maximum": 0.4,
                    "description": "Midspan sag / main span"
                  },
                  "cablePlanes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4
                  },
                  "cableOffset": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "hangerSpacing": {
                    "type": "number",
                    "minimum": 1000,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "hangerDiameter": {
                    "type": "number",
                    "minimum": 10,
                    "maximum": 800,
                    "description": "(mm)"
                  },
                  "sideSpanHangers": {
                    "type": "boolean"
                  },
                  "sideSpanRatio": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "Side span / main span"
                  },
                  "anchorageEnabled": {
                    "type": "boolean"
                  },
                  "anchorageLength": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 200,
                    "description": "(m)"
                  },
                  "anchorageWidth": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 200,
                    "description": "(m)"
                  },
                  "anchorageHeight": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 200,
                    "description": "(m)"
                  },
                  "stiffeningGirderDepth": {
                    "type": "number",
                    "minimum": 200,
                    "maximum": 30000,
                    "description": "(mm)"
                  },
                  "hangerDiameters": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 800,
                      "description": "Hanger diameter (0 omits) (mm)"
                    },
                    "maxItems": 200,
                    "description": "Per-hanger diameters. Replaces the whole list."
                  }
                },
                "additionalProperties": false,
                "description": "Suspension system settings."
              },
              "boxGirder": {
                "type": "object",
                "properties": {
                  "cellCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  },
                  "construction": {
                    "type": "string",
                    "enum": [
                      "in-situ-falsework",
                      "balanced-cantilever",
                      "incremental-launch",
                      "precast-segmental"
                    ],
                    "description": "Changing construction also resets segment length and segment-joint display, as the drawer does."
                  },
                  "depth": {
                    "type": "number",
                    "minimum": 300,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "endDepth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "haunchLengthRatio": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 0.5,
                    "description": "Haunch length / span"
                  },
                  "topSlabThickness": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 2000,
                    "description": "(mm)"
                  },
                  "bottomSlabThickness": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 2000,
                    "description": "(mm)"
                  },
                  "webThickness": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 3000,
                    "description": "(mm)"
                  },
                  "webInclinationDeg": {
                    "type": "number",
                    "minimum": -45,
                    "maximum": 45,
                    "description": "(deg)"
                  },
                  "bottomWidth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "cantileverLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20000,
                    "description": "(mm)"
                  },
                  "cantileverRootThickness": {
                    "type": "number",
                    "minimum": 80,
                    "maximum": 3000,
                    "description": "(mm)"
                  },
                  "cantileverTipThickness": {
                    "type": "number",
                    "minimum": 50,
                    "maximum": 3000,
                    "description": "(mm)"
                  },
                  "filletSize": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000,
                    "description": "(mm)"
                  },
                  "diaphragmEnabled": {
                    "type": "boolean"
                  },
                  "diaphragmThickness": {
                    "type": "number",
                    "minimum": 100,
                    "maximum": 5000,
                    "description": "(mm)"
                  },
                  "diaphragmSpacing": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 60000,
                    "description": "(mm)"
                  },
                  "segmentLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 40,
                    "description": "(m)"
                  },
                  "showSegmentJoints": {
                    "type": "boolean"
                  },
                  "tendons": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "countPerWeb": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 40
                      },
                      "ductDiameter": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 400,
                        "description": "(mm)"
                      },
                      "profile": {
                        "type": "string",
                        "enum": [
                          "draped",
                          "straight",
                          "cantilever"
                        ]
                      },
                      "sagAtMidspan": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "riseAtSupport": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 8000,
                        "description": "(mm)"
                      },
                      "strandSpec": {
                        "type": "string",
                        "maxLength": 80,
                        "description": "Strand specification label."
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "description": "Box girder system settings."
              },
              "culvert": {
                "type": "object",
                "properties": {
                  "form": {
                    "type": "string",
                    "enum": [
                      "box",
                      "portal",
                      "arch",
                      "pipe"
                    ],
                    "description": "Changing form also resets base thickness and haunch size, as the drawer does."
                  },
                  "cellCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  },
                  "clearSpan": {
                    "type": "number",
                    "minimum": 0.3,
                    "maximum": 60,
                    "description": "(m)"
                  },
                  "clearHeight": {
                    "type": "number",
                    "minimum": 0.3,
                    "maximum": 40,
                    "description": "(m)"
                  },
                  "wallThickness": {
                    "type": "number",
                    "minimum": 75,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "roofThickness": {
                    "type": "number",
                    "minimum": 75,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "baseThickness": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "centreWallThickness": {
                    "type": "number",
                    "minimum": 75,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "invertLevel": {
                    "type": "number",
                    "description": "Invert level (m AOD)"
                  },
                  "coverDepth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 40,
                    "description": "(m)"
                  },
                  "barrelLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 400,
                    "description": "Barrel length (0 = deck width) (m)"
                  },
                  "headwallEnabled": {
                    "type": "boolean"
                  },
                  "headwallThickness": {
                    "type": "number",
                    "minimum": 75,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "headwallHeight": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 6000,
                    "description": "(mm)"
                  },
                  "wingWallAngleDeg": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 90,
                    "description": "(deg)"
                  },
                  "wingWallLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 40,
                    "description": "(m)"
                  },
                  "wingWallThickness": {
                    "type": "number",
                    "minimum": 75,
                    "maximum": 4000,
                    "description": "(mm)"
                  },
                  "haunchSize": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000,
                    "description": "(mm)"
                  }
                },
                "additionalProperties": false,
                "description": "Culvert system settings."
              },
              "upstand": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "object",
                    "properties": {
                      "height": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000,
                        "description": "Kerb upstand height on the left edge (mm)"
                      }
                    },
                    "additionalProperties": false
                  },
                  "right": {
                    "type": "object",
                    "properties": {
                      "height": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000,
                        "description": "Kerb upstand height on the right edge (mm)"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "description": "Kerb upstands (shown where a side has no parapet)."
              }
            },
            "additionalProperties": false,
            "description": "Partial BridgeSpanConfig. Only the fields you send change."
          },
          "soffitLevelM": {
            "type": "number",
            "description": "Soffit RL (m AOD). Slab recipes only; sets deck.depth from the host deck top level."
          }
        },
        "required": [
          "roadId",
          "spanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Patch road bridge span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "place_assets_along_road",
      "description": "Place a run of lights or signs along a road at fixed spacing, following bends, on one side / both / staggered, and SKIPPING junction mouths (+ clearance), drop kerbs, raised tables, islands, bridge spans and existing same-kind assets. Returns what was placed and every skipped chainage with the reason, so you can report honestly. Prefer this over place_lights_along_road (which ignores junctions). Use dryRun true to preview.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "assetType": {
            "type": "string",
            "enum": [
              "light",
              "sign"
            ]
          },
          "spacingM": {
            "type": "number",
            "description": "Spacing along chainage (m). Lights: 25–35 residential, 30–50 arterial. Default 30 for lights, 50 for signs."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both",
              "staggered"
            ],
            "description": "Default: lights both, signs left."
          },
          "fromChainage": {
            "type": "number"
          },
          "toChainage": {
            "type": "number"
          },
          "leadInM": {
            "type": "number",
            "description": "Offset of the first asset from fromChainage (default spacing/2)."
          },
          "offsetFromCentreM": {
            "type": "number",
            "description": "Lateral distance from centreline (m). Default: kerb back + setbackFromKerbM per side."
          },
          "setbackFromKerbM": {
            "type": "number",
            "description": "Default 0.5."
          },
          "junctionClearanceM": {
            "type": "number",
            "description": "Extra keep-out beyond each junction mouth (default 6 lights / 5 signs)."
          },
          "minSpacingToExistingM": {
            "type": "number",
            "description": "Keep this far from existing same-kind assets (default 8 lights / 3 signs)."
          },
          "facing": {
            "type": "string",
            "enum": [
              "oncoming",
              "along",
              "towards-road",
              "away-from-road"
            ],
            "description": "Signs only (default oncoming)."
          },
          "dryRun": {
            "type": "boolean",
            "description": "Return the plan without creating anything."
          },
          "referencePrefix": {
            "type": "string",
            "description": "Reference prefix, e.g. \"L\" → L01, L02…"
          },
          "poleHeight": {
            "type": "number",
            "description": "Sign pole height m (default 3)."
          },
          "poleMaterial": {
            "type": "string",
            "enum": [
              "steel",
              "aluminum",
              "concrete",
              "composite"
            ]
          },
          "poleColor": {
            "type": "string"
          },
          "baseType": {
            "type": "string",
            "enum": [
              "concrete-foundation",
              "baseplate",
              "embedded",
              "direct-burial"
            ]
          },
          "fixtureStyle": {
            "type": "string",
            "enum": [
              "cobra-head",
              "shoebox",
              "flood"
            ]
          },
          "armLength": {
            "type": "number",
            "description": "Bracket length mm (default 1500)."
          },
          "armAngle": {
            "type": "number",
            "description": "Bracket angle deg (default 15)."
          },
          "fixtureCount": {
            "type": "number"
          },
          "housingColor": {
            "type": "string"
          },
          "bulbType": {
            "type": "string",
            "enum": [
              "LED",
              "sodium",
              "metal-halide",
              "mercury-vapor"
            ]
          },
          "wattage": {
            "type": "number"
          },
          "colorTemperature": {
            "type": "number"
          },
          "shape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle",
              "triangle",
              "diamond",
              "octagon"
            ],
            "description": "Sign plate shape (default circle)."
          },
          "width": {
            "type": "number",
            "description": "Plate width mm (default 600)."
          },
          "height": {
            "type": "number",
            "description": "Plate height mm (default 600)."
          },
          "diameter": {
            "type": "number",
            "description": "Plate diameter mm for circles (default 600)."
          },
          "text": {
            "type": "string",
            "description": "Legend, e.g. \"STOP\", \"30\", \"GIVE WAY\"."
          },
          "textColor": {
            "type": "string"
          },
          "backgroundColor": {
            "type": "string"
          },
          "borderColor": {
            "type": "string"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "assetType"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place assets along road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_builders_work_hole",
      "description": "Place Storm or Foul Builders Work Holes (under-slab pop-ups) at plan points, each with its graded lateral to the storm/foul main, exactly as the ribbon tool does. The first hole trunks to the main with an AJ; later holes inside the local radius tee into that lateral. A storm or foul main must already exist. clickLevel sets the top-of-slab height like the ribbon Click level: surface (visible surface under the point, hidden layers skipped), a grid level, or a manual elevation. Points are placed in order; each one reports its top level.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "network": {
            "type": "string",
            "enum": [
              "storm",
              "foul"
            ],
            "description": "Main to connect to."
          },
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 20,
            "description": "Scene-local plan points (m), one per hole."
          },
          "clickLevel": {
            "type": "object",
            "description": "Height the points land at, same as the ribbon Click level. Default surface.",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "surface",
                  "grid-level",
                  "manual"
                ],
                "description": "surface: the highest visible surface straight under the point (IFC slab or roof, road, hardstanding, ground; hidden layers skipped). Inside a building that is the roof unless upper storeys are hidden, so use grid-level for a floor slab. grid-level: a flat plane at a construction level. manual: a flat plane at elevationM."
              },
              "gridLevel": {
                "type": "string",
                "description": "Grid level id or name, for grid-level."
              },
              "elevationM": {
                "type": "number",
                "description": "Project elevation in metres (as shown in Levels), for manual."
              }
            },
            "additionalProperties": false
          },
          "shape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle"
            ],
            "description": "Opening shape (default circle, sized to the lateral)."
          },
          "widthMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 2000,
            "description": "Rectangle width."
          },
          "lengthMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 2000,
            "description": "Rectangle length."
          },
          "pipeDiameterMm": {
            "type": "number",
            "minimum": 50,
            "maximum": 600,
            "description": "Lateral diameter (default 110)."
          },
          "fallGradient": {
            "type": "number",
            "minimum": 10,
            "maximum": 500,
            "description": "Lateral fall 1:N (default 100)."
          },
          "startOffsetMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 3000,
            "description": "Drop below the top before the graded run (default 300)."
          },
          "connectionStrategy": {
            "type": "string",
            "enum": [
              "auto",
              "main-only"
            ],
            "description": "auto: tee into a nearby lateral inside the local radius, otherwise trunk to the main (default). main-only: always trunk to the main."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "network",
          "points"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place builders work hole",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "place_chamber",
      "description": "Place a chamber/manhole at a specific position or on a pipe vertex.\n\nPOSITIONING: Use coordinates from the scene snapshot — pipe vertex positions, road sample points, or existing object positions. For chambers on pipes, use pipeId + vertexIndex.\n\nDIMENSIONS (all mm):\n  Chamber sizes: width × length for rectangular, diameter for circular.\n  Lid must fit INSIDE the chamber. Standard pairings:\n    - 1200×675 chamber → 600mm circular lid (standard manhole)\n    - 900×600 chamber → 600×450 rectangular lid (inspection chamber)\n    - 1200×750 chamber → 600mm circular lid\n    - 1050×600 chamber → 600×450 rectangular lid\n    - Circular 1200 chamber → 600mm circular lid\n  If unsure, use circular 600mm lid for any chamber ≥900mm wide.\n\nLEVELS: coverLevel and invertLevel are absolute elevations in mm (52300 = 52.300 m).\n  On a pipe vertex the invert comes from the pipe and invertLevel is ignored; the cover snaps to the surface, else invert + 1 m, unless coverLevel is given.\n  Standalone: cover defaults to position.y, invert to cover − 2000.\nLoad classes: A15 (pedestrian), B125 (light traffic), C250 (car parks), D400 (highways).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "position": {
            "type": "object",
            "description": "Position in scene space. y = cover level elevation.",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "pipeId": {
            "type": "string",
            "description": "Optional pipe label (P1), id or reference to attach the chamber to"
          },
          "vertexIndex": {
            "type": "number",
            "description": "Vertex index on the pipe to attach to (0-based). If omitted with pipeId, places at all vertices."
          },
          "chamberType": {
            "type": "string",
            "enum": [
              "standard-manhole",
              "inspection-chamber",
              "joint-box-aj",
              "precast-concrete",
              "brick-built",
              "plastic-chamber"
            ],
            "description": "Type of chamber (default: standard-manhole)"
          },
          "shape": {
            "type": "string",
            "enum": [
              "rectangle",
              "circle"
            ],
            "description": "Chamber shape (default: rectangle)"
          },
          "width": {
            "type": "number",
            "description": "Width in mm for rectangular chambers (default: 1200)"
          },
          "length": {
            "type": "number",
            "description": "Length in mm for rectangular chambers (default: 675)"
          },
          "diameter": {
            "type": "number",
            "description": "Diameter in mm for circular chambers (default: 1200)"
          },
          "invertLevel": {
            "type": "number",
            "description": "Invert level, absolute elevation in mm (standalone chambers only)"
          },
          "coverLevel": {
            "type": "number",
            "description": "Cover level, absolute elevation in mm"
          },
          "wallThickness": {
            "type": "number",
            "description": "Wall thickness in mm (default: 200)"
          },
          "rotation": {
            "type": "number",
            "description": "Rotation in degrees around Y axis (default: 0)"
          },
          "reference": {
            "type": "string",
            "description": "Reference ID e.g. \"MH.01\""
          },
          "loadClass": {
            "type": "string",
            "enum": [
              "A15",
              "B125",
              "C250",
              "D400"
            ],
            "description": "Load class per BS EN 124 (default: D400)"
          },
          "lidShape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle"
            ],
            "description": "Lid shape. Use circle for standard manholes, rectangle for inspection chambers."
          },
          "lidDiameter": {
            "type": "number",
            "description": "Lid diameter in mm for circular lids (default: 600)"
          },
          "lidWidth": {
            "type": "number",
            "description": "Lid width in mm for rectangular lids (default: 600)"
          },
          "lidLength": {
            "type": "number",
            "description": "Lid length in mm for rectangular lids (default: 450)"
          },
          "lidMaterial": {
            "type": "string",
            "enum": [
              "cast-iron",
              "concrete",
              "composite"
            ],
            "description": "Lid material (default: cast-iron)"
          },
          "constructionMethod": {
            "type": "string",
            "enum": [
              "in-situ",
              "precast",
              "pre-formed"
            ],
            "description": "Construction method"
          },
          "wallMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "brick",
              "plastic",
              "composite",
              "steel"
            ],
            "description": "Wall material (default: concrete)"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Place chamber",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "place_filter_drain",
      "description": "Place a linear filter drain (French drain) along a road or path. Filter drains collect surface water through a permeable trench filled with gravel. They run parallel to the road at the channel edge or verge.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to place the filter drain along."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Side of road (default: left).",
            "default": "left"
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage (m) along the road."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage (m) along the road."
          },
          "width_m": {
            "type": "number",
            "description": "Trench width in meters (default: 0.5).",
            "default": 0.5
          },
          "depth_m": {
            "type": "number",
            "description": "Trench depth in meters (default: 0.6).",
            "default": 0.6
          },
          "fillMaterial": {
            "type": "string",
            "description": "Fill material (e.g. 40mm gravel, crushed stone).",
            "default": "40mm gravel"
          },
          "perforatedPipeId": {
            "type": "string",
            "description": "Optional perforated pipe ID to connect to."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID for the filter drain."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "startChainage",
          "endChainage"
        ]
      },
      "annotations": {
        "title": "Place filter drain",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "place_gully",
      "description": "Place a road gully, catchpit, or linear drainage channel at a position or along a road. Gullies collect surface water at low points and channel edges. Standard spacing: 50m (straight), 25m (curves), at all low points. Connect to storm pipe with connect_drainage.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "gully",
              "catchpit",
              "linear-channel"
            ],
            "description": "Type of drainage inlet. Gully=standard road gully. Catchpit=deeper chamber for sediment trap. Linear-channel=continuous channel drain.",
            "default": "gully"
          },
          "roadId": {
            "type": "string",
            "description": "Road ID to place gully along. If provided, use chainage + side."
          },
          "chainage": {
            "type": "number",
            "description": "Chainage (m) along the road to place the gully."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Side of road (default: left).",
            "default": "left"
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "Scene-local X (m, +X east)"
              },
              "y": {
                "type": "number",
                "description": "Elevation (scene-space Y)"
              },
              "z": {
                "type": "number",
                "description": "Scene-local Z (m, +Z is south)"
              }
            },
            "description": "Direct scene-space position (alternative to roadId+chainage)."
          },
          "grateType": {
            "type": "string",
            "enum": [
              "pedestrian",
              "vehicular",
              "heavy-duty"
            ],
            "description": "Grate type based on traffic loading.",
            "default": "vehicular"
          },
          "grateSize_mm": {
            "type": "number",
            "description": "Grate opening size in mm (default: 450x600).",
            "default": 450
          },
          "depth_m": {
            "type": "number",
            "description": "Depth below road surface in meters (default: 1.0).",
            "default": 1
          },
          "connectionPipeId": {
            "type": "string",
            "description": "Storm pipe ID to connect this gully to."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID for the gully (e.g. G1, G2)."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Place gully",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "place_headwall",
      "description": "Place a headwall or outfall structure where a pipe discharges to a watercourse, ditch, or open ground. The headwall is positioned at the pipe endpoint and oriented based on the pipe direction.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "Pipe ID to place the headwall at."
          },
          "pipeEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "Which end of the pipe to place the headwall (default: end).",
            "default": "end"
          },
          "headwallType": {
            "type": "string",
            "enum": [
              "concrete",
              "stone",
              "precast",
              "headwall-with-wing-walls"
            ],
            "description": "Type of headwall construction.",
            "default": "concrete"
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID for the headwall."
          }
        },
        "required": [
          "pipeId"
        ]
      },
      "annotations": {
        "title": "Place headwall",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "place_light",
      "description": "Place a public light at an explicit scene position. Prefer place_light_on_road (roadId + chainage + side) — it derives position and arm yaw for you. Use this only for free-standing lights away from any road.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.\n\nrotation = yaw in degrees that the luminaire ARM points along. Compute it as yaw of the direction from the pole towards the carriageway (0°=+X east, 90°=-Z north, 180°=-X west, 270°=+Z south).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "position": {
            "type": "object",
            "description": "Position in scene space (x east, y elevation, z south; north is -Z)",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "style": {
            "type": "string",
            "enum": [
              "modern"
            ],
            "description": "Street lighting preset (default: modern)"
          },
          "poleHeight": {
            "type": "number",
            "description": "Pole height in meters (3-12m, default: 6)"
          },
          "poleMaterial": {
            "type": "string",
            "enum": [
              "steel",
              "aluminum",
              "concrete",
              "composite"
            ],
            "description": "Pole material (default: aluminum)"
          },
          "poleColor": {
            "type": "string",
            "description": "Hex color for pole (default: #808080)"
          },
          "baseType": {
            "type": "string",
            "enum": [
              "concrete-foundation",
              "baseplate",
              "embedded",
              "direct-burial"
            ],
            "description": "Pole base (default: concrete foundation without optional baseplate or gussets)"
          },
          "fixtureStyle": {
            "type": "string",
            "enum": [
              "cobra-head",
              "shoebox",
              "flood"
            ],
            "description": "Roadway luminaire style (default: shoebox)"
          },
          "armLength": {
            "type": "number",
            "description": "Arm/bracket length in mm (default: 1500)"
          },
          "armAngle": {
            "type": "number",
            "description": "Arm angle in degrees 0-90 (default: 15)"
          },
          "fixtureCount": {
            "type": "number",
            "description": "Number of fixtures: 1 or 2 (default: 1)"
          },
          "housingColor": {
            "type": "string",
            "description": "Hex color for fixture housing (default: #2D2D2D)"
          },
          "bulbType": {
            "type": "string",
            "enum": [
              "LED",
              "sodium",
              "metal-halide",
              "mercury-vapor"
            ],
            "description": "Bulb type (default: LED)"
          },
          "wattage": {
            "type": "number",
            "description": "Wattage (default: 150)"
          },
          "colorTemperature": {
            "type": "number",
            "description": "Color temperature in Kelvin 2700-6500 (default: 4000)"
          },
          "rotation": {
            "type": "number",
            "description": "Arm yaw in degrees (0°=+X east, 90°=-Z north, 180°=-X west, 270°=+Z south). The arm must point towards the carriageway."
          },
          "referenceId": {
            "type": "string",
            "description": "Custom reference ID (e.g. L01). Auto-generated if not provided."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "position"
        ]
      },
      "annotations": {
        "title": "Place light",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_light_on_road",
      "description": "Place one street light by road chainage. You give roadId + chainage + side; the tool puts the column behind the kerb (or at offsetFromCentreM), points the bracket arm at the carriageway, attaches it to the road, auto-connects to the nearest lighting conduit, and refuses positions inside junction mouths / bridge decks / other keep-outs unless allowInKeepOut is true. For a run of lights use place_assets_along_road.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "chainage": {
            "type": "number"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "offsetFromCentreM": {
            "type": "number",
            "description": "Lateral distance from centreline (m). Default: kerb back + setbackFromKerbM."
          },
          "setbackFromKerbM": {
            "type": "number",
            "description": "Setback behind kerb face when offsetFromCentreM omitted (default 0.5)."
          },
          "allowInKeepOut": {
            "type": "boolean"
          },
          "referenceId": {
            "type": "string",
            "description": "Reference e.g. L01."
          },
          "poleHeight": {
            "type": "number",
            "description": "Pole height m (default 6; 8–10 collector, 10–12 arterial)."
          },
          "poleMaterial": {
            "type": "string",
            "enum": [
              "steel",
              "aluminum",
              "concrete",
              "composite"
            ]
          },
          "poleColor": {
            "type": "string"
          },
          "baseType": {
            "type": "string",
            "enum": [
              "concrete-foundation",
              "baseplate",
              "embedded",
              "direct-burial"
            ]
          },
          "fixtureStyle": {
            "type": "string",
            "enum": [
              "cobra-head",
              "shoebox",
              "flood"
            ]
          },
          "armLength": {
            "type": "number",
            "description": "Bracket length mm (default 1500)."
          },
          "armAngle": {
            "type": "number",
            "description": "Bracket angle deg (default 15)."
          },
          "fixtureCount": {
            "type": "number"
          },
          "housingColor": {
            "type": "string"
          },
          "bulbType": {
            "type": "string",
            "enum": [
              "LED",
              "sodium",
              "metal-halide",
              "mercury-vapor"
            ]
          },
          "wattage": {
            "type": "number"
          },
          "colorTemperature": {
            "type": "number"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "chainage",
          "side"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place light on road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_roadside_buildings",
      "description": "Add explicit (manual, locked) roadside buildings at given chainage/side pairs on a road — for \"put a shop at ch 120 on the right\" or infill between automatic houses. Each item is checked against junction mouths and other keep-outs (refused unless allowInKeepOut). Manual buildings survive regeneration. For a whole-road pattern use set_roadside_building_settings instead.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "buildings": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "chainage": {
                  "type": "number"
                },
                "side": {
                  "type": "string",
                  "enum": [
                    "left",
                    "right"
                  ]
                },
                "typeId": {
                  "type": "string",
                  "description": "Default: road default type. detached-house | semi-detached-pair | terrace-unit | bungalow | apartment-block | office-unit | industrial-unit | retail-shed or custom:{id}."
                },
                "setbackM": {
                  "type": "number",
                  "description": "Per-building setback from road edge (m)."
                },
                "heightM": {
                  "type": "number"
                },
                "rotationOffsetDeg": {
                  "type": "number",
                  "description": "Plan rotation added to the local road tangent (deg)."
                },
                "gardenEnabled": {
                  "type": "boolean"
                },
                "accessPathEnabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "chainage",
                "side"
              ],
              "additionalProperties": false
            }
          },
          "allowInKeepOut": {
            "type": "boolean"
          },
          "enablePlacementIfOff": {
            "type": "boolean",
            "description": "If the road has Place buildings off, turn it on so the geometry builds (default true). Automatic spacing stays as configured."
          }
        },
        "required": [
          "roadId",
          "buildings"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place roadside buildings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "place_sign",
      "description": "Place a traffic/information sign at an explicit scene position. Prefer place_sign_on_road (roadId + chainage + side) — it derives position and facing for you and keeps the sign clear of junction mouths.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.\n\nrotation = yaw in degrees of the direction the sign FACE points. A sign must face oncoming traffic: on the left side of a two-way road that is the direction of DECREASING chainage.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "shape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle",
              "triangle",
              "diamond",
              "octagon"
            ],
            "description": "Sign shape (default: circle)"
          },
          "width": {
            "type": "number",
            "description": "Sign width in mm (default: 600)"
          },
          "height": {
            "type": "number",
            "description": "Sign height in mm (default: 600)"
          },
          "diameter": {
            "type": "number",
            "description": "Sign diameter in mm for circular (default: 600)"
          },
          "text": {
            "type": "string",
            "description": "Text content to display on the sign (e.g. \"STOP\", \"30\", \"No Entry\")"
          },
          "textColor": {
            "type": "string",
            "description": "Text color hex (default: #000000)"
          },
          "backgroundColor": {
            "type": "string",
            "description": "Background hex color (default: #FFFFFF)"
          },
          "borderColor": {
            "type": "string",
            "description": "Border hex color (default: #FF0000)"
          },
          "poleHeight": {
            "type": "number",
            "description": "Pole height in meters (default: 3)"
          },
          "rotation": {
            "type": "number",
            "description": "Face yaw in degrees (0°=+X east, 90°=-Z north, 180°=-X west, 270°=+Z south). Face towards oncoming traffic."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID e.g. S01"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "position"
        ]
      },
      "annotations": {
        "title": "Place sign",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_sign_on_road",
      "description": "Place one traffic/information sign by road chainage. You give roadId + chainage + side; the tool derives the scene position on the footway/verge behind the kerb (or at offsetFromCentreM), faces the sign at oncoming traffic for that side by default, attaches it to the road, and refuses positions inside a junction mouth or other keep-out unless allowInKeepOut is true. Use resolve_road_location for phrases and find_placement_slots for free intervals first.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "chainage": {
            "type": "number",
            "description": "Chainage along the road (m)."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Side relative to increasing chainage."
          },
          "offsetFromCentreM": {
            "type": "number",
            "description": "Lateral distance from centreline (m). Default: kerb back + setbackFromKerbM."
          },
          "setbackFromKerbM": {
            "type": "number",
            "description": "Setback behind the kerb face when offsetFromCentreM is omitted (default 0.5)."
          },
          "facing": {
            "type": "string",
            "enum": [
              "oncoming",
              "along",
              "towards-road",
              "away-from-road",
              "yaw"
            ],
            "description": "Face direction: oncoming (default, faces traffic approaching on this side), along (+chainage), towards-road, away-from-road, or yaw (use yawDeg)."
          },
          "yawDeg": {
            "type": "number",
            "description": "Face yaw in contract degrees when facing = yaw."
          },
          "allowInKeepOut": {
            "type": "boolean",
            "description": "Place even inside a junction mouth / feature keep-out (default false)."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference e.g. S01."
          },
          "shape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle",
              "triangle",
              "diamond",
              "octagon"
            ],
            "description": "Sign plate shape (default circle)."
          },
          "width": {
            "type": "number",
            "description": "Plate width mm (default 600)."
          },
          "height": {
            "type": "number",
            "description": "Plate height mm (default 600)."
          },
          "diameter": {
            "type": "number",
            "description": "Plate diameter mm for circles (default 600)."
          },
          "text": {
            "type": "string",
            "description": "Legend, e.g. \"STOP\", \"30\", \"GIVE WAY\"."
          },
          "textColor": {
            "type": "string"
          },
          "backgroundColor": {
            "type": "string"
          },
          "borderColor": {
            "type": "string"
          },
          "poleHeight": {
            "type": "number",
            "description": "Sign pole height m (default 3)."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "chainage",
          "side"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place sign on road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_signal_on_road",
      "description": "Place ONE traffic signal head (pole + 3-aspect vehicle head, pedestrian red/green man, or cycle head) by road chainage and side, facing oncoming traffic on that side. For a whole junction use place_signals_at_junction, which derives stop-line positions for every arm. Signals are non-luminaire assets: they never join lighting calculations.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "chainage": {
            "type": "number"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "offsetFromCentreM": {
            "type": "number"
          },
          "setbackFromKerbM": {
            "type": "number",
            "description": "Setback behind kerb face (default 0.45)."
          },
          "facing": {
            "type": "string",
            "enum": [
              "oncoming",
              "along",
              "towards-road",
              "away-from-road",
              "yaw"
            ]
          },
          "yawDeg": {
            "type": "number"
          },
          "allowInKeepOut": {
            "type": "boolean",
            "description": "Signals normally sit at the junction mouth, so keep-out is only advisory here (default true)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "vehicle",
              "pedestrian",
              "cycle"
            ],
            "description": "Head type (default vehicle 3-aspect)."
          },
          "heads": {
            "type": "number",
            "enum": [
              1,
              2
            ],
            "description": "Vehicle heads on the pole (default 1)."
          },
          "aspectDiameterMm": {
            "type": "number",
            "enum": [
              200,
              300
            ],
            "description": "Lens diameter (default 200; 300 for ≥ 50 mph approaches)."
          },
          "mountHeightM": {
            "type": "number",
            "description": "Ground to underside of lowest head (default 2.4 vehicle, 2.1 pedestrian)."
          },
          "backingBoard": {
            "type": "boolean"
          },
          "pushButton": {
            "type": "boolean"
          },
          "role": {
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "pedestrian"
            ]
          },
          "stage": {
            "type": "string",
            "description": "Stage label, e.g. \"A\"."
          },
          "junctionZoneId": {
            "type": "string",
            "description": "inspect_junction_zones id the signal belongs to."
          },
          "controlsRoadId": {
            "type": "string",
            "description": "Approach road the signal controls."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference e.g. TS01."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "roadId",
          "chainage",
          "side"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place signal on road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_signals_at_junction",
      "description": "Signalise a junction in ONE call: for every arm of a junction zone (inspect_junction_zones) place a primary 3-aspect vehicle signal on the near-side kerb at the stop line (stopLineSetbackM back from the kerb-return tangent), optionally an offside secondary and pedestrian heads, all facing approaching traffic and tagged with the zone id and a stage letter (host arms = A, side arms = B, C…). Also records junctionType \"signal\" on the member junctions where supported. Use dryRun to see the plan first.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "zoneId": {
            "type": "string",
            "description": "Junction zone id from inspect_junction_zones."
          },
          "hostRoadId": {
            "type": "string",
            "description": "Alternative to zoneId: host road id/name + hostChainage to pick the nearest zone."
          },
          "hostChainage": {
            "type": "number"
          },
          "stopLineSetbackM": {
            "type": "number",
            "description": "Distance from the kerb-return tangent back to the stop line / primary pole (default 2.5)."
          },
          "includeSecondary": {
            "type": "boolean",
            "description": "Add an offside secondary head per arm (default false)."
          },
          "includePedestrian": {
            "type": "boolean",
            "description": "Add pedestrian heads on both kerbs of every arm (default false)."
          },
          "aspectDiameterMm": {
            "type": "number",
            "enum": [
              200,
              300
            ],
            "description": "Lens diameter (default 200; 300 for ≥ 50 mph approaches)."
          },
          "mountHeightM": {
            "type": "number",
            "description": "Ground to underside of lowest head (default 2.4 vehicle, 2.1 pedestrian)."
          },
          "backingBoard": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Place signals at junction",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "place_soakaway",
      "description": "Place a soakaway, infiltration device, or attenuation tank for storm water storage and infiltration. Used at the end of a drainage run to allow water to soak into the ground or store for controlled discharge.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "soakaway",
              "attenuation-tank"
            ],
            "description": "Soakaway=infiltration to ground. Attenuation tank=storage for controlled discharge.",
            "default": "soakaway"
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "description": "Scene-local X (m, +X east)"
              },
              "y": {
                "type": "number",
                "description": "Elevation (scene-space Y)"
              },
              "z": {
                "type": "number",
                "description": "Scene-local Z (m, +Z is south)"
              }
            },
            "description": "Scene-space position for the soakaway."
          },
          "width_m": {
            "type": "number",
            "description": "Width in meters (default: 2.0).",
            "default": 2
          },
          "length_m": {
            "type": "number",
            "description": "Length in meters (default: 3.0).",
            "default": 3
          },
          "depth_m": {
            "type": "number",
            "description": "Depth in meters (default: 1.5).",
            "default": 1.5
          },
          "inflowPipeId": {
            "type": "string",
            "description": "Pipe ID that feeds into this soakaway."
          },
          "outflowPipeId": {
            "type": "string",
            "description": "Optional outflow pipe for controlled discharge (attenuation tanks)."
          },
          "referenceId": {
            "type": "string",
            "description": "Reference ID for the soakaway."
          },
          "designStatus": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "Optional. \"existing\" marks what this call creates as existing (already on site). Default proposed."
          }
        },
        "required": [
          "position"
        ]
      },
      "annotations": {
        "title": "Place soakaway",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "plan_road_network",
      "description": "Plan a multi-road network layout. Analyses existing roads and generates a step-by-step execution plan with resolved coordinates for creating new roads with proper junction connections.\n\nWORKFLOW:\n1. Call plan_road_network with your desired network description\n2. The tool returns an ordered list of draw_road calls with pre-calculated coordinates\n3. Execute each step sequentially using draw_road, then set_ip_curve_radii as needed\n\nINPUT: Provide a list of roads to create, each with:\n- name: road name\n- parentRoadId: which existing road to connect to (omit for standalone roads)\n- parentChainage: where on the parent road to connect — REQUIRED with parentRoadId, and must be inside the parent's chainage range\n- parentSide: left or right side of the parent road, relative to increasing chainage on the PARENT. REQUIRED with parentRoadId unless you supply an explicit bearing (then it is derived from the bearing). Never guessed.\n- connectionEnd: which end of the new road connects (start or end)\n- length: approximate road length in meters\n- bearing: direction of the new road in degrees (0=north, 90=east, 180=south, 270=west). If omitted, defaults to perpendicular from parent road on parentSide.\n- numIPs: number of IP points (2=straight, 3+=curves)\n- channelWidth: channel width in meters (default 3.5)\n- designSpeed: km/h\n\nEvery planned leg is tested for crossings against existing roads and against the earlier legs of the same plan. This planner rejects a leg that crosses, because it only emits single terminal draw_road calls. For a crossroads, do not plan it here: call draw_road with points that span both sides of the host (no parent connection) so the engine splits it, or call create_crossroads when you already know the chainage.\n\nThe tool resolves junction coordinates automatically and returns exact scene-space points for each road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roads": {
            "type": "array",
            "description": "Array of roads to plan. Order matters — parent roads must come before their children.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Road name"
                },
                "parentRoadId": {
                  "type": "string",
                  "description": "ID of existing road to connect to (omit for standalone roads)"
                },
                "parentChainage": {
                  "type": "number",
                  "description": "Chainage on parent road for junction"
                },
                "parentSide": {
                  "type": "string",
                  "enum": [
                    "left",
                    "right"
                  ],
                  "description": "Which side of parent road to connect"
                },
                "connectionEnd": {
                  "type": "string",
                  "enum": [
                    "start",
                    "end"
                  ],
                  "description": "Which end of new road connects (default: start)"
                },
                "length": {
                  "type": "number",
                  "description": "Approximate road length in meters (default: 50)"
                },
                "bearing": {
                  "type": "number",
                  "description": "Bearing in degrees (0=north, 90=east). Omit for auto-perpendicular."
                },
                "numIPs": {
                  "type": "number",
                  "description": "Number of IP points (2=straight, 3+=with bends). Default: 2"
                },
                "channelWidth": {
                  "type": "number",
                  "description": "Channel width in meters (default: 3.5)"
                },
                "designSpeed": {
                  "type": "number",
                  "description": "Design speed km/h (default: 50)"
                },
                "curveRadii": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  },
                  "description": "Curve radii for middle IPs (if numIPs > 2)"
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "defaultElevation": {
            "type": "number",
            "description": "Default ground elevation for all roads (default: 0)"
          }
        },
        "required": [
          "roads"
        ]
      },
      "annotations": {
        "title": "Plan road network",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "preflight_road_network_proposal",
      "description": "Read-only deterministic road-network preflight. Prefer proposalId from extract_road_network_proposal — do not echo the proposal JSON. Optional defaults fill missing widths/levels on the cached proposal. After the user explicitly confirms a preview or identifies the drawing evidence as authoritative, pass evidenceConfirmation to record that decision and clear only DRAWING_EVIDENCE_CONFIRMATION_REQUIRED; never infer confirmation. Collapses dense centrelines to Arc PIs, snaps joining ends onto the host channel edge, validates evidence/topology, and returns a preflightHash for commit.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "description": "Id returned by extract_road_network_proposal. Prefer this over proposal."
          },
          "proposalHash": {
            "type": "string",
            "description": "Hash returned by extract_road_network_proposal."
          },
          "proposal": {
            "$schema": "http://json-schema.org/draft-07/schema#",
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "string",
                "const": "1.0.0"
              },
              "id": {
                "type": "string",
                "minLength": 1
              },
              "sourceReferences": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "cad",
                        "pdf",
                        "ifc",
                        "terrain",
                        "survey",
                        "project"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "elementIds": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "transform": {
                      "type": "object",
                      "properties": {
                        "coordinateSpace": {
                          "type": "string",
                          "const": "scene"
                        },
                        "matrixWorld": {
                          "minItems": 16,
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      },
                      "required": [
                        "coordinateSpace",
                        "matrixWorld"
                      ]
                    },
                    "calibration": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "known",
                            "not-required",
                            "missing"
                          ]
                        },
                        "method": {
                          "type": "string",
                          "minLength": 1
                        },
                        "sceneMetresPerSourceUnit": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "reason": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    "coordinateReference": {
                      "type": "object",
                      "properties": {
                        "projectDefined": {
                          "type": "boolean"
                        },
                        "epsg": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verticalDatum": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "originAOD": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "projectDefined",
                        "epsg",
                        "verticalDatum",
                        "originAOD"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "name",
                    "elementIds",
                    "transform",
                    "calibration",
                    "coordinateReference"
                  ]
                }
              },
              "candidateRoads": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sourceRefIds": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "centreline": {
                      "type": "object",
                      "properties": {
                        "coordinateSpace": {
                          "type": "string",
                          "const": "scene"
                        },
                        "segments": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "line"
                                  },
                                  "sourceElementId": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "start": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ]
                                  },
                                  "end": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "sourceElementId",
                                  "start",
                                  "end"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "arc"
                                  },
                                  "sourceElementId": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "start": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ]
                                  },
                                  "end": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ]
                                  },
                                  "center": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ]
                                  },
                                  "radius": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "startAngleRadians": {
                                    "type": "number"
                                  },
                                  "endAngleRadians": {
                                    "type": "number"
                                  },
                                  "clockwise": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "sourceElementId",
                                  "start",
                                  "end",
                                  "center",
                                  "radius",
                                  "startAngleRadians",
                                  "endAngleRadians",
                                  "clockwise"
                                ]
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "coordinateSpace",
                        "segments"
                      ]
                    },
                    "horizontalCurveEvidence": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "sourceElementId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "radius": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "sweepRadians": {
                            "type": "number"
                          },
                          "provenance": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "source",
                                  "caller-default",
                                  "project-default",
                                  "terrain-sample",
                                  "derived",
                                  "missing"
                                ]
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1
                              },
                              "sourceRefId": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "kind",
                              "description"
                            ]
                          }
                        },
                        "required": [
                          "sourceElementId",
                          "radius",
                          "sweepRadians",
                          "provenance"
                        ]
                      }
                    },
                    "verticalProfile": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "source-geometry",
                            "terrain-sampled",
                            "caller-default",
                            "project-default",
                            "missing"
                          ]
                        },
                        "points": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "chainage": {
                                "type": "number",
                                "minimum": 0
                              },
                              "level": {
                                "type": "number"
                              },
                              "sourceRefId": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "chainage",
                              "level"
                            ]
                          }
                        },
                        "coverage": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "provenance": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "source",
                                "caller-default",
                                "project-default",
                                "terrain-sample",
                                "derived",
                                "missing"
                              ]
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1
                            },
                            "sourceRefId": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "kind",
                            "description"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "points",
                        "coverage",
                        "provenance"
                      ]
                    },
                    "crossSection": {
                      "type": "object",
                      "properties": {
                        "leftChannelWidth": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "rightChannelWidth": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "provenance": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "source",
                                "caller-default",
                                "project-default",
                                "terrain-sample",
                                "derived",
                                "missing"
                              ]
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1
                            },
                            "sourceRefId": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "kind",
                            "description"
                          ]
                        }
                      },
                      "required": [
                        "provenance"
                      ]
                    },
                    "junctionDefaults": {
                      "type": "object",
                      "properties": {
                        "leftRadius": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "rightRadius": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "provenance": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "source",
                                "caller-default",
                                "project-default",
                                "terrain-sample",
                                "derived",
                                "missing"
                              ]
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1
                            },
                            "sourceRefId": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "kind",
                            "description"
                          ]
                        }
                      },
                      "required": [
                        "leftRadius",
                        "rightRadius",
                        "provenance"
                      ]
                    },
                    "intendedJunctionIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "confidence": {
                      "type": "object",
                      "properties": {
                        "horizontal": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "vertical": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "crossSection": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "topology": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "horizontal",
                        "vertical",
                        "crossSection",
                        "topology"
                      ]
                    },
                    "assumptions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "unresolvedDecisions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1
                          },
                          "path": {
                            "type": "string",
                            "minLength": 1
                          },
                          "message": {
                            "type": "string",
                            "minLength": 1
                          },
                          "blocking": {
                            "type": "boolean"
                          },
                          "requiredDecision": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "required": [
                          "code",
                          "path",
                          "message",
                          "blocking",
                          "requiredDecision"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "sourceRefIds",
                    "centreline",
                    "horizontalCurveEvidence",
                    "verticalProfile",
                    "crossSection",
                    "intendedJunctionIds",
                    "confidence",
                    "assumptions",
                    "unresolvedDecisions"
                  ]
                }
              },
              "intendedJunctions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "candidateRoadId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "candidateEnd": {
                      "type": "string",
                      "enum": [
                        "start",
                        "end"
                      ]
                    },
                    "hostRoadId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "hostChainage": {
                      "type": "number",
                      "minimum": 0
                    },
                    "hostSide": {
                      "type": "string",
                      "enum": [
                        "left",
                        "right"
                      ]
                    },
                    "leftRadius": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "rightRadius": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "junctionTo": {
                      "type": "string",
                      "enum": [
                        "channel",
                        "crown"
                      ]
                    },
                    "provenance": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "source",
                            "caller-default",
                            "project-default",
                            "terrain-sample",
                            "derived",
                            "missing"
                          ]
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1
                        },
                        "sourceRefId": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "kind",
                        "description"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "candidateRoadId",
                    "candidateEnd",
                    "hostRoadId",
                    "hostChainage",
                    "hostSide",
                    "leftRadius",
                    "rightRadius",
                    "provenance"
                  ]
                }
              },
              "assumptions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "unresolvedEngineeringDecisions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 1
                    },
                    "path": {
                      "type": "string",
                      "minLength": 1
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "blocking": {
                      "type": "boolean"
                    },
                    "requiredDecision": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "code",
                    "path",
                    "message",
                    "blocking",
                    "requiredDecision"
                  ]
                }
              }
            },
            "required": [
              "schemaVersion",
              "id",
              "sourceReferences",
              "candidateRoads",
              "intendedJunctions",
              "assumptions",
              "unresolvedEngineeringDecisions"
            ]
          },
          "defaults": {
            "type": "object",
            "properties": {
              "leftChannelWidth": {
                "type": "number"
              },
              "rightChannelWidth": {
                "type": "number"
              },
              "level": {
                "type": "number"
              },
              "junctionLeftRadius": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "junctionRightRadius": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "provenance": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "caller-default",
                      "project-default"
                    ]
                  },
                  "description": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "description"
                ]
              },
              "evidenceConfirmation": {
                "type": "object",
                "description": "Receipt for an explicit user confirmation of sub-0.98 drawing evidence. Never supply this without explicit confirmation.",
                "properties": {
                  "confirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "confirmedBy": {
                    "type": "string",
                    "enum": [
                      "user"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "confirmed",
                  "confirmedBy",
                  "description"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "provenance"
            ]
          },
          "criteria": {
            "$schema": "http://json-schema.org/draft-07/schema#",
            "type": "object",
            "properties": {
              "minimumRoadLength": {
                "default": 0.5,
                "type": "number",
                "exclusiveMinimum": 0
              },
              "minimumHorizontalRadius": {
                "default": 6,
                "type": "number",
                "exclusiveMinimum": 0
              },
              "maximumGradientPercent": {
                "default": 8,
                "type": "number",
                "exclusiveMinimum": 0
              },
              "requireSurfaceCoverage": {
                "default": false,
                "type": "boolean"
              },
              "requireProjectCrs": {
                "default": false,
                "type": "boolean"
              }
            }
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Preflight road network proposal",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "timeoutMs": 180000,
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "proposal"
          ],
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "preview_hardstanding_level_import",
      "description": "Dry run of import_hardstanding_levels: level text found near the area in imported CAD drawings, counted by layer and type (FL, BOK, TOK, SPOT, IL…), and how many would set a node, add an edge node, add an internal point, or fall outside.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "layers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only these layers. Default all."
          },
          "qualifiers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Level types to use. Default SPOT, FL, BOK, CL, FGL, GL, RL, EL, SL, LEVEL, LVL, TOK, TOC. SPOT is a bare number."
          },
          "vertexSnapM": {
            "type": "number",
            "description": "Snap to an existing node within this distance. Default 0.75."
          },
          "edgeSnapM": {
            "type": "number",
            "description": "Snap onto the edge within this distance. Default 0.5."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Preview hardstanding level import",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "query_cad_scene",
      "description": "Query already-imported canonical CAD scene data: source/layer inventory, transformed line entities, connected polylines, analytical native arcs, text when retained by the renderer, and bounds/spatial filters. Geometry is capped and paginated.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "inventory",
              "entities",
              "polylines",
              "arcs",
              "text",
              "all"
            ]
          },
          "layer": {
            "type": "string"
          },
          "bounds": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string"
          },
          "maxPointsPerItem": {
            "type": "number",
            "minimum": 2,
            "maximum": 200
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Query cad scene",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "query_drawing_features",
      "description": "Read non-alignment features out of the imported CAD/PDF drawing in scene metres: traffic islands / refuges (closed shapes inside the carriageway), road markings (short strokes on marking layers or inside the carriageway, tagged longitudinal/transverse), hatched areas, building footprints, parsed annotations (chainage, level, radius, scale, width, gradient text), native arcs with true radii, and raw text. Every feature is tagged with the nearest built road (or derived centreline when nothing is built) as chainage / offset / side, so you can go straight to create_road_island, create_road_marking, create_road_raised_feature or place_roadside_buildings. Use after the roads are committed. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "island",
              "marking",
              "hatch",
              "building",
              "annotation",
              "arc",
              "closed_shape",
              "text"
            ],
            "description": "Feature family to return."
          },
          "sourceId": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "cad",
              "pdf"
            ]
          },
          "layers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Restrict to these layer names (exact match, case-insensitive)."
          },
          "roadId": {
            "type": "string",
            "description": "Only features whose nearest reference is this built road id (or derived centreline id)."
          },
          "chainageFrom": {
            "type": "number"
          },
          "chainageTo": {
            "type": "number"
          },
          "near": {
            "type": "object",
            "description": "Only features within radius metres of this scene-local point.",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              },
              "radius": {
                "type": "number",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "x",
              "z"
            ]
          },
          "textPattern": {
            "type": "string",
            "description": "Case-insensitive regex applied to text / annotation strings."
          },
          "minRadius": {
            "type": "number",
            "description": "Arcs only. Default 0.5."
          },
          "maxRadius": {
            "type": "number",
            "description": "Arcs only. Default 500."
          },
          "minArea": {
            "type": "number",
            "description": "Islands / closed shapes / buildings: minimum area m²."
          },
          "maxArea": {
            "type": "number",
            "description": "Islands / closed shapes / buildings: maximum area m²."
          },
          "maxDistanceToRoad": {
            "type": "number",
            "description": "How far from a reference line a feature may sit and still be tagged, metres. Default 30."
          },
          "limit": {
            "type": "number",
            "description": "Default 50, max 200."
          },
          "maxPointsPerFeature": {
            "type": "number",
            "description": "Vertex samples returned per feature. Default 40."
          }
        },
        "required": [
          "kind"
        ]
      },
      "annotations": {
        "title": "Query drawing features",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "validation",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "query_ifc_scene",
      "description": "Query already-imported IFC fragment models by category, properties, per-item world bounds and scene-space region. Optionally returns bounded sampled geometry and civil alignments. Results use existing category, semantic and box indexes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "inventory",
              "items",
              "alignments",
              "all"
            ]
          },
          "category": {
            "type": "string"
          },
          "property": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            }
          },
          "bounds": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "includeGeometry": {
            "type": "boolean"
          },
          "maxGeometryPoints": {
            "type": "number",
            "minimum": 2,
            "maximum": 200
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Query ifc scene",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "query_pdf_scene",
      "description": "Query already-imported PDF overlays using the canonical PdfElementIndex. Returns overlay/page and layer inventory, compound-path IDs when stored, full transformed path points (bounded per item), analytical native arcs, text, calibration provenance, spatial filters, and pagination. Layer filters accept the human OCG name (ROAD_CENTRELINES) or the internal id (18R). For an architect layout, list layers first, then query elements with layer=ROAD_CENTRELINES — do not treat a short selected PDF fragment as the site road. It never re-parses attachments.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "inventory",
              "layers",
              "elements",
              "all"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "all",
              "path",
              "line",
              "polyline",
              "polygon",
              "rect",
              "text"
            ]
          },
          "layer": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "bounds": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string"
          },
          "maxPointsPerItem": {
            "type": "number",
            "minimum": 2,
            "maximum": 500
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Query pdf scene",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "query_survey_elevation",
      "description": "Query the existing ground elevation at one or more (x, z) positions by raycasting into all survey surfaces. Returns elevation, surface normal, and which survey was hit.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ]
            },
            "description": "Array of {x, z} positions to query"
          }
        },
        "required": [
          "points"
        ]
      },
      "annotations": {
        "title": "Query survey elevation",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "survey"
        ]
      }
    },
    {
      "name": "query_terrain_scene",
      "description": "Query imported terrain/survey surfaces and their CRS/provenance/bounds. Supports bounded batch elevations, displayed contours, and longitudinal/cross-profile samples along a supplied scene-space alignment. Breakline geometry is returned only when canonically stored.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "inventory",
              "elevations",
              "profiles",
              "contours",
              "breaklines",
              "all"
            ]
          },
          "points": {
            "type": "array",
            "maxItems": 500,
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ]
            }
          },
          "alignment": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ]
            }
          },
          "interval": {
            "type": "number",
            "minimum": 0.1
          },
          "crossOffsets": {
            "type": "array",
            "maxItems": 21,
            "items": {
              "type": "number"
            }
          },
          "bounds": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Query terrain scene",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "recall_memory",
      "description": "Recall all stored memories or search for specific ones. Memories include user preferences, past decisions, and learned patterns from previous sessions.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Optional search term to filter memories by key or value"
          },
          "category": {
            "type": "string",
            "enum": [
              "preference",
              "decision",
              "pattern",
              "note"
            ],
            "description": "Optional category filter"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Recall memory",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "redrape_road_to_ground",
      "description": "Drop every VIP of a road or grading line back onto existing ground (Re-drape to ground in the road drawer). Chainages, curve lengths and K values stay; only levels move. VIPs over survey gaps keep their level.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Redrape road to ground",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "remove_corridor_carriageway",
      "description": "Remove one corridor carriageway through RoadDesignTool.removeCorridorCarriageway. Refuses to reduce a corridor below two carriageways.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "carriagewayRoadId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "carriagewayRoadId"
        ]
      },
      "annotations": {
        "title": "Remove corridor carriageway",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "remove_offset_feature",
      "description": "Remove an offset feature from a road by its ID or type. Use get_road_details to see current features.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Which side"
          },
          "featureId": {
            "type": "string",
            "description": "Feature ID to remove (from get_road_details)"
          },
          "featureType": {
            "type": "string",
            "description": "Remove the first feature of this type (alternative to featureId)"
          }
        },
        "required": [
          "roadId",
          "side"
        ]
      },
      "annotations": {
        "title": "Remove offset feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "remove_parking_access",
      "description": "Remove an access point from a car park by id (see get_parking_lot with includeStalls for the access list).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string"
          },
          "accessId": {
            "type": "string"
          }
        },
        "required": [
          "accessId"
        ]
      },
      "annotations": {
        "title": "Remove parking access",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "rename_junction_zone",
      "description": "Rename a junction zone (the name field in the Junction drawer, e.g. \"Junction 01\"). The name is written to every member mouth; the reference (JN.nn) is kept. inspect_junction_zones lists zone ids.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "zoneId": {
            "type": "string",
            "description": "Junction zone id (jz:…) from inspect_junction_zones."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "New display name."
          }
        },
        "additionalProperties": false,
        "required": [
          "zoneId",
          "name"
        ]
      },
      "annotations": {
        "title": "Rename junction zone",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "rename_road",
      "description": "Rename a road. Simple update of the road name without needing to call update_road_design_params.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to rename."
          },
          "name": {
            "type": "string",
            "description": "New name for the road."
          }
        },
        "required": [
          "roadId",
          "name"
        ]
      },
      "annotations": {
        "title": "Rename road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "render_road_cross_section_svg",
      "description": "Read-only. Cross section of a road at a chainage as compact SVG plus structured JSON: carriageway, widenings, raised features, kerbs (with bed/haunch), offset features (footpaths, verges, swales, walls…), grading batters, islands, bridge deck, build-up layers (thickness + material) and existing ground sampled from the survey when available. Looks up-chainage: left side drawn on the left.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, reference or name."
          },
          "chainage": {
            "type": "number"
          },
          "exaggeration": {
            "type": "number",
            "description": "Vertical exaggeration (default 2)."
          },
          "includeBuildUp": {
            "type": "boolean",
            "default": true
          },
          "includeGround": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "roadId",
          "chainage"
        ]
      },
      "annotations": {
        "title": "Render road cross section svg",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "render_road_long_section_svg",
      "description": "Read-only. Long section (vertical profile) of a road as compact SVG plus JSON: design levels, control VIPs with crest/sag curve length and K, grades %, existing ground along the centreline when a survey surface exists, chainage axis, raised feature / bridge / island bands and junction positions.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, reference or name."
          },
          "from": {
            "type": "number",
            "description": "Start chainage (default road start)."
          },
          "to": {
            "type": "number",
            "description": "End chainage (default road end)."
          },
          "exaggeration": {
            "type": "number",
            "description": "Vertical exaggeration (default: auto so the level range is ~¼ of the length, max 50)."
          },
          "includeGround": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Render road long section svg",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "render_road_plan_svg",
      "description": "Read-only. Render a compact plan SVG (scene metres, north up, scale bar, chainage ticks) of one or more roads from the live model: centreline, IPs (index + radius), channel edges (built edge strings when they verify, else computed offsets incl. widenings), kerbs, footpaths, offset features, widenings, junctions (type + other road), islands, raised tables, transition kerbs, markings, gullies, grading toe, bridges, roadside buildings. Returns the SVG text plus a legend saying where each layer came from, labelled feature ids, and simplification applied to stay under maxSizeKb.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, reference or name. Omit (with roadIds) to draw every road."
          },
          "roadIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bounds": {
            "type": "object",
            "description": "Scene plan window",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "chainageFrom": {
            "type": "number"
          },
          "chainageTo": {
            "type": "number"
          },
          "chainageInterval": {
            "type": "number",
            "description": "Chainage tick spacing (m). Default: a round number giving ~10 ticks."
          },
          "layers": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "centreline",
                "ips",
                "carriageway",
                "kerbs",
                "footpaths",
                "offsetFeatures",
                "widenings",
                "junctions",
                "islands",
                "raisedFeatures",
                "transitionKerbs",
                "markings",
                "gullies",
                "grading",
                "bridges",
                "roadsideBuildings",
                "labels"
              ]
            },
            "description": "Default: all except markings and grading."
          },
          "maxSizeKb": {
            "type": "number",
            "minimum": 4,
            "maximum": 500,
            "description": "Output cap (default 60)."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Render road plan svg",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "render_site_plan_svg",
      "description": "Read-only. Whole-site plan SVG (scene metres, north up, scale bar): every road centreline and channel edges labelled with id/name, junctions with type, roundabouts, and optionally imported CAD and/or PDF linework. Size-capped with simplification; reports what was dropped.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "bounds": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            }
          },
          "includeImported": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "cad",
                "pdf"
              ]
            },
            "description": "Imported linework to overlay (default none)."
          },
          "maxSizeKb": {
            "type": "number",
            "minimum": 4,
            "maximum": 500
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Render site plan svg",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "reorder_offset_features",
      "description": "Replace one side’s offset-feature order using an exact permutation of its stable IDs. No feature is added, removed or modified.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "orderedFeatureIds": {
            "type": "array",
            "uniqueItems": true,
            "maxItems": 100,
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "side",
          "orderedFeatureIds"
        ]
      },
      "annotations": {
        "title": "Reorder offset features",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "resolve_location",
      "description": "Turn what the user said into a definite place: a road position { road, chainage, side, offsetM } plus a scene-local point. Understands objects (\"opposite L4\", \"next to chamber C2\", \"10 m after the sign S01\"), road phrases (\"just before the junction with Mill Lane on the left\", \"ch 120\", \"the second bend\"), and plan points (nearest road and the nearest objects). Returns candidates with confidence; ask the user when the top two are close.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The location phrase from the user."
          },
          "target": {
            "type": "string",
            "description": "An object the location is relative to. Object label (R1, L4, C2), id, referenceId or exact name."
          },
          "point": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "z"
            ],
            "additionalProperties": false,
            "description": "Scene-local plan point (m)."
          },
          "road": {
            "type": "string",
            "description": "Road to resolve against (label, id or name)."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "Force a side."
          },
          "featureType": {
            "type": "string",
            "enum": [
              "sign",
              "light",
              "signal",
              "bollard",
              "building",
              "gully",
              "bus-stop",
              "crossing",
              "island",
              "raised-table",
              "transition-kerb",
              "generic"
            ],
            "description": "Check the resolved chainage against that feature's keep-outs."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Resolve location",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "return_to_3d",
      "description": "Close all 2D views and panels, returning the user to the main 3D perspective viewport. Use this when done reviewing plans, sections, or alignments.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "title": "Return to 3d",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "reverse_road_direction",
      "description": "Ribbon \"Reverse Direction\": run chainage from the other end of a road. Nothing moves in the world; IPs, VIPs, hosted features, widenings, gullies and markings are re-chainaged and left/right swap. Refused (with a code) for locked roads, closed loops, roads in a junction and corridor members. Every chainage you held for this road is stale afterwards: use the returned frame or call get_road_corridor_map again. Undoable.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road id, referenceId or name."
          },
          "dryRun": {
            "type": "boolean",
            "description": "Only report whether the road can be reversed."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Reverse road direction",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "rollback_to_checkpoint",
      "description": "Rollback all actions back to a named checkpoint. Undoes every action performed since the checkpoint was created. Use when a multi-step operation has gone wrong.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Checkpoint name to rollback to"
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "title": "Rollback to checkpoint",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "save_memory",
      "description": "Save a learned preference, decision, or pattern to persistent memory. This survives across sessions. Use for: default depths the user prefers, naming conventions, standard choices (DMRB vs TII), preferred crossfall values, typical road widths. Key should be descriptive (e.g. \"preferred_water_depth\", \"naming_convention\").",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Short descriptive key (e.g. \"preferred_water_depth\")"
          },
          "value": {
            "type": "string",
            "description": "The value or description to remember"
          },
          "category": {
            "type": "string",
            "enum": [
              "preference",
              "decision",
              "pattern",
              "note"
            ],
            "description": "Category (default: preference)"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "annotations": {
        "title": "Save memory",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "save_project",
      "description": "Save the open project as a new version snapshot, the same as the ribbon Save. Call it after finishing a block of design work so it survives a page reload and appears in the project history. Needs a signed-in user with a project open.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "maxLength": 200,
            "description": "Short note shown in the project history, e.g. \"Roads from IFC surfaces\"."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Save project",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "timeoutMs": 120000,
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "search_pdf_elements",
      "description": "Search PDF overlay elements by type, proximity, or layer. Returns matching polylines/lines/polygons as coordinate arrays in scene-space — ready to use with draw_road, draw_pipe, etc.\n\nUse cases:\n- Find all polylines near a point: { nearPoint: {x:100,z:200}, radius: 50 }\n- Find centreline-like lines: { layerName: \"ROAD_CENTRELINE\", type: \"polyline\" }\n- Find elements in a region: { region: {minX:0,minZ:0,maxX:200,maxZ:200}, type: \"lines\" }\n- Find longest polylines (likely roads): { type: \"polyline\", sortBy: \"length\", limit: 10 }\n\nReturns raw coordinate arrays so you can feed them directly into draw_road or other tools.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pdfId": {
            "type": "string",
            "description": "PDF overlay ID. Omit for first loaded PDF."
          },
          "layerName": {
            "type": "string",
            "description": "Filter by layer name (e.g. \"ROAD_CENTRELINE\")"
          },
          "type": {
            "type": "string",
            "enum": [
              "line",
              "polyline",
              "polygon",
              "rect",
              "all"
            ],
            "description": "Element type filter (default: all)"
          },
          "colorFilter": {
            "type": "string",
            "description": "Filter by color name (e.g. \"red\", \"black\")"
          },
          "nearPoint": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "description": "Find elements near this scene-space point"
          },
          "radius": {
            "type": "number",
            "description": "Search radius in meters around nearPoint (default: 50)"
          },
          "region": {
            "type": "object",
            "properties": {
              "minX": {
                "type": "number"
              },
              "minZ": {
                "type": "number"
              },
              "maxX": {
                "type": "number"
              },
              "maxZ": {
                "type": "number"
              }
            },
            "description": "Bounding box filter in scene-space"
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "length",
              "distance",
              "points"
            ],
            "description": "Sort results (length=longest first, distance=nearest first, points=most points first)"
          },
          "limit": {
            "type": "number",
            "description": "Max results to return (default: 20)"
          },
          "pageNumber": {
            "type": "number",
            "description": "PDF page (default: 1)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Search pdf elements",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "drawing"
        ]
      }
    },
    {
      "name": "select_road",
      "description": "Select a road (blue highlight, same as clicking it) so the user can see which road you mean, or clear the road selection with roadId null. additive adds to a multi-selection like Ctrl/Cmd-click.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Road ID to select, or null to clear the road selection."
          },
          "additive": {
            "type": "boolean",
            "description": "Add to the current selection instead of replacing it."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Select road",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "set_bend_mitre_channel_radius",
      "description": "Set the bend mitre channel-edge fillet radius at an interior horizontal IP (IP drawer Channel radius left/right). Turns the IP's mitre on first when it has none, then holds the radius instead of the auto flush value. radius 0 gives a sharp corner. Read current values with inspect_advanced_widenings (bendMitres).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "ipIndex": {
            "type": "integer",
            "minimum": 1,
            "description": "Interior horizontal IP index (not the first or last IP)."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ]
          },
          "radius": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000,
            "description": "Channel fillet radius in metres."
          }
        },
        "required": [
          "roadId",
          "ipIndex",
          "side",
          "radius"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set bend mitre channel radius",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "set_camera_position",
      "description": "Set the camera to an exact position and look-at target. Use this for precise camera placement when orbit_camera's spherical coordinates are insufficient. Coordinates are in scene space (meters).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "position": {
            "type": "object",
            "description": "Camera position in scene space",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "target": {
            "type": "object",
            "description": "Look-at target in scene space",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "z"
            ]
          },
          "animate": {
            "type": "boolean",
            "description": "Animate the transition (default: true)"
          }
        },
        "required": [
          "position",
          "target"
        ]
      },
      "annotations": {
        "title": "Set camera position",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "set_camera_view",
      "description": "Move the camera to look at a specific position, or use preset views (top, front, side). Can also zoom to fit a specific road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "top",
              "front",
              "right",
              "perspective"
            ],
            "description": "Preset camera view"
          },
          "target": {
            "type": "object",
            "description": "Target position to look at",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            }
          },
          "distance": {
            "type": "number",
            "description": "Camera distance from target in meters (default: 100)"
          },
          "roadId": {
            "type": "string",
            "description": "Zoom to fit this road in view"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Set camera view",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "set_corridor_carriageway_alignment_mode",
      "description": "Set an existing corridor carriageway alignment mode to linked or independent through the matching public RoadDesignTool method. This does not remove corridor membership.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "carriagewayRoadId": {
            "type": "string",
            "minLength": 1
          },
          "alignmentMode": {
            "type": "string",
            "enum": [
              "linked",
              "independent"
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "carriagewayRoadId",
          "alignmentMode"
        ]
      },
      "annotations": {
        "title": "Set corridor carriageway alignment mode",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "set_corridor_carriageway_offset",
      "description": "Set the finite signed lateral offset of an existing corridor carriageway through RoadDesignTool.setCorridorCarriagewayOffset.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "carriagewayRoadId": {
            "type": "string",
            "minLength": 1
          },
          "lateralOffsetM": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "carriagewayRoadId",
          "lateralOffsetM"
        ]
      },
      "annotations": {
        "title": "Set corridor carriageway offset",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "set_design_status",
      "description": "Mark native objects as Existing (already built, kept on site) or Proposed (new work). Everything is Proposed unless set. Targets are labels / ids / names from the scene index (roads, pipes, chambers, gullies, channels, builders work holes, areas, lights, signs, signals). Use items with kind + id for objects outside the index: headwall, wall, building (map building), siteBuilding, electrical, prop. Road children (junctions, islands, kerbs, roadside buildings) follow their road, and parking follows its area: set the parent instead. Gullies, channels and builders work holes take the status of their lateral pipe. More than 5 changes return a preview; show it to the user and call again with confirmed: true once they agree.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "existing"
            ],
            "description": "existing or proposed."
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Object labels (R1, C2, L4), ids, referenceIds or exact names."
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "road",
                    "pipe",
                    "chamber",
                    "headwall",
                    "gully",
                    "channel",
                    "bwh",
                    "area",
                    "parking",
                    "wall",
                    "building",
                    "siteBuilding",
                    "light",
                    "electrical",
                    "prop"
                  ]
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "id"
              ],
              "additionalProperties": false
            },
            "description": "Objects by kind and id, for kinds the scene index does not list."
          },
          "dryRun": {
            "type": "boolean",
            "description": "Return the plan without changing anything."
          },
          "confirmed": {
            "type": "boolean",
            "description": "Required for more than 5 changes, after the user approves the preview."
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set design status",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "set_hardstanding_fall_checks",
      "description": "Set the flattest fall allowed (1:N) used by the fall check, and turn the slope arrows and the flat-area / low-spot overlay on or off. Returns the updated report.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "minFallRatio": {
            "type": "number",
            "description": "Flattest fall allowed as 1:N. Default 80."
          },
          "showSlopeArrows": {
            "type": "boolean"
          },
          "showFlatAreas": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set hardstanding fall checks",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "set_hardstanding_vertex_levels",
      "description": "Set the level (project datum) and/or the held flag of existing nodes, by label (P1, LP1, L2) or id. One undo step. Held nodes keep their level when falls or grade lines run.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "description": "Area label (A1), id or name. Defaults to the selected area, or the only one."
          },
          "vertices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "vertex": {
                  "type": "string",
                  "description": "Node label or id."
                },
                "level": {
                  "type": "number",
                  "description": "Project datum, metres."
                },
                "hold": {
                  "type": "boolean"
                }
              },
              "required": [
                "vertex"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "vertices"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set hardstanding vertex levels",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "areas"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "areas"
        ]
      }
    },
    {
      "name": "set_ip_curve_radii",
      "description": "Set horizontal curve radii on road IP points. Middle IPs (not first/last) can have a curve radius that creates a smooth circular arc at the bend. Radius 0 or undefined = sharp corner. Typical values: residential 15-25m, collector 50-100m, arterial 200-500m. The radius must be compatible with the deflection angle — too large a radius for a tight bend will fail.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "radii": {
            "type": "array",
            "description": "Array of { ipIndex, radius } pairs. ipIndex is 0-based. First and last IPs cannot have curves.",
            "items": {
              "type": "object",
              "properties": {
                "ipIndex": {
                  "type": "number",
                  "description": "0-based IP index (must be > 0 and < last IP)"
                },
                "radius": {
                  "type": "number",
                  "description": "Curve radius in meters (0 = sharp corner)"
                }
              },
              "required": [
                "ipIndex",
                "radius"
              ]
            }
          }
        },
        "required": [
          "roadId",
          "radii"
        ]
      },
      "annotations": {
        "title": "Set ip curve radii",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "set_parking_axis",
      "description": "Choose the row axis for a car park: cycle to the next ranked candidate, pick a candidate index, align to a boundary edge, set an explicit bearing, or reset to auto (best candidate).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "action": {
            "type": "string",
            "enum": [
              "next",
              "previous",
              "candidate",
              "edge",
              "bearing",
              "reset"
            ]
          },
          "candidateIndex": {
            "type": "number",
            "description": "For action=candidate (see get_parking_lot.axisCandidates)."
          },
          "edgeIndex": {
            "type": "number",
            "description": "For action=edge: boundary edge index."
          },
          "bearingDeg": {
            "type": "number",
            "description": "For action=bearing: plan bearing in degrees anticlockwise from +X (east)."
          }
        },
        "required": [
          "action"
        ]
      },
      "annotations": {
        "title": "Set parking axis",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "set_parking_detail",
      "description": "Islands, landscaping, furniture and marking options for a car park: end/intermediate islands, kerb upstand, island fill (grass/planting/paved), trees and spacing, wheel stops, bollards, lighting columns, signs, bay numbering, one-way arrows, circulation pattern, bay line colours.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "endIslands": {
            "type": "boolean"
          },
          "endIslandWidthM": {
            "type": "number"
          },
          "intermediateEveryStalls": {
            "type": "number",
            "description": "0 disables intermediate islands."
          },
          "islandFill": {
            "type": "string",
            "enum": [
              "grass",
              "planting",
              "paved"
            ]
          },
          "kerbUpstandMm": {
            "type": "number"
          },
          "trees": {
            "type": "boolean"
          },
          "treeSpacingM": {
            "type": "number"
          },
          "fillGapsWithGreen": {
            "type": "boolean",
            "description": "Landscape leftover pavement at run ends."
          },
          "perimeterStripM": {
            "type": "number",
            "description": "Soft landscape strip inside the boundary (m)."
          },
          "wheelStops": {
            "type": "boolean"
          },
          "bollardsOnIslands": {
            "type": "boolean"
          },
          "lightingColumns": {
            "type": "boolean"
          },
          "lightingSpacingM": {
            "type": "number"
          },
          "accessibleSigns": {
            "type": "boolean"
          },
          "evSigns": {
            "type": "boolean"
          },
          "bayNumbering": {
            "type": "boolean"
          },
          "bayNumberPrefix": {
            "type": "string"
          },
          "arrows": {
            "type": "boolean",
            "description": "One-way direction arrows on aisles."
          },
          "circulationPattern": {
            "type": "string",
            "enum": [
              "internal",
              "perimeter",
              "external"
            ]
          },
          "connectToRoad": {
            "type": "boolean",
            "description": "Snap access points to the nearest road edge."
          },
          "bayLineColor": {
            "type": "string"
          },
          "accessibleColor": {
            "type": "string"
          },
          "evColor": {
            "type": "string"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Set parking detail",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "set_parking_layout_mode",
      "description": "Switch a car park between auto (solver owns the aisles) and manual (aisles are kept as drawn and can be edited). Converting to manual freezes the current aisle skeleton.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "auto",
              "manual"
            ]
          }
        },
        "required": [
          "mode"
        ]
      },
      "annotations": {
        "title": "Set parking layout mode",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "set_parking_rules",
      "description": "Change layout rules for a car park and re-solve: stall angle, aisle direction, rule pack, padding, target count, level of detail, name.\nStall angle drives aisle width from the rule pack table (UK 90° two-way = 6.0 m, one-way = 3.6 m; 60° one-way = 4.2 m; 45° = 3.6 m; 0° parallel = 3.6 m).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "name": {
            "type": "string"
          },
          "regionPack": {
            "type": "string",
            "enum": [
              "uk",
              "us"
            ]
          },
          "angleDeg": {
            "type": "number",
            "description": "90, 60, 45, 30 or 0."
          },
          "direction": {
            "type": "string",
            "enum": [
              "twoWay",
              "oneWay"
            ]
          },
          "paddingM": {
            "type": "number",
            "description": "Clear strip inside the boundary (m)."
          },
          "aisleWidthM": {
            "type": "number",
            "description": "Override the aisle width for the current angle/direction (m)."
          },
          "crossAisleWidthM": {
            "type": "number",
            "description": "Cross-aisle width (m)."
          },
          "maxRunStalls": {
            "type": "number",
            "description": "Max stalls between islands / breaks."
          },
          "targetCount": {
            "type": "number",
            "description": "Target stall count. 0 clears the target."
          },
          "lod": {
            "type": "number",
            "enum": [
              200,
              300,
              400
            ],
            "description": "Level of detail: 200 markings, 300 + islands/kerbs, 400 + furniture and trees."
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Set parking rules",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "set_parking_stall_type",
      "description": "Tune one stall type on a car park (by type id, e.g. standard, accessible, ev, parentChild, motorcycle, compact, coach) and re-solve.\nProvision methods: percent (value = % of total), ratio (1 per value stalls), exactCount, accessibleTable (BS 8300 / ADA table). Set enabled=false to remove a type from the layout.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lotId": {
            "type": "string",
            "description": "Lot id or name. Defaults to the selected lot."
          },
          "typeId": {
            "type": "string",
            "description": "Stall type id (see get_parking_lot)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "standard",
              "accessible",
              "accessibleVan",
              "ev",
              "compact",
              "parentChild",
              "motorcycle",
              "cycle",
              "coach",
              "trailer"
            ],
            "description": "Kind when adding a type that does not exist yet."
          },
          "label": {
            "type": "string"
          },
          "widthM": {
            "type": "number"
          },
          "depthM": {
            "type": "number"
          },
          "calcMethod": {
            "type": "string",
            "enum": [
              "percent",
              "ratio",
              "exactCount",
              "accessibleTable"
            ]
          },
          "calcValue": {
            "type": "number"
          },
          "minimum": {
            "type": "number",
            "description": "Minimum count regardless of method."
          },
          "enabled": {
            "type": "boolean",
            "description": "false removes the type from the layout."
          },
          "infill": {
            "type": "boolean",
            "description": "Paint the bay with the type colour."
          },
          "color": {
            "type": "string",
            "description": "Hex colour for infill/markings."
          },
          "chargerEnabled": {
            "type": "boolean",
            "description": "Place an EV charger pedestal at each bay of this type."
          }
        },
        "required": [
          "typeId"
        ]
      },
      "annotations": {
        "title": "Set parking stall type",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "parking"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "parking"
        ]
      }
    },
    {
      "name": "set_road_bridge_member_override",
      "description": "Edit one bridge member instance the way the Bridge Span drawer's member inspector does: placement (alongMm, acrossMm, topLevel, baseLevel, lengthMm, widthMm, skewDeg, hidden) for every instance kind, plus that kind's dimension fields (e.g. girder depth/section/offsetMm, column diameter/taperDeg, pile diameter/length/rakeDeg, bearing height, stay diameter, parapet height…). Values equal to the type are dropped, as the inspector does. A field set to null resets it to the type. reset:true clears this member; resetAll:true clears every member override (\"Reset all members\"). memberKey comes from get_road_bridge_span_config.memberKeys. Type rows (support lines, parapet sides, ducts, foundations) are edited with patch_road_bridge_span.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "spanId": {
            "type": "string"
          },
          "memberKey": {
            "type": "string",
            "description": "Member key, e.g. girder:0:0, column:sup1:1, pile:abutment:start:3."
          },
          "fields": {
            "type": "object",
            "properties": {
              "alongMm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Shift along the span (mm), +towards the span end."
              },
              "acrossMm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Shift across the deck (mm), +towards the left edge."
              },
              "topLevel": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Top of the solid (m AOD)."
              },
              "baseLevel": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Underside of the solid (m AOD)."
              },
              "lengthMm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Plan length along the axis (mm)."
              },
              "widthMm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Plan width across the axis (mm)."
              },
              "skewDeg": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Extra skew (deg, ±75)."
              },
              "hidden": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Hide this instance."
              },
              "section": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Section (girder, column, truss and bracing members)."
              },
              "supportKind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "abutment-bankseat",
                  "abutment-cantilever",
                  "abutment-spill-through",
                  null
                ],
                "description": "Abutment typology for this end."
              },
              "integral": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Cast this abutment end with the deck."
              },
              "depth": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "offsetMm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "webThickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "topFlangeWidth": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "topFlangeThickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "bottomFlangeWidth": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "bottomFlangeThickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "length": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "angleDeg": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "thickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "topDrop": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "diameter": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "taperDeg": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "rakeDeg": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "height": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "width": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "foundingLevel": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "seatLength": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "backwallThickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "endThickness": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "edgeOffset": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "plinthHeight": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              },
              "plinthWidth": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "mm unless the kind says otherwise (pile length m, pylon height m, founding level m AOD)."
              }
            },
            "additionalProperties": false,
            "description": "Override fields to set (null resets one field)."
          },
          "reset": {
            "type": "boolean",
            "description": "Clear this member's override."
          },
          "resetAll": {
            "type": "boolean",
            "description": "Clear every member override on the span."
          }
        },
        "required": [
          "roadId",
          "spanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set road bridge member override",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "set_road_build_up",
      "description": "Set the carriageway build-up (construction layers) for a road. Use a preset name or define custom layers.\nPresets: residential (400mm), industrial (535mm), footway (175mm), footpath (225mm), swale (357mm), ditch (400mm), hedge (450mm), verge (400mm).\nWhen using customLayers, ALWAYS specify a realistic color for each layer (e.g. '#2d2d2d' for asphalt, '#a89880' for aggregate, '#6b5d4d' for base course).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "preset": {
            "type": "string",
            "enum": [
              "residential",
              "industrial",
              "footway",
              "footpath",
              "swale",
              "ditch",
              "hedge",
              "verge"
            ],
            "description": "Use a standard build-up preset"
          },
          "customLayers": {
            "type": "array",
            "description": "Custom layers (alternative to preset). Order: surface (top) → sub-base (bottom). Each layer must include a color.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Layer name (e.g. \"Surface Course\", \"Binder Course\")"
                },
                "material": {
                  "type": "string",
                  "description": "Material specification (e.g. \"AC 10 surf\", \"Type 1\")"
                },
                "thickness": {
                  "type": "number",
                  "description": "Thickness in mm"
                },
                "color": {
                  "type": "string",
                  "description": "Hex color for the layer (e.g. \"#2d2d2d\" for dark asphalt, \"#a89880\" for sandy stone, \"#6b5d4d\" for brown aggregate). REQUIRED."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "surface",
                    "binder",
                    "base",
                    "subBase",
                    "capping",
                    "custom"
                  ],
                  "description": "Which build-up slot this layer fills (the Edit Road dialog Build-up list). If no layer has a role they map by position: 2 layers = surface, base; 3 = surface, base, subBase; 4 = surface, binder, base, subBase; 5 = + capping; any further layers become extra (custom) layers below. With roles, exactly one surface and one base are needed; each other named role at most once; \"custom\" layers stack below in order."
                }
              },
              "required": [
                "name",
                "material",
                "thickness",
                "color"
              ]
            }
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Set road build up",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "set_road_drainage_catchments",
      "description": "Replace road-native chainage catchment segments after finite, in-range, ordered non-overlap validation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fromChainage": {
                  "type": "number"
                },
                "toChainage": {
                  "type": "number"
                },
                "chamberId": {
                  "type": "string"
                }
              },
              "required": [
                "fromChainage",
                "toChainage",
                "chamberId"
              ],
              "additionalProperties": false
            }
          },
          "percentImpervious": {
            "type": "number"
          },
          "runoffCoefficient": {
            "type": "number"
          },
          "networkType": {
            "type": "string",
            "enum": [
              "storm",
              "foul",
              "combined"
            ]
          },
          "drainableTo": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "segments"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set road drainage catchments",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "set_road_layer_style",
      "description": "Layer Manager row for a road: pin (lock against editing; pinned roads refuse edits and Reverse Direction) and opacity (native road layers take opacity only, no colour tint). Give pinned, opacityPercent or both.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "pinned": {
            "type": "boolean"
          },
          "opacityPercent": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Set road layer style",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "set_road_marking_breakout_zones",
      "description": "Replace all explicit road-relative breakout zones on one parallel marking line through the public production mutation API. Pass [] to delete all zones. Boundary points are required at each zone start/end.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "markingLineId": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "startChainage": {
                  "type": "number"
                },
                "endChainage": {
                  "type": "number"
                },
                "interpolation": {
                  "type": "string",
                  "enum": [
                    "linear",
                    "smooth"
                  ]
                },
                "visible": {
                  "type": "boolean"
                },
                "points": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "chainage": {
                        "type": "number"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "locked": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "chainage",
                      "offset"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "startChainage",
                "endChainage",
                "points"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "roadId",
          "markingLineId",
          "zones"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set road marking breakout zones",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "set_road_visibility",
      "description": "Show or hide a road or one of its Layer Manager children. Hiding does not delete anything. target: road (every mesh, alignment, markings and zones), gullies, markings, transitionKerbs (all drop / transition kerb zones), raisedTables (all raised tables, speed bumps and surfacing), roadsideBuildings, or one item by id: wideningGroup (groupId), island, transitionKerb, raisedFeature.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "target": {
            "type": "string",
            "enum": [
              "road",
              "gullies",
              "markings",
              "transitionKerbs",
              "raisedTables",
              "roadsideBuildings",
              "wideningGroup",
              "island",
              "transitionKerb",
              "raisedFeature"
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Required for wideningGroup (group id), island, transitionKerb and raisedFeature."
          },
          "visible": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "target",
          "visible"
        ]
      },
      "annotations": {
        "title": "Set road visibility",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "set_roadside_building_plot",
      "description": "Redraw one outline of a roadside building — the in-scene plot editor: part \"plot\" (house footprint; also sets plot width/depth), \"garden\", \"footpath\" (access path strip) or \"driveway\". Give the closed polygon (no repeated last point) in scene world X/Z (default) or in the local plot frame (coordinates:\"plot\": x along the road tangent, z outward from the house centre). Like the editor, the building is locked and frozen in world space, and the road's spacing grows to fit a wider frontage. Footpath/driveway need a host road; garden needs the garden on. Returns the stored local ring and its world points.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "buildingId": {
            "type": "string"
          },
          "part": {
            "type": "string",
            "enum": [
              "plot",
              "garden",
              "footpath",
              "driveway"
            ]
          },
          "polygon": {
            "type": "array",
            "minItems": 3,
            "maxItems": 64,
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "z": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "z"
              ],
              "additionalProperties": false
            }
          },
          "coordinates": {
            "type": "string",
            "enum": [
              "world",
              "plot"
            ],
            "description": "world (default) = scene X/Z; plot = local plot frame metres."
          }
        },
        "required": [
          "roadId",
          "buildingId",
          "part",
          "polygon"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set roadside building plot",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "set_roadside_building_settings",
      "description": "Enable or adjust automatic roadside building placement on a road (the \"Space planning for buildings\" section). The engine re-places buildings along the whole road at spacingM (measured per spacingAlong, distributed per distribution), following bends, on the chosen sides, skipping junction mouths (+ junctionClearanceM) and overlaps with other roads; manual/locked buildings are kept. Also sets path / driveway / garden defaults, garden retaining, and the per-part construction build-ups. Uploading a custom model stays in the UI. Returns the stored settings.\n\nSPATIAL CONVENTIONS (shared by all road and roadside tools):\n- Scene coordinates are metres: +X = east/right, +Y = elevation/up, +Z = scene south (project northing increases towards -Z).\n- Chainage runs along a road from its start IP (m). \"side\" is LEFT/RIGHT relative to INCREASING chainage. \"offset\" is a lateral distance from the centreline in metres (positive = away from the centreline on the named side).\n- Bearing (bearing, bearingDeg, facingBearingDeg, azimuthDeg) is always a COMPASS bearing in degrees, clockwise from north: 0° = north (-Z), 90° = east (+X), 180° = south (+Z), 270° = west.\n- Yaw/rotation (yaw, yawDeg, rotation) is a Three.js Y-axis rotation in DEGREES, anticlockwise when viewed from above: 0° = faces/points +X (east), 90° = -Z (north), 180° = -X (west), 270° = +Z (south). Bearing = (90 − yaw) mod 360.\n- A luminaire arm must point TOWARDS the carriageway. A sign face must point TOWARDS oncoming traffic on its side. Prefer the *_on_road / *_along_road tools: they derive position and yaw from roadId + chainage + side so you never compute angles yourself.\n- Junction ownership: a junction record lives on the SIDE road (junctionEnd start|end) and its chainage is measured along the MAIN road.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean",
            "description": "Master toggle (\"Place buildings\"). Turning on disables road-side grading for the road, as the UI does."
          },
          "visible": {
            "type": "boolean"
          },
          "defaultTypeId": {
            "type": "string",
            "description": "Building type: detached-house | semi-detached-pair | terrace-unit | bungalow | apartment-block | office-unit | industrial-unit | retail-shed or custom:{id}."
          },
          "sides": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ]
          },
          "spacingM": {
            "type": "number",
            "minimum": 3,
            "description": "Centre-to-centre spacing (m), measured per spacingAlong. Default 12."
          },
          "spacingAlong": {
            "type": "string",
            "enum": [
              "buildingLine",
              "centreline"
            ],
            "description": "Measure spacing on the building line (setback curve, default) or on the centreline chainage."
          },
          "distribution": {
            "type": "string",
            "enum": [
              "fitRuns",
              "fromStart"
            ],
            "description": "fitRuns (default) centres as many houses as fit between junction mouths / road ends; fromStart steps from the road start."
          },
          "setbackM": {
            "type": "number",
            "minimum": 0,
            "description": "Setback from the road edge / outermost offset feature (m). Default 10."
          },
          "junctionClearanceM": {
            "type": "number",
            "minimum": 0,
            "description": "Extra clearance each side of a junction mouth (m). Default 4."
          },
          "alternateSides": {
            "type": "boolean",
            "description": "Stagger the right side by half the spacing."
          },
          "baseLevelSource": {
            "type": "string",
            "enum": [
              "road-grade"
            ],
            "description": "Where house base levels come from. Only road-grade is live (survey TIN is not yet available)."
          },
          "accessPathEnabled": {
            "type": "boolean"
          },
          "accessPathWidthM": {
            "type": "number",
            "minimum": 0.3
          },
          "drivewayEnabled": {
            "type": "boolean"
          },
          "drivewayWidthM": {
            "type": "number",
            "minimum": 0.8
          },
          "gardenEnabled": {
            "type": "boolean"
          },
          "gardenDepthM": {
            "type": "number",
            "minimum": 0.4,
            "description": "Garden depth when no other row backs onto this one (m)."
          },
          "gardenMaxDepthM": {
            "type": [
              "number",
              "null"
            ],
            "description": "Cap on garden depth to a shared boundary (m, min 0.4). null or 0 = fill to the equidistant boundary."
          },
          "gardenRearFenceEnabled": {
            "type": "boolean"
          },
          "gardenSideFenceEnabled": {
            "type": "boolean"
          },
          "gardenRetainOneIn": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Gardens steeper than 1 in N are held by a retaining wall."
          },
          "gardenRetainStructure": {
            "type": "string",
            "enum": [
              "rc-cantilever",
              "gravity",
              "gabion",
              "crib",
              "sheet-pile",
              "secant-pile",
              "reinforced-earth"
            ],
            "description": "Retaining structure on garden steps."
          },
          "buildUpEnabled": {
            "type": "boolean",
            "description": "Construction layers under house pads, gardens, paths and driveways."
          },
          "houseBuildUp": {
            "type": "object",
            "description": "Construction layers for this part. Starts from the current layers (or `preset`), then sets each given thickness. 0 removes the optional binder / capping layer.",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "residential",
                  "industrial",
                  "footway",
                  "footpath",
                  "swale",
                  "ditch",
                  "hedge",
                  "verge",
                  "housePad"
                ],
                "description": "Start from a standard build-up instead of the current one."
              },
              "surfaceCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "binderCourseMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "baseCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "subBaseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "cappingMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "reset": {
                "type": "boolean",
                "description": "true = drop the authored build-up and use the default for this part."
              }
            },
            "additionalProperties": false
          },
          "gardenBuildUp": {
            "type": "object",
            "description": "Construction layers for this part. Starts from the current layers (or `preset`), then sets each given thickness. 0 removes the optional binder / capping layer.",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "residential",
                  "industrial",
                  "footway",
                  "footpath",
                  "swale",
                  "ditch",
                  "hedge",
                  "verge",
                  "housePad"
                ],
                "description": "Start from a standard build-up instead of the current one."
              },
              "surfaceCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "binderCourseMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "baseCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "subBaseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "cappingMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "reset": {
                "type": "boolean",
                "description": "true = drop the authored build-up and use the default for this part."
              }
            },
            "additionalProperties": false
          },
          "accessPathBuildUp": {
            "type": "object",
            "description": "Construction layers for this part. Starts from the current layers (or `preset`), then sets each given thickness. 0 removes the optional binder / capping layer.",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "residential",
                  "industrial",
                  "footway",
                  "footpath",
                  "swale",
                  "ditch",
                  "hedge",
                  "verge",
                  "housePad"
                ],
                "description": "Start from a standard build-up instead of the current one."
              },
              "surfaceCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "binderCourseMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "baseCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "subBaseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "cappingMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "reset": {
                "type": "boolean",
                "description": "true = drop the authored build-up and use the default for this part."
              }
            },
            "additionalProperties": false
          },
          "drivewayBuildUp": {
            "type": "object",
            "description": "Construction layers for this part. Starts from the current layers (or `preset`), then sets each given thickness. 0 removes the optional binder / capping layer.",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "residential",
                  "industrial",
                  "footway",
                  "footpath",
                  "swale",
                  "ditch",
                  "hedge",
                  "verge",
                  "housePad"
                ],
                "description": "Start from a standard build-up instead of the current one."
              },
              "surfaceCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "binderCourseMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "baseCourseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "subBaseMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 2000
              },
              "cappingMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 2000
              },
              "reset": {
                "type": "boolean",
                "description": "true = drop the authored build-up and use the default for this part."
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Set roadside building settings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "split_road_marking_line",
      "description": "Split a stored marking line at a finite chainage through the public splitMarkingLineAt API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "markingLineId": {
            "type": "string"
          },
          "chainage": {
            "type": "number"
          }
        },
        "required": [
          "roadId",
          "markingLineId",
          "chainage"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Split road marking line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "toggle_grid",
      "description": "Show or hide the scene grid. Useful before/after screenshots — hide the grid for cleaner views, show it for alignment reference.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "true = show grid, false = hide grid"
          }
        },
        "required": [
          "visible"
        ]
      },
      "annotations": {
        "title": "Toggle grid",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "views"
        ]
      }
    },
    {
      "name": "translate_road_vertical",
      "description": "Raise or lower a whole road by deltaM metres (adds deltaM to every VIP level, plan geometry unchanged). Same as the bottom-ribbon vertical move with the road selected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "deltaM": {
            "type": "number",
            "minimum": -500,
            "maximum": 500,
            "description": "Metres; positive raises, negative lowers. Must not be zero."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "deltaM"
        ]
      },
      "annotations": {
        "title": "Translate road vertical",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "undo_last_actions",
      "description": "Undo the last N actions performed by the AI or user. Returns descriptions of what was undone. Use for small corrections (1-3 steps). For larger rollbacks, use rollback_to_checkpoint.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number",
            "description": "Number of actions to undo (default: 1, max: 20)"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Undo last actions",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "unmark_survey",
      "description": "Remove survey designation from a surface so it is no longer used for elevation queries.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "surveyId": {
            "type": "string",
            "description": "ID of the survey to unmark"
          }
        },
        "required": [
          "surveyId"
        ]
      },
      "annotations": {
        "title": "Unmark survey",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "survey"
        ]
      }
    },
    {
      "name": "update_advanced_widening_point",
      "description": "Update a live advanced widening point through the public batch updater so lane-shift pairing and mitre tangent synchronisation are preserved.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "pointId": {
            "type": "string"
          },
          "chainage": {
            "type": "number"
          },
          "offset": {
            "type": "number",
            "description": "Signed channel offset in metres."
          },
          "radius": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "roadId",
          "pointId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update advanced widening point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_build_up_span",
      "description": "Update an existing build-up span (range, preset or layer thicknesses). Fields omitted are kept.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "buildUpSpanId": {
            "type": "string"
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "preset": {
            "type": "string"
          },
          "surfaceCourseMm": {
            "type": "number"
          },
          "binderCourseMm": {
            "type": "number"
          },
          "baseCourseMm": {
            "type": "number"
          },
          "subBaseMm": {
            "type": "number"
          },
          "cappingMm": {
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "buildUpSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update build up span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "update_chainage_annotation_settings",
      "description": "Immutably apply explicit partial chainage annotation settings. Intervals, display fields, marker style and channel-level labels are validated before regeneration.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "updates": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "interval": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "minorInterval": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "format": {
                "type": "string",
                "enum": [
                  "full",
                  "abbreviated"
                ]
              },
              "decimalPlaces": {
                "type": "integer",
                "minimum": 0,
                "maximum": 6
              },
              "showInScene": {
                "type": "boolean"
              },
              "labelHeight": {
                "type": "number",
                "minimum": 0
              },
              "labelSize": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "labelColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "showMarkers": {
                "type": "boolean"
              },
              "markerStyle": {
                "type": "string",
                "enum": [
                  "post",
                  "line",
                  "arrow"
                ]
              },
              "markerHeight": {
                "type": "number",
                "minimum": 0
              },
              "showOffsetLabels": {
                "type": "boolean"
              },
              "showChainageText": {
                "type": "boolean"
              },
              "showElevationOnLabel": {
                "type": "boolean"
              },
              "textLateralSide": {
                "type": "string",
                "enum": [
                  "centre",
                  "left",
                  "right"
                ]
              },
              "showStationMarks": {
                "type": "boolean"
              },
              "showFallLabels": {
                "type": "boolean"
              },
              "showFallArrows": {
                "type": "boolean"
              },
              "showChannelLevels": {
                "type": "boolean"
              },
              "showChannelLevelLeft": {
                "type": "boolean"
              },
              "showChannelLevelRight": {
                "type": "boolean"
              },
              "showMinorTicks": {
                "type": "boolean",
                "description": "Minor ticks every minorInterval between major stations"
              },
              "showGeometryPoints": {
                "type": "boolean",
                "description": "TP / IP (UK) or PC / PT / PI (US) labels at tangent and intersection points"
              },
              "showCurveData": {
                "type": "boolean",
                "description": "Curve data block (R, L, T, Δ, C) beside each arc"
              },
              "showBearings": {
                "type": "boolean",
                "description": "Bearing and distance beside each straight"
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "updates"
        ]
      },
      "annotations": {
        "title": "Update chainage annotation settings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "update_chamber",
      "description": "Update a chamber's configuration by ID. All dimensions in mm; coverLevel and invertLevel are absolute elevations in mm.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chamberId": {
            "type": "string"
          },
          "chamberType": {
            "type": "string",
            "enum": [
              "standard-manhole",
              "inspection-chamber",
              "joint-box-aj",
              "precast-concrete",
              "brick-built",
              "plastic-chamber"
            ]
          },
          "shape": {
            "type": "string",
            "enum": [
              "rectangle",
              "circle"
            ]
          },
          "width": {
            "type": "number"
          },
          "length": {
            "type": "number"
          },
          "diameter": {
            "type": "number"
          },
          "invertLevel": {
            "type": "number"
          },
          "coverLevel": {
            "type": "number"
          },
          "wallThickness": {
            "type": "number"
          },
          "rotation": {
            "type": "number",
            "description": "Rotation in degrees"
          },
          "reference": {
            "type": "string"
          },
          "loadClass": {
            "type": "string",
            "enum": [
              "A15",
              "B125",
              "C250",
              "D400"
            ]
          },
          "lidShape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle"
            ]
          },
          "lidDiameter": {
            "type": "number",
            "description": "Lid diameter mm (circular)"
          },
          "lidWidth": {
            "type": "number",
            "description": "Lid width mm (rectangular)"
          },
          "lidLength": {
            "type": "number",
            "description": "Lid length mm (rectangular)"
          },
          "lidMaterial": {
            "type": "string",
            "enum": [
              "cast-iron",
              "concrete",
              "composite"
            ]
          },
          "constructionMethod": {
            "type": "string",
            "enum": [
              "in-situ",
              "precast",
              "pre-formed"
            ]
          },
          "wallMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "brick",
              "plastic",
              "composite",
              "steel"
            ]
          }
        },
        "required": [
          "chamberId"
        ]
      },
      "annotations": {
        "title": "Update chamber",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "update_corridor_reserve",
      "description": "Update one existing central reserve through RoadDesignTool.updateCorridorCentralReserve. IDs and adjacency remain immutable; profile, enabled state and explicit feature dimensions/materials may change.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "masterRoadId": {
            "type": "string",
            "minLength": 1
          },
          "reserveId": {
            "type": "string",
            "minLength": 1
          },
          "enabled": {
            "type": "boolean"
          },
          "profile": {
            "type": "string",
            "enum": [
              "none",
              "verge",
              "swale",
              "ditch",
              "barrier-verge"
            ]
          },
          "feature": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "width": {
                "type": "number",
                "minimum": 0
              },
              "leftWidth": {
                "type": "number",
                "minimum": 0
              },
              "rightWidth": {
                "type": "number",
                "minimum": 0
              },
              "crossfall": {
                "type": "number"
              },
              "crossfallInner": {
                "type": "number"
              },
              "crossfallOuter": {
                "type": "number"
              },
              "surfaceType": {
                "type": "string",
                "enum": [
                  "asphalt",
                  "block-paving",
                  "concrete",
                  "flags",
                  "grass"
                ]
              },
              "depth": {
                "type": "number",
                "minimum": 0
              },
              "sideSlope": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "baseWidth": {
                "type": "number",
                "minimum": 0
              },
              "height": {
                "type": "number",
                "minimum": 0
              },
              "material": {
                "type": "string",
                "minLength": 1
              },
              "foundationWidth": {
                "type": "number",
                "minimum": 0
              },
              "foundationDepth": {
                "type": "number",
                "minimum": 0
              },
              "kerbEmbedInBeddingMm": {
                "type": "number",
                "minimum": 0
              },
              "spacing": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "offsetFromCenterline": {
                "type": "number"
              },
              "rotationOffset": {
                "type": "number"
              },
              "scale": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "buildUp": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "surfaceCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    }
                  },
                  "binderCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "baseCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    }
                  },
                  "subBase": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "capping": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "customLayers": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "material": {
                          "type": "string",
                          "minLength": 1
                        },
                        "thickness": {
                          "type": "number",
                          "minimum": 0
                        },
                        "color": {
                          "type": "string",
                          "pattern": "^#[0-9a-fA-F]{6}$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "material",
                        "thickness",
                        "color"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "masterRoadId",
          "reserveId"
        ]
      },
      "annotations": {
        "title": "Update corridor reserve",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_fold_kerb",
      "description": "Set the fold kerb on a channel widening group (Fold kerb dialog): present=false removes it; otherwise set any of kerb preset, type (incl. custom profile / transition), upstand height, width, bedding thickness, embedment depth, haunch width, unit length, material and colour. Omitted fields keep the stored kerb (a preset fills the fields it defines first). Builds the same KerbConfig as the dialog and returns the stored kerb. groupId is the widening group id from inspect_advanced_widenings / get_road_advanced_details (wideningProfile[].groupId). update_widening_group foldKerb edits the same kerb from the Widening drawer.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "groupId": {
            "type": "string",
            "minLength": 1
          },
          "present": {
            "type": "boolean",
            "description": "false removes the fold kerb."
          },
          "enabled": {
            "type": "boolean",
            "description": "Keep the kerb but switch it off (default true, as the dialog Apply does)."
          },
          "kerbPreset": {
            "type": "string",
            "enum": [
              "hb2-915",
              "hb2-600",
              "bullnose-915",
              "splayed-915",
              "dropped-915"
            ],
            "description": "Kerb unit preset (list_road_presets category \"kerbs\") applied before the explicit fields."
          },
          "kerbHeightMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 300,
            "description": "Upstand height (mm)."
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "custom",
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped",
              "transition"
            ],
            "description": "Kerb type (custom = rectangular upstand profile)."
          },
          "material": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ]
          },
          "color": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "description": "Kerb colour #rrggbb."
          },
          "widthMm": {
            "type": "number",
            "minimum": 1,
            "maximum": 1000,
            "description": "Kerb width (mm), default 125."
          },
          "unitLengthMm": {
            "type": "number",
            "minimum": 1,
            "maximum": 5000,
            "description": "Kerb unit length (mm), default 915."
          },
          "beddingThicknessMm": {
            "type": "number",
            "minimum": 1,
            "maximum": 1000,
            "description": "Concrete bed thickness (mm), default 150."
          },
          "embedmentDepthMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000,
            "description": "Depth the kerb sits into the bed (mm), default 50."
          },
          "haunchBottomWidthMm": {
            "type": "number",
            "minimum": 1,
            "maximum": 1000,
            "description": "Haunch bottom width (mm), default 150."
          },
          "customProfile": {
            "type": "array",
            "minItems": 3,
            "maxItems": 64,
            "description": "kerbType custom only: closed profile in mm relative to the channel/ground point (x towards the footway, y up). Omit to keep the stored profile, or to get the drawer's rectangle when width, height or embedment change.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "line",
                    "arc"
                  ],
                  "description": "Segment type to the next point."
                },
                "arcRadius": {
                  "type": "number",
                  "description": "Arc segments: radius in mm (positive bulges outward, negative inward; at least half the chord)."
                },
                "fillet": {
                  "type": "number",
                  "minimum": 0,
                  "description": "Corner radius at this point in mm. Ignored when either adjacent edge is an arc."
                }
              },
              "required": [
                "x",
                "y",
                "type"
              ]
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "groupId",
          "present"
        ]
      },
      "annotations": {
        "title": "Update fold kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "update_junction",
      "description": "Change the kerb fillet radii, triangulation, connection target (channel kerb line vs main road crown), Junction Type or visibility splays (X / Y distance) of an existing junction, in place. The junction is identified by the SIDE road and which of its ends carries the junction — that is how junctions are stored.\n\nTypical radii: 6m for a residential side road, 10-15m for a collector, 4-6m for a path. Use get_junction_details or get_road_details on the side road to see what is currently set.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "The SIDE road that owns the junction (not the main road)."
          },
          "junctionEnd": {
            "type": "string",
            "enum": [
              "start",
              "end"
            ],
            "description": "Which end of the side road carries the junction."
          },
          "leftRadius": {
            "type": "number",
            "description": "New left kerb fillet radius in metres."
          },
          "rightRadius": {
            "type": "number",
            "description": "New right kerb fillet radius in metres."
          },
          "triangulationType": {
            "type": "string",
            "enum": [
              "fan",
              "perpendicular",
              "unified"
            ],
            "description": "Junction surface triangulation mode."
          },
          "projectionTarget": {
            "type": "string",
            "enum": [
              "centerline",
              "mainRoadChannel"
            ],
            "description": "Perpendicular projection target for the junction surface."
          },
          "junctionTo": {
            "type": "string",
            "enum": [
              "channel",
              "crown",
              "outer-edge"
            ],
            "description": "Move the connection: \"channel\" stops at the main road kerb line; \"crown\" runs through to the main road centreline at crown level; \"outer-edge\" connects to the outer edge of a cross-section feature (footpath, verge, swale, etc.) on that side of the main road, leaving inboard features uncut."
          },
          "junctionHostFeatureId": {
            "type": "string",
            "description": "Optional host cross-section feature id (or presetGroupId) when junctionTo is \"outer-edge\" (or to switch which feature an existing outer-edge junction connects onto). Omit to connect to the outermost cross-section feature."
          },
          "type": {
            "type": "string",
            "enum": [
              "priority",
              "roundabout",
              "signal",
              "grade-separated"
            ],
            "description": "Junction Type recorded on the junction (the Edit Road dialog field). Does not change geometry; to build a real roundabout use the convert-to-roundabout tools."
          },
          "xDistance": {
            "type": "number",
            "description": "Visibility splay X distance in metres (positive)."
          },
          "yDistance": {
            "type": "number",
            "description": "Visibility splay Y distance in metres (positive)."
          }
        },
        "required": [
          "roadId",
          "junctionEnd"
        ]
      },
      "annotations": {
        "title": "Update junction",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "high",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_kerb_span",
      "description": "Update an existing kerb span (range, side, kerb type or overrides). Fields omitted are kept.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "kerbSpanId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ]
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped",
              "transition",
              "custom"
            ],
            "description": "Kerb profile inside the span."
          },
          "heightMm": {
            "type": "number",
            "description": "Upstand height (mm). Omit to inherit."
          },
          "widthMm": {
            "type": "number",
            "description": "Kerb width (mm). Omit to inherit."
          },
          "material": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ]
          },
          "color": {
            "type": "string",
            "description": "Hex colour override."
          },
          "unitLengthMm": {
            "type": "number",
            "description": "Kerb unit length (mm), e.g. 915."
          },
          "label": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "roadId",
          "kerbSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update kerb span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-spans"
        ]
      }
    },
    {
      "name": "update_light",
      "description": "Update an existing light or sign. Can change pole height, fixture style, colors, wattage, rotation, etc.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lightId": {
            "type": "string",
            "description": "Light/sign ID"
          },
          "referenceId": {
            "type": "string",
            "description": "Alternative: find by reference ID (e.g. L01)"
          },
          "poleHeight": {
            "type": "number",
            "description": "New pole height in meters"
          },
          "poleMaterial": {
            "type": "string",
            "enum": [
              "steel",
              "aluminum",
              "concrete",
              "composite"
            ]
          },
          "poleColor": {
            "type": "string",
            "description": "Hex color for pole"
          },
          "fixtureStyle": {
            "type": "string",
            "enum": [
              "cobra-head",
              "shoebox",
              "flood"
            ]
          },
          "armLength": {
            "type": "number",
            "description": "Arm length in mm"
          },
          "armAngle": {
            "type": "number",
            "description": "Arm angle in degrees (0-90)"
          },
          "housingColor": {
            "type": "string",
            "description": "Hex color for fixture housing"
          },
          "fixtureCount": {
            "type": "number",
            "description": "1 or 2 fixtures"
          },
          "bulbType": {
            "type": "string",
            "enum": [
              "LED",
              "sodium",
              "metal-halide",
              "mercury-vapor"
            ]
          },
          "wattage": {
            "type": "number"
          },
          "colorTemperature": {
            "type": "number",
            "description": "Kelvin (2700-6500)"
          },
          "rotation": {
            "type": "number",
            "description": "New Y-axis rotation in degrees"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Update light",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-assets"
        ]
      }
    },
    {
      "name": "update_offset_feature",
      "description": "Update one stable offset-feature ID on one side without replacing or reordering any feature. Supports dimensions, crossfalls, surface/material, drainage/boundary dimensions, custom placement and build-up patches.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "featureId": {
            "type": "string",
            "minLength": 1
          },
          "updates": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "footpath",
                  "verge",
                  "swale",
                  "ditch",
                  "wall",
                  "fence",
                  "hedge",
                  "custom"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "enabled": {
                "type": "boolean"
              },
              "width": {
                "type": "number",
                "minimum": 0
              },
              "leftWidth": {
                "type": "number",
                "minimum": 0
              },
              "rightWidth": {
                "type": "number",
                "minimum": 0
              },
              "crossfall": {
                "type": "number"
              },
              "crossfallInner": {
                "type": "number"
              },
              "crossfallOuter": {
                "type": "number"
              },
              "surfaceType": {
                "type": "string",
                "enum": [
                  "asphalt",
                  "block-paving",
                  "concrete",
                  "flags",
                  "grass"
                ]
              },
              "depth": {
                "type": "number",
                "minimum": 0
              },
              "sideSlope": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "baseWidth": {
                "type": "number",
                "minimum": 0
              },
              "height": {
                "type": "number",
                "minimum": 0
              },
              "material": {
                "type": "string",
                "minLength": 1
              },
              "foundationWidth": {
                "type": "number",
                "minimum": 0
              },
              "foundationDepth": {
                "type": "number",
                "minimum": 0
              },
              "kerbEmbedInBeddingMm": {
                "type": "number",
                "minimum": 0
              },
              "spacing": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "offsetFromCenterline": {
                "type": "number"
              },
              "rotationOffset": {
                "type": "number"
              },
              "scale": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "buildUp": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "surfaceCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    }
                  },
                  "binderCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "baseCourse": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    }
                  },
                  "subBase": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "capping": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "material": {
                        "type": "string",
                        "minLength": 1
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 0
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                      }
                    },
                    "nullable": true
                  },
                  "customLayers": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "material": {
                          "type": "string",
                          "minLength": 1
                        },
                        "thickness": {
                          "type": "number",
                          "minimum": 0
                        },
                        "color": {
                          "type": "string",
                          "pattern": "^#[0-9a-fA-F]{6}$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "material",
                        "thickness",
                        "color"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "side",
          "featureId",
          "updates"
        ]
      },
      "annotations": {
        "title": "Update offset feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_offset_feature_widening",
      "description": "Update one offset-feature widening cap through the public RoadDesignTool API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "pointId": {
            "type": "string"
          },
          "chainage": {
            "type": "number"
          },
          "widthDelta": {
            "type": "number",
            "description": "Signed extra channel width in metres."
          },
          "radius": {
            "type": "number",
            "minimum": 0
          },
          "rounded": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId",
          "pointId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update offset feature widening",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_pipe",
      "description": "Update properties of an existing pipe without delete+redraw. Can change diameter, material, color, depth (re-samples all vertices), lateralOffset (re-samples all vertices), or utilityType (re-classifies).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pipeId": {
            "type": "string",
            "description": "Pipe/polyline ID to update."
          },
          "diameter": {
            "type": "number",
            "description": "New diameter in mm."
          },
          "material": {
            "type": "string",
            "description": "New material (e.g. uPVC, HDPE, concrete, ductile-iron)."
          },
          "color": {
            "type": "string",
            "description": "New hex color."
          },
          "depth": {
            "type": "number",
            "description": "New depth below surface in meters (re-samples all vertices)."
          },
          "lateralOffset": {
            "type": "number",
            "description": "New lateral offset in meters (re-samples all vertices)."
          },
          "utilityType": {
            "type": "string",
            "description": "New utility type (re-classifies the pipe)."
          }
        },
        "required": [
          "pipeId"
        ]
      },
      "annotations": {
        "title": "Update pipe",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "full"
        ],
        "groups": [
          "services"
        ]
      }
    },
    {
      "name": "update_plan_item",
      "description": "Update the status of a plan item. Call this as you complete each step to keep the user informed of progress. Status: \"in_progress\" when starting, \"done\" when finished, \"skipped\" if not needed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "item_index": {
            "type": "number",
            "description": "Zero-based index of the item in the plan"
          },
          "status": {
            "type": "string",
            "enum": [
              "todo",
              "in_progress",
              "done",
              "skipped"
            ],
            "description": "New status"
          },
          "note": {
            "type": "string",
            "description": "Optional short note about what was done or why skipped"
          }
        },
        "required": [
          "item_index",
          "status"
        ]
      },
      "annotations": {
        "title": "Update plan item",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "plan"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "update_road_bridge_span",
      "description": "Update an existing bridge span chainage/name/basic structural values through confirmBridgeSpan using a cloned config.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "bridgeSpanId": {
            "type": "string"
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "name": {
            "type": "string"
          },
          "foundingLevel": {
            "type": "number"
          },
          "deckDepthMm": {
            "type": "number"
          },
          "abutmentThicknessMm": {
            "type": "number"
          }
        },
        "required": [
          "roadId",
          "bridgeSpanId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road bridge span",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-bridge"
        ]
      }
    },
    {
      "name": "update_road_cross_section",
      "description": "Update a road's cross-section: channel width, crossfall, kerb type/height, and whether right side mirrors left. Changes regenerate the 3D geometry automatically.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID to update"
          },
          "leftChannelWidth": {
            "type": "number",
            "description": "Left channel width in meters (e.g. 3.5)"
          },
          "rightChannelWidth": {
            "type": "number",
            "description": "Right channel width in meters (only used if rightIsDuplicateOfLeft is false)"
          },
          "leftCrossfall": {
            "type": "number",
            "description": "Left crossfall ratio (e.g. 40 = 1:40)"
          },
          "rightCrossfall": {
            "type": "number",
            "description": "Right crossfall ratio"
          },
          "rightIsDuplicateOfLeft": {
            "type": "boolean",
            "description": "Whether right side mirrors left (default: true)"
          },
          "kerbType": {
            "type": "string",
            "enum": [
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped",
              "transition",
              "custom"
            ],
            "description": "Kerb profile type"
          },
          "kerbHeight": {
            "type": "number",
            "description": "Kerb upstand height in mm (e.g. 125)"
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Update road cross section",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_cross_section_advanced",
      "description": "Immutably apply explicit partial updates to asymmetric channels, kerbs, legacy footways, materials and carriageway/left/right footway construction build-ups. Right-side edits require mirroring to be disabled.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "topSurfaceColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "rightIsDuplicateOfLeft": {
            "type": "boolean"
          },
          "leftEnabled": {
            "type": "boolean"
          },
          "rightEnabled": {
            "type": "boolean"
          },
          "leftCarriagewayEnabled": {
            "type": "boolean"
          },
          "rightCarriagewayEnabled": {
            "type": "boolean"
          },
          "leftKerbEnabled": {
            "type": "boolean"
          },
          "rightKerbEnabled": {
            "type": "boolean"
          },
          "leftFootwayEnabled": {
            "type": "boolean"
          },
          "rightFootwayEnabled": {
            "type": "boolean"
          },
          "left": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "channel": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "crossfall": {
                    "type": "number",
                    "description": "Signed ratio with absolute value >= 1."
                  }
                }
              },
              "kerb": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "half-battered",
                      "bullnose",
                      "splayed",
                      "flush",
                      "dropped",
                      "transition",
                      "custom"
                    ]
                  },
                  "height": {
                    "type": "number",
                    "minimum": 0
                  },
                  "offset": {
                    "type": "number"
                  },
                  "material": {
                    "type": "string",
                    "enum": [
                      "concrete",
                      "granite",
                      "precast"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "unitLength": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "backHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "totalHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "buriedDepth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "channelOverhang": {
                    "type": "number",
                    "minimum": 0
                  },
                  "jointWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "jointColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "beddingThickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "embedmentDepth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "showHaunch": {
                    "type": "boolean"
                  },
                  "haunchBottomWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchTopWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "allowCuts": {
                    "type": "boolean"
                  },
                  "minCutLength": {
                    "type": "number",
                    "minimum": 0
                  },
                  "showIndividualUnits": {
                    "type": "boolean"
                  },
                  "showJoints": {
                    "type": "boolean"
                  },
                  "showBedding": {
                    "type": "boolean"
                  },
                  "beddingColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "customProfile": {
                    "type": "array",
                    "minItems": 3,
                    "maxItems": 200,
                    "description": "Custom Kerb Profile Editor: closed loop of points in mm (x from the channel edge, y up from channel level). Applies only when type is \"custom\".",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "line",
                            "arc"
                          ],
                          "description": "Segment to the next point."
                        },
                        "arcRadius": {
                          "type": "number",
                          "description": "Arc segments: radius in mm (positive bulges outward, negative inward; at least half the chord)."
                        },
                        "fillet": {
                          "type": "number",
                          "minimum": 0,
                          "description": "Corner radius at this point in mm (rounds the corner tangentially, e.g. a bullnose). Ignored when either adjacent edge is an arc."
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "type"
                      ]
                    }
                  }
                }
              },
              "footway": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "crossfall": {
                    "type": "number"
                  },
                  "crossfallInner": {
                    "type": "number"
                  },
                  "crossfallOuter": {
                    "type": "number"
                  },
                  "surfaceType": {
                    "type": "string",
                    "enum": [
                      "asphalt",
                      "block-paving",
                      "concrete",
                      "flags",
                      "grass"
                    ]
                  },
                  "constructionDepth": {
                    "type": "number",
                    "minimum": 0
                  }
                }
              }
            }
          },
          "right": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "channel": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "crossfall": {
                    "type": "number",
                    "description": "Signed ratio with absolute value >= 1."
                  }
                }
              },
              "kerb": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "half-battered",
                      "bullnose",
                      "splayed",
                      "flush",
                      "dropped",
                      "transition",
                      "custom"
                    ]
                  },
                  "height": {
                    "type": "number",
                    "minimum": 0
                  },
                  "offset": {
                    "type": "number"
                  },
                  "material": {
                    "type": "string",
                    "enum": [
                      "concrete",
                      "granite",
                      "precast"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "unitLength": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "backHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "totalHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "buriedDepth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "channelOverhang": {
                    "type": "number",
                    "minimum": 0
                  },
                  "jointWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "jointColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "beddingThickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "embedmentDepth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "showHaunch": {
                    "type": "boolean"
                  },
                  "haunchBottomWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchTopWidth": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchHeight": {
                    "type": "number",
                    "minimum": 0
                  },
                  "haunchColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "allowCuts": {
                    "type": "boolean"
                  },
                  "minCutLength": {
                    "type": "number",
                    "minimum": 0
                  },
                  "showIndividualUnits": {
                    "type": "boolean"
                  },
                  "showJoints": {
                    "type": "boolean"
                  },
                  "showBedding": {
                    "type": "boolean"
                  },
                  "beddingColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "customProfile": {
                    "type": "array",
                    "minItems": 3,
                    "maxItems": 200,
                    "description": "Custom Kerb Profile Editor: closed loop of points in mm (x from the channel edge, y up from channel level). Applies only when type is \"custom\".",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "line",
                            "arc"
                          ],
                          "description": "Segment to the next point."
                        },
                        "arcRadius": {
                          "type": "number",
                          "description": "Arc segments: radius in mm (positive bulges outward, negative inward; at least half the chord)."
                        },
                        "fillet": {
                          "type": "number",
                          "minimum": 0,
                          "description": "Corner radius at this point in mm (rounds the corner tangentially, e.g. a bullnose). Ignored when either adjacent edge is an arc."
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "type"
                      ]
                    }
                  }
                }
              },
              "footway": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "crossfall": {
                    "type": "number"
                  },
                  "crossfallInner": {
                    "type": "number"
                  },
                  "crossfallOuter": {
                    "type": "number"
                  },
                  "surfaceType": {
                    "type": "string",
                    "enum": [
                      "asphalt",
                      "block-paving",
                      "concrete",
                      "flags",
                      "grass"
                    ]
                  },
                  "constructionDepth": {
                    "type": "number",
                    "minimum": 0
                  }
                }
              }
            }
          },
          "carriagewayBuildUp": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "surfaceCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "binderCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "baseCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "subBase": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "capping": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "customLayers": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "material": {
                      "type": "string",
                      "minLength": 1
                    },
                    "thickness": {
                      "type": "number",
                      "minimum": 0
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "material",
                    "thickness",
                    "color"
                  ]
                }
              }
            }
          },
          "leftFootwayBuildUp": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "surfaceCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "binderCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "baseCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "subBase": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "capping": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "customLayers": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "material": {
                      "type": "string",
                      "minLength": 1
                    },
                    "thickness": {
                      "type": "number",
                      "minimum": 0
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "material",
                    "thickness",
                    "color"
                  ]
                }
              }
            }
          },
          "rightFootwayBuildUp": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "surfaceCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "binderCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "baseCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                }
              },
              "subBase": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "capping": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 0
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "nullable": true
              },
              "customLayers": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "material": {
                      "type": "string",
                      "minLength": 1
                    },
                    "thickness": {
                      "type": "number",
                      "minimum": 0
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "material",
                    "thickness",
                    "color"
                  ]
                }
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Update road cross section advanced",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_design_params",
      "description": "Update road design parameters (Road/Line Settings tab and the road drawer Identity group): name, reference, design speed, road class, design standard, bend radius defaults, default sag/crest K, grading-line platform half-width, which ends may take a junction or an end cap, and Stationing (start chainage, station equations).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "name": {
            "type": "string",
            "description": "New road name"
          },
          "referenceId": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "description": "Reference shown in the road drawer Identity group and in exports."
          },
          "designSpeed": {
            "type": "number",
            "description": "Design speed in km/h (e.g. 50, 60, 80, 100, 120)"
          },
          "roadClass": {
            "type": "string",
            "enum": [
              "motorway",
              "trunk",
              "primary",
              "secondary",
              "local",
              "access"
            ],
            "description": "Canonical road class"
          },
          "designStandard": {
            "type": "string",
            "enum": [
              "DMRB",
              "MfS",
              "TII",
              "AASHTO",
              "TAC",
              "AUSTROADS",
              "NZTA",
              "custom"
            ],
            "description": "Design standard (horizontal curve radii) — see roadDesignStandards.ts registry"
          },
          "defaultBendRadius": {
            "type": "number",
            "minimum": 0,
            "description": "Radius (m) applied to new IPs."
          },
          "minBendRadius": {
            "type": "number",
            "minimum": 0,
            "description": "Smallest radius (m) an IP may take."
          },
          "defaultSagK": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Default K value for new sag VIP curves."
          },
          "defaultCrestK": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Default K value for new crest VIP curves."
          },
          "gradingEdgeOffsetM": {
            "type": "number",
            "minimum": 0,
            "description": "Grading lines only: platform half-width (m)."
          },
          "allowStartJunction": {
            "type": "boolean",
            "description": "Start may be joined to another road as a side road."
          },
          "allowEndJunction": {
            "type": "boolean",
            "description": "End may be joined to another road as a side road."
          },
          "allowStartCap": {
            "type": "boolean",
            "description": "Build an end cap at the start."
          },
          "allowEndCap": {
            "type": "boolean",
            "description": "Build an end cap at the end."
          },
          "suppressedAutoJunctionEnds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "start",
                "end"
              ]
            },
            "maxItems": 2,
            "description": "Ends that must not auto re-join a road after an edit ([] clears)."
          },
          "startChainage": {
            "type": "number",
            "description": "Stationing \"Start chainage\" (m) at the first IP. Every stored chainage on the road (VIPs, hosted features, junction records of side roads) is rebased by the same delta, exactly as the Edit Road dialog does."
          },
          "stationEquations": {
            "type": "array",
            "description": "Stationing \"Station equations\" — replaces the whole list ([] clears). Display-only: at rawChainage the displayed station becomes aheadChainage.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Keep an existing equation id; omitted ids are generated."
                },
                "rawChainage": {
                  "type": "number",
                  "description": "Back station: raw chainage (m) where the equation applies."
                },
                "aheadChainage": {
                  "type": "number",
                  "description": "Ahead station: displayed station (m) from this point on."
                }
              },
              "required": [
                "rawChainage",
                "aheadChainage"
              ]
            }
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Update road design params",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_display_settings",
      "description": "Settings > Roads tab: \"Adaptive maximum (recommended)\" (largest triangles on straights, detail kept at curves, junctions and widenings), \"Maximum triangle size\" (m, used when adaptive is off; sets every length band like the slider), and the hide distances (m) for Chainage Markers, Centreline and IP/Curve Handles. Applies through the same settings update the dialog uses and returns the stored values. Omit every field to read them.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadTriangulationAdaptiveMax": {
            "type": "boolean"
          },
          "maxTriangleSizeM": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 200
          },
          "roadChainageHideDistance": {
            "type": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "roadCentrelineHideDistance": {
            "type": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "roadHandlesHideDistance": {
            "type": "number",
            "minimum": 0,
            "maximum": 100000
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road display settings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "scene"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-config"
        ]
      }
    },
    {
      "name": "update_road_grading",
      "description": "Immutably update normalised road grading display, surveys and per-side batter settings. With mirrorSides enabled, a patch to one side is copied to the other; conflicting two-side patches are rejected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "surveyIds": {
            "type": "array",
            "uniqueItems": true,
            "maxItems": 100,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "showGradingMesh": {
            "type": "boolean"
          },
          "adoptMapImagery": {
            "type": "boolean"
          },
          "mirrorSides": {
            "type": "boolean"
          },
          "left": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "ratio": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "maxDistance": {
                "type": "number",
                "minimum": 0
              },
              "direction": {
                "type": "string",
                "enum": [
                  "auto",
                  "cut",
                  "fill"
                ]
              },
              "gradingColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "steps": {
                "type": [
                  "array",
                  "null"
                ],
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "width": {
                      "type": "number",
                      "minimum": 0
                    },
                    "height": {
                      "type": "number"
                    },
                    "force": {
                      "type": "boolean"
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    },
                    "retain": {
                      "type": "object",
                      "additionalProperties": false,
                      "description": "Make this row a retained face (Steps editor \"Make retaining\"): the rise is held by a structure, width becomes the set-back from the edge, height is solved per station and ignored, and force is always true.",
                      "properties": {
                        "structure": {
                          "type": "string",
                          "enum": [
                            "rc-cantilever",
                            "gravity",
                            "gabion",
                            "crib",
                            "sheet-pile",
                            "secant-pile",
                            "reinforced-earth"
                          ]
                        },
                        "batterRatio": {
                          "type": "number",
                          "minimum": 0,
                          "description": "Face lean, run per unit rise (0 = vertical). Default 0.15 for gabion/crib, else 0."
                        },
                        "height": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "{mode:\"fixed\", riseM} stands exactly riseM everywhere; {mode:\"auto\", maxM, minM, batterReachM?} takes the relief up to maxM, dropping out below minM. Default auto 0.5–3 m.",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "auto"
                              ]
                            },
                            "riseM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "maxM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "minM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "batterReachM": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "mode"
                          ]
                        },
                        "facing": {
                          "type": "string",
                          "enum": [
                            "fair-concrete",
                            "stone",
                            "brick",
                            "gabion-basket",
                            "steel"
                          ]
                        },
                        "drainage": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "Weep holes through the face.",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "weepHoleSpacing": {
                              "type": "number",
                              "minimum": 0.1,
                              "description": "Spacing in metres (default 2)."
                            }
                          },
                          "required": [
                            "enabled"
                          ]
                        }
                      },
                      "required": [
                        "structure"
                      ]
                    }
                  },
                  "required": [
                    "width",
                    "height",
                    "force"
                  ]
                }
              }
            }
          },
          "right": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "ratio": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "maxDistance": {
                "type": "number",
                "minimum": 0
              },
              "direction": {
                "type": "string",
                "enum": [
                  "auto",
                  "cut",
                  "fill"
                ]
              },
              "gradingColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "steps": {
                "type": [
                  "array",
                  "null"
                ],
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "width": {
                      "type": "number",
                      "minimum": 0
                    },
                    "height": {
                      "type": "number"
                    },
                    "force": {
                      "type": "boolean"
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    },
                    "retain": {
                      "type": "object",
                      "additionalProperties": false,
                      "description": "Make this row a retained face (Steps editor \"Make retaining\"): the rise is held by a structure, width becomes the set-back from the edge, height is solved per station and ignored, and force is always true.",
                      "properties": {
                        "structure": {
                          "type": "string",
                          "enum": [
                            "rc-cantilever",
                            "gravity",
                            "gabion",
                            "crib",
                            "sheet-pile",
                            "secant-pile",
                            "reinforced-earth"
                          ]
                        },
                        "batterRatio": {
                          "type": "number",
                          "minimum": 0,
                          "description": "Face lean, run per unit rise (0 = vertical). Default 0.15 for gabion/crib, else 0."
                        },
                        "height": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "{mode:\"fixed\", riseM} stands exactly riseM everywhere; {mode:\"auto\", maxM, minM, batterReachM?} takes the relief up to maxM, dropping out below minM. Default auto 0.5–3 m.",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "auto"
                              ]
                            },
                            "riseM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "maxM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "minM": {
                              "type": "number",
                              "minimum": 0
                            },
                            "batterReachM": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "mode"
                          ]
                        },
                        "facing": {
                          "type": "string",
                          "enum": [
                            "fair-concrete",
                            "stone",
                            "brick",
                            "gabion-basket",
                            "steel"
                          ]
                        },
                        "drainage": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "Weep holes through the face.",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "weepHoleSpacing": {
                              "type": "number",
                              "minimum": 0.1,
                              "description": "Spacing in metres (default 2)."
                            }
                          },
                          "required": [
                            "enabled"
                          ]
                        }
                      },
                      "required": [
                        "structure"
                      ]
                    }
                  },
                  "required": [
                    "width",
                    "height",
                    "force"
                  ]
                }
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Update road grading",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "update_road_gully_settings",
      "description": "Merge and persist typed road-native gully settings through updateRoad using a cloned settings object.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "settings": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "roadId",
          "settings"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road gully settings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "update_road_island",
      "description": "Atomically update island properties and deterministic geometry through the public RoadDesignTool API: replace a validated chainage/offset polygon, rebuild a live preset, or move one stable vertex by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "islandId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "surfaceMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "asphalt",
              "tactile"
            ]
          },
          "surfaceColor": {
            "type": "string"
          },
          "surfacePattern": {
            "type": "string",
            "enum": [
              "herringbone",
              "stretcher",
              "basket",
              "plain",
              "diagonal"
            ]
          },
          "kerbConfig": {
            "type": "object",
            "additionalProperties": true
          },
          "kerbUpstandMm": {
            "type": "number",
            "description": "Island kerb upstand above the road (whole mm, as the drawer Upstand field). Not allowed on embedded islands, which sit flush."
          },
          "morphToRoadCrossSection": {
            "type": "boolean"
          },
          "heightAboveRoad": {
            "type": "number"
          },
          "isEmbedded": {
            "type": "boolean"
          },
          "beddingDepth": {
            "type": "number"
          },
          "beddingMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "sand"
            ]
          },
          "buildUp": {
            "type": "object",
            "additionalProperties": true
          },
          "vertices": {
            "type": "array",
            "description": "Replace the complete freeform boundary. Omitted IDs are preserved by index when cardinality is unchanged.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "chainage": {
                  "type": "number"
                },
                "offset": {
                  "type": "number"
                },
                "radius": {
                  "type": "number"
                },
                "radiusOutward": {
                  "type": "boolean"
                }
              },
              "required": [
                "chainage",
                "offset"
              ],
              "additionalProperties": false
            }
          },
          "preset": {
            "type": "string",
            "enum": [
              "rectangular",
              "tapered",
              "diamond",
              "chevron",
              "rounded",
              "pinch-point",
              "partial-refuge",
              "staggered-twin",
              "circular",
              "bus-boarder",
              "lateral-deflection",
              "chicane",
              "cycle-bypass-chicane",
              "roundabout-splitter",
              "flush-mini-roundabout",
              "gateway",
              "ghost-island",
              "corner-bulb-out",
              "y-junction-splitter"
            ]
          },
          "presetOverrides": {
            "type": "object",
            "properties": {
              "lengthM": {
                "type": "number"
              },
              "taperM": {
                "type": "number"
              },
              "widthScale": {
                "type": "number"
              },
              "staggerSpacingM": {
                "type": "number"
              },
              "chicaneSpacingM": {
                "type": "number"
              },
              "circleRadiusM": {
                "type": "number"
              },
              "cornerRadiusM": {
                "type": "number"
              },
              "deflectionSide": {
                "type": "string",
                "enum": [
                  "left",
                  "right"
                ]
              },
              "upstreamLengthM": {
                "type": "number"
              },
              "upstreamWidthScale": {
                "type": "number"
              },
              "downstreamLengthM": {
                "type": "number"
              },
              "downstreamWidthScale": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "anchorChainage": {
            "type": "number",
            "description": "Explicit preset anchor; defaults to the stored group average."
          },
          "groupIslandIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Explicit identity for a legacy multi-island preset lacking presetGroupId."
          },
          "vertexId": {
            "type": "string",
            "description": "Stable vertex ID for a direct move."
          },
          "vertexChainage": {
            "type": "number"
          },
          "vertexOffset": {
            "type": "number"
          },
          "vertexRadius": {
            "type": "number"
          },
          "vertexRadiusOutward": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId",
          "islandId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road island",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_raised_feature",
      "description": "Update a raised table, speed cushion, or surfacing/HFS span without changing its stored feature kind, applying the same field rules as the Raised Table / Speed Bump / Road Surfacing drawer.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "raisedFeatureId": {
            "type": "string"
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "both"
            ],
            "description": "Speed bumps and surfacing: any side. Raised tables stay both."
          },
          "heightMm": {
            "type": "number",
            "description": "Table/cushion height 1–500 mm, or surfacing thickness 1–20 mm."
          },
          "startRampLength": {
            "type": "number",
            "description": "Entry ramp length (m). Not for road surfacing."
          },
          "endRampLength": {
            "type": "number",
            "description": "Exit ramp length (m). Not for road surfacing."
          },
          "lateralRampLength": {
            "type": "number",
            "description": "Speed cushion side ramp length (m). Speed bumps only."
          },
          "material": {
            "type": "string",
            "enum": [
              "asphalt",
              "block-paving",
              "concrete",
              "high-friction-surfacing",
              "coloured-surfacing",
              "high-psv-asphalt"
            ],
            "description": "Raised tables and speed bumps: asphalt, block-paving, concrete. Road surfacing: high-friction-surfacing, coloured-surfacing, high-psv-asphalt (changing it resets colour to the material default unless color is supplied)."
          },
          "color": {
            "type": "string",
            "description": "Display colour as #RRGGBB."
          },
          "label": {
            "type": "string"
          },
          "rampProfile": {
            "type": "string",
            "enum": [
              "linear",
              "sinusoidal",
              "parabolic"
            ],
            "description": "Ramp shape. Not for road surfacing."
          },
          "fullWidth": {
            "type": "boolean",
            "description": "Channel-to-channel width. Speed bumps are never full width."
          },
          "extendIntoSecondaryChannels": {
            "type": "boolean",
            "description": "Extend into parking bays and other secondary channels. Not for road surfacing."
          },
          "inheritCrossSection": {
            "type": "boolean",
            "description": "Adopt the road camber/superelevation profile."
          },
          "innerOffset": {
            "type": "number",
            "description": "Speed bump centreline inset (m). Speed bumps only."
          },
          "outerOffset": {
            "type": "number",
            "description": "Speed bump channel-edge inset (m). Speed bumps only."
          },
          "wrapAtJunction": {
            "type": "boolean",
            "description": "Follow junction fillets and flared channels. Speed bumps only (raised tables always wrap)."
          },
          "showRampArrows": {
            "type": "boolean",
            "description": "Legacy master switch for every ramp arrow. Prefer rampArrows."
          },
          "rampArrows": {
            "type": "object",
            "description": "Upslope ramp arrows as in the drawer: start/end switch every arrow on that ramp; slots sets individual arrows by slotId from get_road_hosted_features raisedFeatureDetails[].rampArrowSlots. Ramps shorter than 0.35 m have no arrows. Not for road surfacing.",
            "properties": {
              "start": {
                "type": "boolean",
                "description": "Entry-ramp arrows."
              },
              "end": {
                "type": "boolean",
                "description": "Exit-ramp arrows."
              },
              "slots": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              }
            },
            "additionalProperties": false
          },
          "rampArrowThicknessMm": {
            "type": "number",
            "description": "Ramp-arrow paint thickness (mm, at least 1). Not for road surfacing."
          },
          "placementPreset": {
            "type": "string",
            "enum": [
              "uk-standard-table",
              "uk-raised-crossing",
              "custom-span",
              "uk-single-left",
              "uk-single-right",
              "uk-single-both",
              "uk-double-left",
              "uk-double-right",
              "uk-double-both",
              "uk-hfs-junction-50",
              "uk-hfs-junction-75",
              "uk-hfs-roundabout",
              "uk-hfs-ped-crossing",
              "uk-hfs-bend",
              "ie-hfs-junction-50",
              "uk-hfs-custom-span"
            ],
            "description": "Ribbon preset id (list_road_presets raisedFeatures). Must match the feature kind; sets the preset label unless label is supplied."
          }
        },
        "required": [
          "roadId",
          "raisedFeatureId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road raised feature",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_tactile_paving",
      "description": "Update an existing tactile paving area through the public confirmTactilePaving API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "tactilePavingId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "transitionKerbId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to a dropped kerb ID, or null to unlink."
          },
          "startChainage": {
            "type": "number"
          },
          "endChainage": {
            "type": "number"
          },
          "pattern": {
            "type": "string",
            "enum": [
              "blister",
              "corduroy",
              "ladder",
              "tramline",
              "guidance",
              "lozenge"
            ]
          },
          "shape": {
            "type": "string",
            "enum": [
              "rectangle",
              "l-shape",
              "t-shape",
              "u-shape",
              "cycleway-split"
            ]
          },
          "colourPreset": {
            "type": "string",
            "enum": [
              "red",
              "buff",
              "yellow",
              "charcoal",
              "grey",
              "custom"
            ]
          },
          "colorHex": {
            "type": "string",
            "description": "Optional custom hex colour (e.g. #b91c1c)."
          },
          "depthM": {
            "type": "number",
            "description": "Depth back from kerb (m); e.g. 1.2 m (3×400 mm) or 0.8 m (2×400 mm)."
          },
          "kerbSetbackM": {
            "type": "number",
            "description": "Setback behind back of kerb (m); 0 m for UK/IE."
          },
          "backEdgeMode": {
            "type": "string",
            "enum": [
              "parallel-to-kerb",
              "square-to-crossing"
            ]
          },
          "crossingAngleDeg": {
            "type": "number",
            "description": "Optional crossing angle (degrees) relative to kerb normal."
          },
          "tileSizeMm": {
            "type": "number",
            "description": "Tile module in mm (default 400)."
          },
          "stemSide": {
            "type": "string",
            "enum": [
              "start",
              "end",
              "center"
            ],
            "description": "Stem side for L/T-shape layouts."
          },
          "stemWidthM": {
            "type": "number",
            "description": "Stem width (m), e.g. 1.2 m (3×400 mm)."
          },
          "stemLengthM": {
            "type": "number",
            "description": "Stem length beyond main pad (m)."
          },
          "show3DStuds": {
            "type": "boolean",
            "description": "Render true 3D instanced tactile studs."
          },
          "label": {
            "type": "string"
          },
          "showPlanLabel": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId",
          "tactilePavingId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road tactile paving",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_road_transition_kerb",
      "description": "Update an existing transition kerb through the public confirmTransitionKerb API, matching the Transition Kerb drawer: P2/P3 chainages and independent heights, style and offset-band drop-through. The live stored config is cloned before changes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "transitionKerbId": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "startChainage": {
            "type": "number",
            "description": "Start chainage in metres."
          },
          "endChainage": {
            "type": "number",
            "description": "End chainage in metres."
          },
          "innerStartChainage": {
            "type": "number",
            "description": "P2 chainage (end of entry taper), at least 0.05 m inside startChainage."
          },
          "innerEndChainage": {
            "type": "number",
            "description": "P3 chainage (start of exit taper), at least 0.05 m inside endChainage and after P2."
          },
          "innerKerbHeightMm": {
            "type": "number",
            "description": "Legacy: sets both P2 and P3 kerb heights (mm). Prefer the independent fields."
          },
          "innerStartKerbHeightMm": {
            "type": "number",
            "description": "P2 kerb height above channel (mm, 0 = flush). Overrides innerKerbHeightMm for P2."
          },
          "innerEndKerbHeightMm": {
            "type": "number",
            "description": "P3 kerb height above channel (mm, 0 = flush). Overrides innerKerbHeightMm for P3."
          },
          "style": {
            "type": "string",
            "enum": [
              "standard",
              "rectangular",
              "triangular"
            ],
            "description": "Drop style: standard drops every offset band full depth."
          },
          "dropBackOfFootpath": {
            "type": "boolean",
            "description": "Legacy flag; derived from dropThroughOffsetFeatureCount > 0 like the drawer when omitted."
          },
          "dropThroughOffsetFeatureCount": {
            "type": "number",
            "description": "Offset bands (from the kerb outward) that follow the drop. Rectangular/triangular only; setting it on a standard kerb switches it to rectangular like the drawer band toggles."
          }
        },
        "required": [
          "roadId",
          "transitionKerbId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update road transition kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_roadside_building",
      "description": "Edit one roadside building (found by id, or by nearest chainage+side) — every field of the building property drawer: type, chainage, side, setback, height, scale, level (verticalOffsetM, or doorLevelM which sets the offset from the road edge level), rotation, access path on/width, auto driveway on, access mode auto|manual, foundation preset, massing on/off, garden on / fall (gardenFallOneIn; null = meet neighbours) / tiers, enable, lock/unlock, anchor road|world (or an explicit worldFrame), clear the drawn plot, reset to automatic, or delete. Like the drawer, edits lock the instance (unless locked:false) and locked, drawn or uploaded houses are frozen in world space. Returns before/after.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "buildingId": {
            "type": "string"
          },
          "nearChainage": {
            "type": "number",
            "description": "Alternative lookup: nearest building to this chainage…"
          },
          "nearSide": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "…on this side."
          },
          "typeId": {
            "type": "string",
            "description": "Preset id or custom:{id}. Clears the drawn plot, as the drawer does."
          },
          "chainage": {
            "type": "number",
            "description": "New chainage (m). Marks the building manual."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "setbackM": {
            "type": "number",
            "minimum": 0
          },
          "heightM": {
            "type": "number",
            "minimum": 0.5
          },
          "scale": {
            "type": "number",
            "minimum": 0.1,
            "description": "Plan/height scale of the massing (1 = preset size)."
          },
          "verticalOffsetM": {
            "type": "number",
            "description": "Metres added to the resolved base level."
          },
          "doorLevelM": {
            "type": "number",
            "description": "Door level (m AOD). Sets verticalOffsetM = doorLevelM − road edge level, as the drawer does."
          },
          "rotationOffsetDeg": {
            "type": "number"
          },
          "accessPathEnabled": {
            "type": "boolean",
            "description": "Needs access paths on in the road settings."
          },
          "accessPathWidthM": {
            "type": "number",
            "minimum": 0.3
          },
          "gardenEnabled": {
            "type": "boolean",
            "description": "true also seeds a garden outline at the road garden depth."
          },
          "gardenFallOneIn": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 100,
            "description": "Garden fall 1 in N down from the house; null = meet neighbours (default). Garden must be on."
          },
          "gardenTiers": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4,
            "description": "Graded steps; 1 = single pad. Garden must be on."
          },
          "drivewayEnabled": {
            "type": "boolean",
            "description": "Auto driveway for this building (road setting must be on)."
          },
          "accessMode": {
            "type": "string",
            "enum": [
              "auto",
              "manual"
            ],
            "description": "auto = path, driveway and front yard follow the plot; manual = none are generated (the user owns them as Areas / Paths). Prefer hand_over_building_access to keep the current shapes."
          },
          "foundationPresetId": {
            "type": "string",
            "enum": [
              "groundBearingSlab",
              "raft",
              "beamAndBlock",
              "stripFooting"
            ],
            "description": "Foundation build-up under the house (Cut & Fill formation): ground-bearing slab, raft, beam and block, strip footings with slab."
          },
          "massingVisible": {
            "type": "boolean",
            "description": "false = pad and foundation only, e.g. under an IFC house imported in place."
          },
          "enabled": {
            "type": "boolean",
            "description": "false hides the building and stops regeneration from recreating it."
          },
          "locked": {
            "type": "boolean",
            "description": "true freezes the building in world space. false unlocks so Place buildings can move it (drawn or uploaded houses stay frozen)."
          },
          "anchor": {
            "type": "string",
            "enum": [
              "road",
              "world"
            ],
            "description": "road = slides with the road; world = frozen at its current place (or worldFrame)."
          },
          "worldFrame": {
            "type": "object",
            "description": "Frozen plot frame (scene metres): origin = house centre, tangent = +x of the plot (road direction), outward = away from the road. Directions are normalised.",
            "properties": {
              "originX": {
                "type": "number"
              },
              "originY": {
                "type": "number"
              },
              "originZ": {
                "type": "number"
              },
              "tangentX": {
                "type": "number"
              },
              "tangentZ": {
                "type": "number"
              },
              "outwardX": {
                "type": "number"
              },
              "outwardZ": {
                "type": "number"
              }
            },
            "required": [
              "originX",
              "originY",
              "originZ",
              "tangentX",
              "tangentZ",
              "outwardX",
              "outwardZ"
            ],
            "additionalProperties": false
          },
          "clearPlot": {
            "type": "boolean",
            "description": "Drop the drawn house/garden/path/driveway outlines."
          },
          "resetToAuto": {
            "type": "boolean",
            "description": "Drawer \"Reset to automatic\": clear every override and hand the building back to Place buildings. Cannot be combined with edits."
          },
          "delete": {
            "type": "boolean",
            "description": "Remove the record entirely."
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update roadside building",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "roadside-buildings"
        ]
      }
    },
    {
      "name": "update_roundabout",
      "description": "Update a true roundabout ring and/or replace its central-island layer configuration using the public roundabout patch builder and RoadDesignTool update method.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Closed-loop roundabout road ID."
          },
          "centerX": {
            "type": "number",
            "description": "New ring centre X in project coordinates (+X east)."
          },
          "centerZ": {
            "type": "number",
            "description": "New ring centre Z in project coordinates (+Z south)."
          },
          "centerLevel": {
            "type": "number",
            "description": "New ring level in metres AOD."
          },
          "radius": {
            "type": "number",
            "minimum": 2,
            "description": "New circulatory centreline radius."
          },
          "circulatoryWidthM": {
            "type": "number",
            "minimum": 3,
            "description": "New kerb-to-kerb circulatory width."
          },
          "name": {
            "type": "string",
            "description": "New roundabout name."
          },
          "centralIsland": {
            "type": "object",
            "description": "Layered landscaped/overrun island configuration.",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "overrunEnabled": {
                "type": "boolean"
              },
              "islandKerbEnabled": {
                "type": "boolean"
              },
              "useCarriagewayBuildUp": {
                "type": "boolean"
              },
              "overrunInheritCarriagewaySurface": {
                "type": "boolean"
              },
              "layers": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "cone",
                        "wall",
                        "overrun"
                      ]
                    },
                    "topDiameterM": {
                      "type": "number",
                      "minimum": 0
                    },
                    "widthM": {
                      "type": "number",
                      "minimum": 0
                    },
                    "sideGradeRatio": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "heightM": {
                      "type": "number",
                      "minimum": 0
                    },
                    "coneSizeBy": {
                      "type": "string",
                      "enum": [
                        "top-diameter",
                        "height"
                      ]
                    },
                    "surfaceColor": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update roundabout",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "road-topology"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_vertical_alignment",
      "description": "Update existing vertical-alignment VIP levels (directly, or via the Road IP drawer Grade In % / Grade Out %), K-values, and active state while preserving VIP identity and chainage order. Identify each VIP by vipId (preferred) or vipIndex. This tool does not add VIPs; use add_vip_point for that. K-values must be non-negative.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "vipUpdates": {
            "type": "array",
            "description": "Existing VIP modifications. Identify each VIP by vipId (preferred) or vipIndex.",
            "items": {
              "type": "object",
              "properties": {
                "vipId": {
                  "type": "string",
                  "description": "Stable VIP ID from get_road_details"
                },
                "vipIndex": {
                  "type": "number",
                  "description": "0-based VIP index (to update existing VIP)"
                },
                "level": {
                  "type": "number",
                  "description": "Elevation in meters"
                },
                "kValue": {
                  "type": "number",
                  "description": "Vertical curve K-value (higher = gentler). 0 = no curve."
                },
                "active": {
                  "type": "boolean",
                  "description": "Whether the vertical curve is active (default: true)"
                },
                "gradeInPercent": {
                  "type": "number",
                  "description": "Road IP drawer \"Grade In %\": back-solves this VIP level from the previous VIP (level = prev.level + (chainage - prev.chainage) * grade / 100). Not on the first VIP; not with level or gradeOutPercent."
                },
                "gradeOutPercent": {
                  "type": "number",
                  "description": "Road IP drawer \"Grade Out %\": back-solves this VIP level from the next VIP (level = next.level - (next.chainage - chainage) * grade / 100). Not on the last VIP; not with level or gradeInPercent."
                },
                "curveLength": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Alignment table \"Curve\" (m): vertical curve length L on an interior VIP; K is derived as L / |grade change|. null or 0 clears the curve. Not with kValue."
                }
              }
            }
          },
          "setAllLevels": {
            "type": "number",
            "description": "Set ALL VIPs to this level (flat road at given elevation)"
          },
          "setAllKValues": {
            "type": "number",
            "description": "Set K-value on ALL middle VIPs"
          }
        },
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Update vertical alignment",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "vertical-profile"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_view_style_settings",
      "description": "Change Styles popover settings exactly as the popover does (persisted view preferences, not model data): triangulation wireframes, contour visibility/spacing/colours per row, services through geometry, point cloud section display, pivot indicator. Pass only the keys to change (names from get_view_style_settings). Spacing is { major, minor } in metres or { majorMm, minorMm }; colours are { major, minor } #rrggbb. Runs the same overlay refreshes the popover runs for each changed key and returns before/after and the refreshes. forceRefresh re-runs refreshes for the given keys even if unchanged. No undo checkpoint is needed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "showRoadTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Road Surface / Islands."
          },
          "showKerbTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Kerbs."
          },
          "showFootpathTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Footpaths."
          },
          "showWideningTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Widening Groups."
          },
          "showVergeTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Verges."
          },
          "showSwaleTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Swales/Ditches."
          },
          "showAreaTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Areas."
          },
          "showGradingTriangulation": {
            "type": "boolean",
            "description": "Triangulation wireframe: Grading."
          },
          "showRoadContours": {
            "type": "boolean",
            "description": "Show Roads contours."
          },
          "roadContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Roads contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "roadContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Roads contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showKerbContours": {
            "type": "boolean",
            "description": "Show Kerbs contours."
          },
          "kerbContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Kerbs contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "kerbContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Kerbs contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showFootpathContours": {
            "type": "boolean",
            "description": "Show Footpaths contours."
          },
          "footpathContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Footpaths contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "footpathContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Footpaths contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showAreaContours": {
            "type": "boolean",
            "description": "Show Areas contours."
          },
          "areaContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Areas contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "areaContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Areas contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showPondContours": {
            "type": "boolean",
            "description": "Show Ponds contours."
          },
          "pondContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Ponds contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "pondContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Ponds contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showGradingContours": {
            "type": "boolean",
            "description": "Show Grading contours."
          },
          "gradingContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Grading contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "gradingContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Grading contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showImportedSurveyContours": {
            "type": "boolean",
            "description": "Show Survey contours."
          },
          "surveyImportContourSpacing": {
            "type": "object",
            "additionalProperties": false,
            "description": "Survey contour spacing. Metres (major/minor) or millimetres (majorMm/minorMm); omitted parts keep their current value.",
            "properties": {
              "major": {
                "type": "number",
                "minimum": 0.001,
                "description": "Major interval, metres."
              },
              "minor": {
                "type": "number",
                "minimum": 0.001,
                "description": "Minor interval, metres."
              },
              "majorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Major interval, millimetres."
              },
              "minorMm": {
                "type": "number",
                "minimum": 1,
                "description": "Minor interval, millimetres."
              }
            }
          },
          "surveyImportContourColors": {
            "type": "object",
            "additionalProperties": false,
            "description": "Survey contour colours as #rrggbb.",
            "properties": {
              "major": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "minor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "showServicesThroughGeometry": {
            "type": "boolean",
            "description": "See services through geometry"
          },
          "pipeFlowAnimation": {
            "type": "boolean",
            "description": "Running water flows downstream along storm and foul pipes"
          },
          "pointCloudSectionMode": {
            "type": "string",
            "enum": [
              "line",
              "dots"
            ],
            "description": "Sections Display: line = Ground profile line, dots = Point cloud dots."
          },
          "orbitIndicatorVisible": {
            "type": "boolean",
            "description": "Show pivot indicator"
          },
          "forceRefresh": {
            "type": "boolean",
            "description": "Re-run the refreshes for the given keys even when unchanged."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Update view style settings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-verify"
        ]
      }
    },
    {
      "name": "update_widening_group",
      "description": "Update group-level properties of a widening zone, i.e. every field of the Widening drawer: crossfall (or Inherit), surface finish, high-quality 3D paver geometry and block dimensions, build-up override (preset or full per-layer build-up, or off), and the fold-line upstand kerb (add/remove, on/off, type incl. custom profile and transition, height, width, bedding, embedment, haunch, unit length, material, colour). Writes go through the same RoadDesignTool methods as the drawer. offset changes the width of every widened point.\nProperties apply to ALL points in the group; the response returns the stored group (read it any time with get_road_advanced_details section \"widenings\").\n\nFold kerb heights: 0=flush, 6=delineation, 25=standard parking bay, 125=full kerb. Omitted fold kerb fields keep the stored values; adding a kerb uses the drawer defaults.\nSurface finishes: asphalt, block-paving, permeable-paving, flagstone, setts, concrete. Changing the finish resets paver dimensions to that finish's defaults unless paverDimensions is sent.\nCrossfall: ratio value. Positive (e.g. 40 = 1:40) slopes away from road. Negative (e.g. -40, -20) slopes towards road. null = Inherit the road crossfall (mitre widening groups are always Inherit).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "groupId": {
            "type": "string",
            "description": "Widening group ID (from get_road_details)"
          },
          "offset": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "New widening offset/width in meters for all non-zero-offset points in the group"
          },
          "foldKerbHeight": {
            "type": "number",
            "minimum": 0,
            "description": "Shorthand for foldKerb.heightMm: fold line kerb upstand in mm (0=flush, 6=delineation, 25=standard)"
          },
          "foldKerbType": {
            "type": "string",
            "enum": [
              "custom",
              "half-battered",
              "bullnose",
              "splayed",
              "flush",
              "dropped",
              "transition"
            ],
            "description": "Shorthand for foldKerb.kerbType"
          },
          "foldKerbMaterial": {
            "type": "string",
            "enum": [
              "concrete",
              "granite",
              "precast"
            ],
            "description": "Shorthand for foldKerb.material"
          },
          "foldKerb": {
            "type": "object",
            "additionalProperties": false,
            "description": "Upstand kerb group of the drawer.",
            "properties": {
              "present": {
                "type": "boolean",
                "description": "false = Remove upstand kerb; true (default when any field is sent) = Add / keep it."
              },
              "enabled": {
                "type": "boolean",
                "description": "Upstand kerb switch. Off keeps the kerb settings without drawing it."
              },
              "heightMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000,
                "description": "Upstand height (mm)."
              },
              "kerbType": {
                "type": "string",
                "enum": [
                  "custom",
                  "half-battered",
                  "bullnose",
                  "splayed",
                  "flush",
                  "dropped",
                  "transition"
                ],
                "description": "Kerb type (custom = rectangular upstand profile)."
              },
              "material": {
                "type": "string",
                "enum": [
                  "concrete",
                  "granite",
                  "precast"
                ]
              },
              "color": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$",
                "description": "Kerb colour #rrggbb."
              },
              "widthMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000,
                "description": "Kerb width (mm), default 125."
              },
              "unitLengthMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 5000,
                "description": "Kerb unit length (mm), default 915."
              },
              "beddingThicknessMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000,
                "description": "Concrete bed thickness (mm), default 150."
              },
              "embedmentDepthMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000,
                "description": "Depth the kerb sits into the bed (mm), default 50."
              },
              "haunchBottomWidthMm": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000,
                "description": "Haunch bottom width (mm), default 150."
              },
              "customProfile": {
                "type": "array",
                "minItems": 3,
                "maxItems": 64,
                "description": "kerbType custom only: closed profile in mm relative to the channel/ground point (x towards the footway, y up). Omit to keep the stored profile, or to get the drawer's rectangle when width, height or embedment change.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "line",
                        "arc"
                      ],
                      "description": "Segment type to the next point."
                    },
                    "arcRadius": {
                      "type": "number",
                      "description": "Arc segments: radius in mm (positive bulges outward, negative inward; at least half the chord)."
                    },
                    "fillet": {
                      "type": "number",
                      "minimum": 0,
                      "description": "Corner radius at this point in mm. Ignored when either adjacent edge is an arc."
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "type"
                  ]
                }
              }
            }
          },
          "overrideBuildUp": {
            "type": "boolean",
            "description": "\"Override road build-up\" switch. false = use the road build-up; true alone copies the road build-up as the starting override."
          },
          "buildUpPreset": {
            "type": "string",
            "enum": [
              "residential",
              "industrial",
              "footway",
              "footpath"
            ],
            "description": "Load a build-up preset as the override."
          },
          "buildUp": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "Full build-up override (same layers as the drawer: colour, material, thickness, custom layers). null turns \"Override road build-up\" off. totalDepth is recomputed.",
            "properties": {
              "surfaceCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "material": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5000,
                    "description": "mm"
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "material",
                  "thickness",
                  "color"
                ]
              },
              "binderCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "material": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5000,
                    "description": "mm"
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "material",
                  "thickness",
                  "color"
                ]
              },
              "baseCourse": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "material": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5000,
                    "description": "mm"
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "material",
                  "thickness",
                  "color"
                ]
              },
              "subBase": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "material": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5000,
                    "description": "mm"
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "material",
                  "thickness",
                  "color"
                ]
              },
              "capping": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "material": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "thickness": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5000,
                    "description": "mm"
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "material",
                  "thickness",
                  "color"
                ]
              },
              "customLayers": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "material": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "thickness": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 5000,
                      "description": "mm"
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$"
                    }
                  },
                  "required": [
                    "material",
                    "thickness",
                    "color"
                  ]
                }
              },
              "totalDepth": {
                "type": "number",
                "description": "Ignored; recomputed from the layers."
              }
            },
            "required": [
              "surfaceCourse",
              "baseCourse",
              "subBase"
            ]
          },
          "surfaceFinish": {
            "type": "string",
            "enum": [
              "asphalt",
              "block-paving",
              "permeable-paving",
              "flagstone",
              "setts",
              "concrete"
            ],
            "description": "Surface finish type"
          },
          "highQualityGeometry": {
            "type": "boolean",
            "description": "High-quality 3D paver geometry (paved finishes only)."
          },
          "paverDimensions": {
            "type": "object",
            "additionalProperties": false,
            "description": "Block Length / Width / Depth / Joint Width in mm (needs highQualityGeometry). Omitted fields keep the current or finish default.",
            "properties": {
              "length": {
                "type": "number",
                "minimum": 1,
                "maximum": 5000
              },
              "width": {
                "type": "number",
                "minimum": 1,
                "maximum": 5000
              },
              "depth": {
                "type": "number",
                "minimum": 1,
                "maximum": 1000
              },
              "jointWidth": {
                "type": "number",
                "minimum": 1,
                "maximum": 100
              }
            }
          },
          "wideningCrossfall": {
            "type": [
              "number",
              "null"
            ],
            "description": "Crossfall ratio for widened zone. Positive (e.g. 40) slopes away from road. Negative (e.g. -40, -20) slopes towards road. null = Inherit."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "groupId"
        ]
      },
      "annotations": {
        "title": "Update widening group",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "update_widening_point",
      "description": "Update an individual widening point's properties: chainage position, offset distance, or curve radius. Goes through the same batch updater as the bottom-ribbon point fields, so chainage is clamped between neighbours and mitre, lane-shift and bend pairs stay in sync; read the actual values back from point/affectedPoints. Use get_road_details to see existing widening points with their IDs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Road ID"
          },
          "pointId": {
            "type": "string",
            "description": "Widening point ID (from get_road_details)"
          },
          "chainage": {
            "type": "number",
            "description": "New chainage position (meters)"
          },
          "offset": {
            "type": "number",
            "description": "New offset distance (meters, positive=widen)"
          },
          "radius": {
            "type": "number",
            "description": "Curve radius at this point (meters, 0=sharp corner)"
          }
        },
        "required": [
          "roadId",
          "pointId"
        ]
      },
      "annotations": {
        "title": "Update widening point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry",
            "widening"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-edit"
        ]
      }
    },
    {
      "name": "upsert_grading_region",
      "description": "Create or edit a grading region: a stretch of one road edge (chainage start–end) with its own interface that eases in and out over merge lengths (Grading region drawer). override carries the drawer's interface: batter on/off, ratio, max distance, direction, grading colour, and the Steps table (graded steps and retained faces; steps replaces the whole table, null clears it). Omit regionId to create. Read regions with get_road_grading. Regions that run through a junction share a groupId; merge, label and batter edits reach every piece.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "regionId": {
            "type": "string",
            "minLength": 1,
            "description": "Existing region id; omit to create."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "start": {
            "type": "number",
            "description": "Start chainage (m)."
          },
          "end": {
            "type": "number",
            "description": "End chainage (m)."
          },
          "mergeStartLength": {
            "type": "number",
            "minimum": 0
          },
          "mergeEndLength": {
            "type": "number",
            "minimum": 0
          },
          "label": {
            "type": "string",
            "maxLength": 120
          },
          "override": {
            "type": "object",
            "additionalProperties": false,
            "description": "Interface used inside the region (replaces the side setting over the stretch): the Grade tab fields, colour and the Steps table.",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "ratio": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "1:N batter ratio."
              },
              "maxDistance": {
                "type": "number",
                "minimum": 0,
                "description": "Maximum daylight distance (m)."
              },
              "direction": {
                "type": "string",
                "enum": [
                  "auto",
                  "cut",
                  "fill"
                ]
              },
              "gradingColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$",
                "description": "Grading colour #rrggbb."
              },
              "steps": {
                "type": [
                  "array",
                  "null"
                ],
                "maxItems": 50,
                "description": "Stepped interface walked out from the edge before the batter, replacing the whole table. null or [] clears it.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "width": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 500,
                      "description": "Plan width outward from the previous step (m); set-back for a retained face."
                    },
                    "height": {
                      "type": "number",
                      "minimum": -100,
                      "maximum": 100,
                      "description": "Rise across the width (m); negative steps down away from the road. Required unless retain is set."
                    },
                    "force": {
                      "type": "boolean",
                      "description": "Form the step even where ground is met first (always true for a retained face)."
                    },
                    "color": {
                      "type": "string",
                      "pattern": "^#[0-9a-fA-F]{6}$",
                      "description": "Band colour #rrggbb; omit for the grading colour."
                    },
                    "retain": {
                      "type": "object",
                      "additionalProperties": false,
                      "description": "Makes the row a retained face: width becomes the set-back from the edge and the rise is held by the structure (height ignored, always formed).",
                      "properties": {
                        "structure": {
                          "type": "string",
                          "enum": [
                            "rc-cantilever",
                            "gravity",
                            "gabion",
                            "crib",
                            "sheet-pile",
                            "secant-pile",
                            "reinforced-earth"
                          ]
                        },
                        "batterRatio": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10,
                          "description": "Face batter as run per unit rise (0 = vertical; the drawer's 1:N face batter is 1/N)."
                        },
                        "height": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "Height mode. fixed: riseM everywhere. auto: take the relief up to maxM, nothing below minM; batterReachM limits the batter room beyond the face.",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "auto"
                              ]
                            },
                            "riseM": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 50,
                              "description": "fixed only."
                            },
                            "maxM": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 50,
                              "description": "auto only."
                            },
                            "minM": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 50,
                              "description": "auto only; must not exceed maxM."
                            },
                            "batterReachM": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 500,
                              "description": "auto only, optional."
                            }
                          },
                          "required": [
                            "mode"
                          ]
                        },
                        "facing": {
                          "type": "string",
                          "enum": [
                            "fair-concrete",
                            "stone",
                            "brick",
                            "gabion-basket",
                            "steel"
                          ],
                          "description": "Omit for the structure default."
                        },
                        "drainage": {
                          "type": "object",
                          "additionalProperties": false,
                          "description": "Drainage / weep holes.",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "weepHoleSpacing": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 100,
                              "description": "Weep hole spacing (m), default 2."
                            }
                          },
                          "required": [
                            "enabled"
                          ]
                        }
                      },
                      "required": [
                        "structure",
                        "batterRatio",
                        "height"
                      ]
                    }
                  },
                  "required": [
                    "width"
                  ]
                }
              }
            }
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId"
        ]
      },
      "annotations": {
        "title": "Upsert grading region",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "upsert_island_drop_kerb",
      "description": "Create or edit a drop kerb on a traffic island kerb (Island drop kerb dialog). Distances are metres along the island perimeter from its first vertex. The kerb drops from the island upstand at startDistance to innerStartHeightMm at innerStartDistance, runs to innerEndDistance, then climbs back from innerEndHeightMm to the upstand at endDistance; each end is set independently, like the dialog. transitionLengthM / innerHeightMm are shorthands that fill whichever end is not given explicitly. Omit dropKerbId to create; an edit keeps each end's stored ramp length and height. Read islands and their transitionKerbs with get_road_hosted_features.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "minLength": 1
          },
          "islandId": {
            "type": "string",
            "minLength": 1
          },
          "dropKerbId": {
            "type": "string",
            "minLength": 1,
            "description": "Existing island drop kerb id to edit; omit to create."
          },
          "startDistance": {
            "type": "number",
            "minimum": 0
          },
          "endDistance": {
            "type": "number",
            "minimum": 0
          },
          "innerStartDistance": {
            "type": "number",
            "minimum": 0,
            "description": "Perimeter distance where the entry ramp ends (P2)."
          },
          "innerEndDistance": {
            "type": "number",
            "minimum": 0,
            "description": "Perimeter distance where the exit ramp starts (P3)."
          },
          "innerStartHeightMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 300,
            "description": "Kerb height at the inner start (mm)."
          },
          "innerEndHeightMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 300,
            "description": "Kerb height at the inner end (mm)."
          },
          "transitionLengthM": {
            "type": "number",
            "minimum": 0,
            "maximum": 10,
            "description": "Shorthand ramp length for any end without an explicit inner distance (default 0.9 m)."
          },
          "innerHeightMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 300,
            "description": "Shorthand height for any end without an explicit inner height (default 0 = flush)."
          }
        },
        "additionalProperties": false,
        "required": [
          "roadId",
          "islandId",
          "startDistance",
          "endDistance"
        ]
      },
      "annotations": {
        "title": "Upsert island drop kerb",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "road-geometry"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-detail"
        ]
      }
    },
    {
      "name": "upsert_road_freeform_svg_marking",
      "description": "Create or edit one freeform SVG road marking (Freeform Markings dialog SVG tab): SVG source, reference line, chainage, lateral offset, rotation, scale, size, extrusion and colour override. Height follows the SVG aspect ratio unless given. Commits through applyRoadMarkings; the road needs at least one line, arrow or stop line.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "svgMarkingId": {
            "type": "string",
            "description": "Existing SVG marking id to edit; omit to create."
          },
          "svgContent": {
            "type": "string",
            "description": "Complete <svg> document text. Required on create."
          },
          "svgName": {
            "type": "string"
          },
          "association": {
            "type": "string",
            "enum": [
              "centreline",
              "left-channel",
              "right-channel"
            ]
          },
          "chainage": {
            "type": "number",
            "description": "Road-relative chainage (m). Required on create."
          },
          "lateralOffset": {
            "type": "number",
            "description": "Offset from the reference line (m)."
          },
          "rotation": {
            "type": "number",
            "description": "Degrees from road direction, −180 to 180."
          },
          "scale": {
            "type": "number",
            "description": "Scale factor, 0.1–3."
          },
          "width": {
            "type": "number",
            "description": "Bounding width (m, 0.1–10). Default 1."
          },
          "height": {
            "type": "number",
            "description": "Bounding height (m, 0.1–10). Defaults from the SVG aspect ratio."
          },
          "extrusionDepthMm": {
            "type": "number",
            "description": "Paint depth (mm, 1–20). Default 3."
          },
          "colorOverride": {
            "type": [
              "string",
              "null"
            ],
            "description": "#RRGGBB applied to every path; null keeps SVG colours."
          },
          "surfaceOffsetMm": {
            "type": "number",
            "description": "Lift above the road surface (mm, 0–50). Default 3."
          },
          "snapToSurface": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road freeform svg marking",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "upsert_road_gully",
      "description": "Create or update a persisted road-native gully at a validated chainage. No world position or drainage geometry is fabricated.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "gullyId": {
            "type": "string",
            "description": "Existing stable ID to update; omit to create."
          },
          "chainage": {
            "type": "number"
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "triple"
            ]
          },
          "grateType": {
            "type": "string",
            "enum": [
              "flat",
              "dished",
              "kerb-inlet"
            ]
          },
          "grateWidthMm": {
            "type": "number"
          },
          "grateLengthMm": {
            "type": "number"
          },
          "lateralOffset": {
            "type": "number"
          },
          "enabled": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "rotation": {
            "type": "number"
          }
        },
        "required": [
          "roadId",
          "chainage",
          "side"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road gully",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "road-geometry",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "drainage"
        ]
      }
    },
    {
      "name": "upsert_road_marking_arrow",
      "description": "Create or edit one painted direction arrow (Freeform Markings dialog, UK TSRGD 4.8 × 1.5 m by default). Commits through applyRoadMarkings and returns the stored arrow.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "arrowId": {
            "type": "string",
            "description": "Existing arrow id to edit; omit to create."
          },
          "arrowType": {
            "type": "string",
            "enum": [
              "ahead",
              "left",
              "right",
              "ahead-left",
              "ahead-right",
              "left-right",
              "ahead-left-right",
              "merge-left",
              "merge-right",
              "lane-end",
              "u-turn"
            ],
            "description": "Required on create."
          },
          "association": {
            "type": "string",
            "enum": [
              "centreline",
              "left-channel",
              "right-channel"
            ],
            "description": "Reference line; the dialog places arrows from the centreline."
          },
          "chainage": {
            "type": "number",
            "description": "Road-relative chainage (m). Required on create."
          },
          "offset": {
            "type": "number",
            "description": "Lateral offset from the association line (m)."
          },
          "rotation": {
            "type": "number",
            "description": "Degrees from road direction, −180 to 180."
          },
          "scale": {
            "type": "number",
            "description": "Overall scale, 0.5–2."
          },
          "length": {
            "type": "number",
            "description": "Arrow length (m, 0.5–20)."
          },
          "width": {
            "type": "number",
            "description": "Arrow width (m, 0.2–5)."
          },
          "color": {
            "type": "string",
            "description": "#RRGGBB, default white."
          },
          "thicknessMm": {
            "type": "number",
            "description": "Paint thickness (mm, 1–20)."
          },
          "snapToSurface": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road marking arrow",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "upsert_road_marking_line",
      "description": "Create or edit one parallel road marking line (Parallel Markings dialog): pattern, Add Left/Centre/Right association, offset, extent, width/colour/dash overrides, caps, junction stop and junction-mouth extensions. Merges into the stored config and commits through applyRoadMarkings; returns the stored (normalised) line.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "markingLineId": {
            "type": "string",
            "description": "Existing line id to edit; omit to create."
          },
          "patternId": {
            "type": "string",
            "enum": [
              "uk-centre-line-normal",
              "uk-centre-line-hazard",
              "uk-double-white-continuous",
              "uk-double-white-left-continuous",
              "uk-double-white-right-continuous",
              "uk-edge-line",
              "uk-edge-line-dashed",
              "uk-edge-line-hatched",
              "uk-lane-line",
              "uk-lane-destination",
              "uk-bus-lane-edge",
              "uk-bus-lane-continuous",
              "uk-cycle-lane-mandatory",
              "uk-cycle-lane-advisory",
              "uk-parking-bay",
              "uk-double-yellow",
              "uk-single-yellow",
              "uk-red-route-double",
              "uk-red-route-single"
            ],
            "description": "Parallel marking pattern. Required on create; changing it resets thickness/material to the pattern defaults."
          },
          "name": {
            "type": "string"
          },
          "association": {
            "type": "string",
            "enum": [
              "centreline",
              "left-channel",
              "right-channel"
            ],
            "description": "Add Left (left-channel), Add Centre (centreline) or Add Right (right-channel). Required on create."
          },
          "offset": {
            "type": "number",
            "description": "Offset from the association line (m), positive toward the road centre."
          },
          "startChainage": {
            "type": "number",
            "description": "Road-relative start (m). Defaults to the road start on create."
          },
          "endChainage": {
            "type": "number",
            "description": "Road-relative end (m). Defaults to the road end on create."
          },
          "widthMm": {
            "type": "number",
            "description": "Line width override, 10–500 mm. Equal to the pattern width clears the override."
          },
          "color": {
            "type": "string",
            "description": "Colour override #RRGGBB."
          },
          "dashLengthMm": {
            "type": "number",
            "description": "Dash length override (mm, 0 = continuous)."
          },
          "gapLengthMm": {
            "type": "number",
            "description": "Gap length override (mm)."
          },
          "resetOverrides": {
            "type": "boolean",
            "description": "Clear width/colour/dash/gap overrides before applying this call."
          },
          "thicknessMm": {
            "type": "number",
            "description": "Paint thickness (mm, 1–20)."
          },
          "material": {
            "type": "string",
            "enum": [
              "paint",
              "thermoplastic",
              "preformed",
              "tape",
              "cold-applied"
            ]
          },
          "reflectivity": {
            "type": "string",
            "enum": [
              "standard",
              "enhanced",
              "high-visibility"
            ]
          },
          "roundedCaps": {
            "type": "boolean"
          },
          "stopAtJunctions": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "startExtension": {
            "type": [
              "object",
              "null"
            ],
            "description": "Continue a channel line around a junction mouth; null clears it. viaSide must match the line channel side.",
            "properties": {
              "junctionId": {
                "type": "string"
              },
              "viaSide": {
                "type": "string",
                "enum": [
                  "left",
                  "right"
                ]
              },
              "arcFraction": {
                "type": "number",
                "description": "0–1 along the fillet arc; 1 reaches the other road."
              },
              "toRoadId": {
                "type": "string",
                "description": "Road the marking continues onto (needs arcFraction 1)."
              },
              "toChainage": {
                "type": "number",
                "description": "Road-relative end chainage on toRoadId."
              }
            },
            "required": [
              "junctionId",
              "viaSide",
              "arcFraction"
            ],
            "additionalProperties": false
          },
          "endExtension": {
            "type": [
              "object",
              "null"
            ],
            "description": "Continue a channel line around a junction mouth; null clears it. viaSide must match the line channel side.",
            "properties": {
              "junctionId": {
                "type": "string"
              },
              "viaSide": {
                "type": "string",
                "enum": [
                  "left",
                  "right"
                ]
              },
              "arcFraction": {
                "type": "number",
                "description": "0–1 along the fillet arc; 1 reaches the other road."
              },
              "toRoadId": {
                "type": "string",
                "description": "Road the marking continues onto (needs arcFraction 1)."
              },
              "toChainage": {
                "type": "number",
                "description": "Road-relative end chainage on toRoadId."
              }
            },
            "required": [
              "junctionId",
              "viaSide",
              "arcFraction"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road marking line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "upsert_road_marking_text",
      "description": "Create or edit one road text legend (Freeform Markings dialog: SLOW, BUS STOP, custom...). Stored in the marking config through applyRoadMarkings; the 3D builder does not draw text legends yet (postconditions.rendered is false). The road needs at least one line, arrow or stop line.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "textId": {
            "type": "string",
            "description": "Existing text id to edit; omit to create."
          },
          "textType": {
            "type": "string",
            "enum": [
              "SLOW",
              "STOP",
              "GIVE WAY",
              "KEEP CLEAR",
              "BUS LANE",
              "BUS STOP",
              "CYCLE",
              "TAXI",
              "SCHOOL",
              "LOOK LEFT",
              "LOOK RIGHT",
              "NO ENTRY",
              "custom"
            ],
            "description": "Required on create; custom needs customText."
          },
          "customText": {
            "type": "string",
            "description": "Legend for textType custom (stored upper-case)."
          },
          "association": {
            "type": "string",
            "enum": [
              "centreline",
              "left-channel",
              "right-channel"
            ]
          },
          "chainage": {
            "type": "number",
            "description": "Road-relative chainage (m). Required on create."
          },
          "offset": {
            "type": "number",
            "description": "Lateral offset (m)."
          },
          "rotation": {
            "type": "number",
            "description": "Degrees from road direction, −180 to 180."
          },
          "characterHeight": {
            "type": "number",
            "description": "Character height (m, 0.8–4). Default 1.6."
          },
          "color": {
            "type": "string",
            "description": "#RRGGBB, default white."
          },
          "thicknessMm": {
            "type": "number",
            "description": "Paint thickness (mm, 1–20)."
          },
          "font": {
            "type": "string",
            "enum": [
              "transport-heavy",
              "transport-medium",
              "custom"
            ]
          },
          "snapToSurface": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road marking text",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "upsert_road_stop_line",
      "description": "Create or edit one transverse stop / give-way / cycle-stop line (Perpendicular Markings dialog). Changing type re-applies that type's width, dash and text defaults unless given. Commits through applyRoadMarkings and returns the stored line.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string"
          },
          "stopLineId": {
            "type": "string",
            "description": "Existing stop line id to edit; omit to create."
          },
          "type": {
            "type": "string",
            "enum": [
              "stop",
              "give-way",
              "cycle-stop"
            ],
            "description": "Required on create."
          },
          "chainage": {
            "type": "number",
            "description": "Road-relative chainage (m). Required on create."
          },
          "startOffset": {
            "type": "number",
            "description": "Start offset from centreline (m); defaults to the far edge of the left channel."
          },
          "endOffset": {
            "type": "number",
            "description": "End offset from centreline (m); defaults to the far edge of the right channel."
          },
          "lineWidthMm": {
            "type": "number",
            "description": "Line width (mm, 50–1000). Defaults: stop 300, others 200."
          },
          "dashLengthMm": {
            "type": "number",
            "description": "Dash length (mm); give-way default 600."
          },
          "gapLengthMm": {
            "type": "number",
            "description": "Gap length (mm); give-way default 300."
          },
          "color": {
            "type": "string",
            "description": "#RRGGBB, default white."
          },
          "thicknessMm": {
            "type": "number",
            "description": "Paint thickness (mm, 1–20)."
          },
          "includeText": {
            "type": "boolean",
            "description": "Stored only: STOP / GIVE WAY legend (text is not rendered yet)."
          },
          "textType": {
            "type": "string",
            "enum": [
              "STOP",
              "GIVE WAY"
            ]
          },
          "junctionId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Associated junction; null clears it."
          },
          "snapToSurface": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          }
        },
        "required": [
          "roadId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Upsert road stop line",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": true,
          "requiresSequential": true,
          "idempotent": false,
          "invalidates": [
            "scene",
            "selection"
          ],
          "risk": "medium",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "road-markings"
        ]
      }
    },
    {
      "name": "verify_drawing_scale",
      "description": "Independently check that the imported drawing is at the correct scale, using measured carriageway widths from paired kerb lines (whole strokes first, then local channel pairing for broken kerbs) plus any scale ratio printed on the drawing. Pass the same edgeLayers and supportLayers you gave derive_road_centrelines_from_drawing. Run this BEFORE building anything from a drawing: a mis-scaled overlay produces geometry that is self-consistent and completely wrong. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "cad",
              "pdf"
            ]
          },
          "edgeLayers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Kerb/edge layer names. Omit to use the classifier result."
          },
          "supportLayers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Layers that may hold the far kerb. Omit to use the layers classified as footway."
          },
          "knownDimension": {
            "type": "object",
            "description": "Optional independent calibration check in current scene-local coordinates.",
            "properties": {
              "start": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "z": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "z"
                ],
                "additionalProperties": false
              },
              "end": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "z": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "z"
                ],
                "additionalProperties": false
              },
              "distanceMetres": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "toleranceRatio": {
                "type": "number",
                "minimum": 0.001,
                "maximum": 0.1
              }
            },
            "required": [
              "start",
              "end",
              "distanceMetres"
            ],
            "additionalProperties": false
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Verify drawing scale",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "road-workflow"
          ],
          "stages": [
            "discovery",
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "road-network",
          "drawing"
        ]
      }
    },
    {
      "name": "visual_inspection",
      "description": "Perform a structured multi-zoom visual inspection of an area. Captures screenshots at different zoom levels and angles centred on a target point or road.\n\nONLY use this tool when the user EXPLICITLY asks you to verify, check, or show the result. Do NOT use this tool automatically after placement tasks — trust the tool results and scene context data instead. Taking unsolicited screenshots wastes time and tokens.\n\nChoose the right inspectionType when you DO use it:\n- \"layout\" (default): 3 shots — plan overview (200m), 3D perspective (60m), detail (15m). Good for roads, road networks, overall layout.\n- \"detail\": 3 shots — street-level (40m), close-up (10m), extreme close-up (3m). Use for individual elements: lights, chambers, signs, pipe connections.\n- \"custom\": Provide your own zoomLevels array.\n\nIf the detail images are still unclear, consider:\n1. Calling this again from a different azimuthDeg\n2. Using create_floor_plan or create_section to cut a 2D plan/section through the area\n3. Opening a road's alignment panel to check the long-section profile\n4. Using create_section_at_chainage to cut a cross-section at the specific chainage",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "description": "Centre point for inspection (scene space). If omitted, uses scene centre.",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            }
          },
          "roadId": {
            "type": "string",
            "description": "Focus inspection on a specific road (auto-centres on it)"
          },
          "azimuthDeg": {
            "type": "number",
            "description": "Compass bearing the camera looks towards, degrees (0 = north, 90 = east). Default 0."
          },
          "inspectionType": {
            "type": "string",
            "description": "\"layout\" (default) for road networks/overall, \"detail\" for individual elements (lights, chambers, signs), \"custom\" to use zoomLevels array"
          },
          "zoomLevels": {
            "type": "array",
            "description": "Custom zoom distances in meters (only used when inspectionType=\"custom\")",
            "items": {
              "type": "number"
            }
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Visual inspection",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "what_is_between",
      "description": "List the objects between two objects. When both sit on the same road the answer is by chainage along that road (optionally one side); otherwise it is a straight plan corridor between their points. Results are ordered from the first object to the second, with the distance from the first.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Object label (R1, L4, C2), id, referenceId or exact name."
          },
          "to": {
            "type": "string",
            "description": "Object label (R1, L4, C2), id, referenceId or exact name."
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "road",
                "junction",
                "light",
                "sign",
                "signal",
                "pipe",
                "chamber",
                "gully",
                "channel",
                "bwh",
                "building",
                "area",
                "parking",
                "model",
                "drawing",
                "survey"
              ]
            },
            "description": "Kinds to include (default: every kind except roads and surveys)."
          },
          "corridorWidthM": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 500,
            "description": "Width of the straight corridor (default 10 m). Ignored on a shared road."
          },
          "side": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "On a shared road, only this side."
          }
        },
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "What is between",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": false,
          "idempotent": true,
          "invalidates": [],
          "risk": "read",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": 30000,
          "maxAttempts": 2
        },
        "scopes": [
          "read",
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    },
    {
      "name": "zoom_to_fit",
      "description": "Zoom the camera to fit all scene content, or a specific road, in view. ALWAYS call this before capture_screenshot to ensure the camera is looking at the right place. Use padding to control how tight the fit is.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "roadId": {
            "type": "string",
            "description": "Zoom to fit a specific road"
          },
          "padding": {
            "type": "number",
            "description": "Extra padding factor (1.0 = tight fit, 1.5 = 50% padding). Default: 1.3"
          }
        },
        "required": []
      },
      "annotations": {
        "title": "Zoom to fit",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core",
          "drawing"
        ]
      }
    },
    {
      "name": "zoom_to_point",
      "description": "Zoom the camera to a specific world coordinate and capture a close-up screenshot. Use this when you need a closer look at a specific element (chamber, light, junction, pipe connection, etc.) after a visual inspection. The image is returned for your review. You can call this multiple times for different points.\n\nParameters:\n- point: {x, y, z} — the world coordinate to zoom into\n- distance: how far the camera should be from the point in meters (default: 8, use 3-5 for extreme detail, 15-25 for wider context)\n- label: short description of what you're inspecting (e.g. \"manhole at junction\", \"light placement\")",
      "inputSchema": {
        "type": "object",
        "properties": {
          "point": {
            "type": "object",
            "description": "World coordinate to zoom to",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "z"
            ]
          },
          "distance": {
            "type": "number",
            "description": "Camera distance in meters (default: 8)"
          },
          "label": {
            "type": "string",
            "description": "What you are inspecting (shown in chat)"
          },
          "angle": {
            "type": "string",
            "enum": [
              "perspective",
              "top_down",
              "side"
            ],
            "description": "Camera angle (default: perspective)"
          }
        },
        "required": [
          "point"
        ]
      },
      "annotations": {
        "title": "Zoom to point",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "x-infragrid": {
        "effects": {
          "mutatesScene": false,
          "requiresSequential": true,
          "idempotent": true,
          "invalidates": [
            "selection"
          ],
          "risk": "low",
          "capabilities": [
            "general"
          ],
          "stages": [
            "general"
          ],
          "timeoutMs": null,
          "maxAttempts": 1
        },
        "scopes": [
          "roads",
          "full"
        ],
        "groups": [
          "core"
        ]
      }
    }
  ]
}
