omni_trapezoid
Calculate trapezoid area, midline median, perimeter, and symmetry type from base lengths, height, and legs for deterministic geometry results without manual formula errors.
Instructions
Trapezoid Area, Median & Perimeter Calculator. Calculate trapezoid (trapezium) area, midline median, perimeter, and diagonal lengths from base lengths, height, and side legs. Discipline: GEOMETRY. Governing mathematical model / formula: Area = ½(Base a + Base b) · Height | Median = ½(a + b).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of trapezoid_area (Trapezoid Area), midline_median (Midline Median (m)), total_perimeter (Total Perimeter), trapezoid_type (Symmetry Classification) using base_a (Parallel Base a in units), base_b (Parallel Base b in units), height (Perpendicular Height (h) in units), leg_c (Left Leg (c) in units), leg_d (Right Leg (d) in units). 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 'Trapezoid Area, Median & Perimeter 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): "trapezoid"
category (string): "geometry"
name (string): "Trapezoid Area, Median & Perimeter Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.trapezoid_area (Trapezoid Area): Formatted display string (e.g. '128.0000 units²')
metrics.midline_median (Midline Median (m)): Formatted display string (e.g. '16.0000 units')
metrics.total_perimeter (Total Perimeter): Formatted display string (e.g. '49.8800 units')
metrics.trapezoid_type (Symmetry Classification): Formatted display string (e.g. 'Isosceles Trapezoid')
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_trapezoid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leg_c | No | Left Leg (c) (units). Left non-parallel side. Default: 8.94. Min: 0.5. Max: 1000. | |
| leg_d | No | Right Leg (d) (units). Right non-parallel side. Default: 8.94. Min: 0.5. Max: 1000. | |
| base_a | No | Parallel Base a (units). Top parallel base. Default: 12. Min: 0.5. Max: 1000. | |
| base_b | No | Parallel Base b (units). Bottom parallel base. Default: 20. Min: 0.5. Max: 1000. | |
| height | No | Perpendicular Height (h) (units). Perpendicular distance between bases. Default: 8. Min: 0.5. Max: 1000. |