Skip to main content
Glama
civil-qto-mcp

civil-qto-mcp

calculate_foundation_and_slab_qto

Calculates foundation and slab quantity takeoffs for concrete, blinding, formwork, rebar, excavation, insulation, and contraction joints.

Instructions

[v0.4 Tool 14] Calculate the full structural and earthwork quantity chain for foundations, plinths,
and industrial floor slabs: structural concrete (m3), blinding concrete with lateral overhang (m3),
lateral formwork (m2), rebar/fiber tonnage (t), DIN 4124 prismoidal excavation (m3), plinth XPS (m2),
and saw-cut contraction joints (m).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_foundation_and_slab_qto"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsNoList of structural foundation or slab elements ('PAD_FOOTING', 'CUP_FOOTING', 'STRIP_FOUNDATION', 'PLINTH_WALL', 'RAFT_SLAB', 'INDUSTRIAL_FLOOR').
file_path_cadNoOptional DXF/DWG path to extract foundation footprint polygons directly.
working_space_mNoBottom pit working space around foundations in meters (default 0.50m per DIN 4124).
batter_angle_degNoPit excavation side slope angle in degrees (default 60.0 deg; 90.0 for vertical).
foundation_layersNoWhen `file_path_cad` is provided, CAD layers containing foundation footprints.
blinding_overhang_mNoLateral overhang of blinding concrete on each side in meters (default 0.10m).
unit_scale_to_meterNoCAD drawing unit scale to meters (default 1.0).
blinding_thickness_mNoBlinding concrete thickness in meters (default 0.10m).
default_cad_height_mNoStructural height/thickness in meters for CAD-extracted footprints.
default_cad_element_typeNoElement type assigned to CAD-extracted footprints.PAD_FOOTING

Output Schema

NameRequiredDescriptionDefault
warningsNo
breakdownsNo
working_space_mYes
batter_angle_degYes
total_backfill_m3Yes
blinding_overhang_mYes
total_excavation_m3Yes
blinding_thickness_mYes
total_formwork_area_m2Yes
total_saw_cut_joints_mYes
total_perimeter_strip_mYes
total_xps_insulation_m2Yes
elements_processed_countYes
total_displaced_spoil_m3Yes
total_blinding_concrete_m3Yes
total_rebar_and_fiber_tonnesYes
total_structural_concrete_m3Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does not say whether the call is a pure computation with no side effects, how the two input paths (explicit `elements` vs CAD extraction) interact or which wins when both are given, or what happens with missing/zero geometry. The one behavioral detail it does convey, the DIN 4124 prismoidal excavation rule, is useful, but most of the sentence simply restates the output quantities, which the output schema already covers.

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?

A single, front-loaded sentence that wastes little: the quantity list is dense but informative and the units make it scannable. The '[v0.4 Tool 14]' prefix is internal noise that does not help an agent decide anything.

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

Completeness3/5

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

The tool is complex (10 parameters, two alternative input sources, nested element input) but has a full output schema and 100% schema coverage, so the description does not need to explain return values. What it is missing is the operational picture: when to prefer the explicit-elements path over CAD extraction, and confirmation that this is a non-mutating calculation.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the 10 parameters, including the nested FoundationElementInput fields, is documented in the schema itself. The description adds no parameter meaning beyond that, such as the interaction between `foundation_layers` and `default_cad_element_type`, so the baseline 3 applies.

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

Purpose4/5

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

Names a specific verb ('Calculate') and a precisely scoped resource: the structural and earthwork quantity chain for foundations, plinths and industrial floor slabs, with each output quantity and unit enumerated (concrete m3, formwork m2, rebar t, excavation m3, XPS m2, joints m). The domain scope implicitly separates it from calculate_pavement_layer_quantities and calculate_tin_earthwork_volumes, but no sibling is named, which is what would push this to a 5.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not guidance, no mention of prerequisites, and no routing to an alternative for pavement, TIN earthwork or plain linear measurement tasks. Usage is only implied by the tool name and the element/scope vocabulary, which is the minimum-viable level.

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