omni_square_footage
Calculate square footage, square yards, perimeter, and material cost from length, width, and cost per square foot to avoid manual arithmetic errors.
Instructions
Square Footage & Area Calculator. Calculate square footage for single rooms, multi-room floorplans, and landscaping with perimeter and area conversion. Discipline: CONSTRUCTION. Governing mathematical model / formula: Square Footage = Length (ft) × Width (ft).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of total_sqft (Total Square Footage), square_yards (Square Yards), perimeter (Total Perimeter), total_cost (Estimated Material Cost) using length (Length in ft), width (Width in ft), cost_per_sqft (Material Cost per Sq Ft). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Square Footage & Area Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "square-footage"
category (string): "construction"
name (string): "Square Footage & Area Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.total_sqft (Total Square Footage): Formatted display string (e.g. '300.0 sq ft')
metrics.square_yards (Square Yards): Formatted display string (e.g. '33.3 sq yd')
metrics.perimeter (Total Perimeter): Formatted display string (e.g. '70.0 linear ft')
metrics.total_cost (Estimated Material Cost): Formatted display string (e.g. '$1,350.00')
execution_time_ms (number): Latency in milliseconds.
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": "omni_square_footage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Width (ft). Width of the area in feet. Default: 15. Min: 1. Max: 1000. | |
| length | No | Length (ft). Length of the area in feet. Default: 20. Min: 1. Max: 1000. | |
| cost_per_sqft | No | Material Cost per Sq Ft. Optional material or flooring cost. Default: 4.5. Min: 0. Max: 500. |