Skip to main content
Glama

Apply structure and building-services rules

cao_regles_structure_reseaux
Read-only

WHEN a building scene must be completed with structure and building services by French rules before BIM export or quoting: lintels over openings of load-bearing walls, strip footings sized from service loads, slab span check (indicative pre-design, to be validated by a structural engineer); NF C 15-100 electrical points per room (outlets, RJ45, lighting with its switch, one smoke detector per level, panel with 30 mA RCD) and circuit count; single-flow mechanical ventilation per the 24 March 1982 decree (extract grilles in wet rooms, air inlets in dry rooms, fan, flows); drainage branches with slopes per NF DTU 60.11; water inlet and 200 L water heater placed where missing; room heat losses per NF EN 12831 and radiators sized at 55/45 °C (NF EN 442). Adds what is missing, never removes. Returns {scene, rapport, controles}; send scene to cao_generer_ifc to get IfcBeam, IfcFooting, IfcOutlet, IfcAirTerminal, IfcPipeSegment, IfcSpaceHeater…

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
solNoSoil assumptions for footings: {contrainte_mpa (default 0.20), hors_gel_mm (default 800)}.
vmcNoGenerate single-flow ventilation (extract grilles, air inlets, fan, flows).
mursNoWalls: plan segments extruded vertically. Every coordinate in this whole scene is in MILLIMETRES, in a single plan frame whose origin you choose — X to the right, Y upward, Z up from the floor. Keep one consistent origin across murs/boites/plan: the generators never recentre anything for you.
planNo2D reference lines — drawn flat, never extruded and never counted in the quantities. Use them for axes, plot limits or setting-out marks.
boitesNoBoxes (furniture, volumes): a rectangular block placed by its CENTRE, not by a corner. Millimetres, same frame as murs[].
georefNoOptional Lambert-93 (EPSG:2154) false origin for IfcMapConversion. Local millimetres are scaled by 0.001 to CRS metres. Do not invent coordinates: omit est/nord if unknown (origin stays 0). orientation is the angle in degrees of project X from map East, counterclockwise.
cerclesNoCircles on the 2D plan, alongside plan[] lines: each has a centre and a radius, in the same unit as the plan. Use for round shapes a polyline would render badly — fillets, posts, manholes.
reseauxNoPlumbing pipe runs (EF/EC/EU/EV/EP/chauffage) — used only by cao_pdf (technical plan + linear-meter quantities per type).
toituresNoRoofs — used only by cao_pdf. WITHOUT this field: a flat roof is auto-generated over the footprint of ALL walls (legacy default). WITH it: compose freely — each entry can target a subset of walls (via `murs`), letting you build an L-shaped building's roof, or add a dormer on top of a main roof.
chauffageNoCompute room heat losses (NF EN 12831) and size radiators at 55/45 °C.
plomberieNoSanitary fixtures (sink, WC, shower…) — used only by cao_pdf. Same positioning as electricite.
structureNoGenerate lintels and strip footings, check slab spans.
decorationNoPaint/finish per wall — used only by cao_pdf. Colors the elevations (exterior face) and the axonometric view (face auto-detected by orientation relative to the building's centroid).
ouverturesNoDoors/windows embedded in a wall — used only by cao_pdf (elevations + axonometric view), no effect on dxf/metres.
electriciteNoElectrical symbols (outlets, switches, lights…) — used only by cao_pdf (dedicated technical plan + quantities), no effect on dxf/metres/render. Position: attached to a wall (`mur`+`position`, like ouvertures) or free (`x`,`y`).
evacuationsNoGenerate drainage branches to the stack with slopes (NF DTU 60.11).
alimentationNoPlace the water inlet and water heater when missing (NF DTU 60.11).
compositionsNoNamed wall/slab layer sets declared by the project. A key that matches an inferred kind (mur_exterieur, refend, cloison, plancher, toiture) or murs[].composition drops the Hypothese flag. Each value is {libelle, couches: [{cle, epaisseur?}]}. cle: enduit, bloc_beton, isolant, ba13, ossature, enduit_platre, beton_arme, tuile, charpente, etancheite. Omit epaisseur on the load-bearing layer.
electricite_reglesNoComplete electrical points per NF C 15-100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / murs / items / properties / existant
      Added value: +{
      +  "description": "Optional: true for a wall of the EXISTING building when the scene is an extension. cao_permis then counts as created only what the works add.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / plomberie / items / properties / type / enum
      Previous value: -[
      -  "baignoire",
      -  "chauffe_eau",
      -  "compteur_eau",
      -  "douche",
      -  "evier",
      -  "lavabo",
      -  "radiateur",
      -  "wc"
      -]New value: +[
      +  "baignoire",
      +  "chauffe_eau",
      +  "compteur_eau",
      +  "douche",
      +  "evier",
      +  "lavabo",
      +  "module_hydraulique",
      +  "pac_exterieure",
      +  "radiateur",
      +  "wc"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / chauffage
      Added value: +{
      +  "default": true,
      +  "description": "Compute room heat losses (NF EN 12831) and size radiators at 55/45 °C.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / alimentation
      Added value: +{
      +  "default": true,
      +  "description": "Place the water inlet and water heater when missing (NF DTU 60.11).",
      +  "type": "boolean"
      +}
  5. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: 'Adds what is missing, never removes,' the return shape {scene, rapport, controles}, and an accuracy caveat that slab spans are 'indicative pre-design, to be validated by a structural engineer.' These go further than the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the WHEN condition and densely packed with no filler; each clause maps to a real capability. It is a single very long sentence, which makes it harder to scan, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, nested-object enrichment tool with no output schema, the description supplies the trigger, the list of generated elements, the return shape, and the hand-off to cao_generer_ifc. An agent has everything needed to call it correctly and use the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 19 parameters and the baseline is 3. The description earns above baseline by tying the toggles to their normative sources (NF C 15-100 for electrical, 24 March 1982 decree for VMC, NF DTU 60.11 for drainage, NF EN 12831/NF EN 442 for heating), which clarifies what each switch actually enforces.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (completes/applies rules) and resource (structure and building services on a building scene), and enumerates exactly what it adds: lintels, strip footings, slab span check, NF C 15-100 electrical points, VMC, drainage branches, water inlet/heater, heat losses and radiators. This is unmistakably distinct from siblings like cao_generer_ifc (which consumes the output) or cao_metres.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit trigger: 'WHEN a building scene must be completed ... before BIM export or quoting,' and routes the agent onward ('send `scene` to cao_generer_ifc'). It does not state when NOT to use it or name a competing enrichment tool, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources