omni_triangular_prism
Calculate triangular prism volume, base area, lateral wall area, and total surface area from triangular base dimensions and prism length, avoiding manual formula and arithmetic errors.
Instructions
Triangular Prism Volume & Surface Area Calculator. Calculate triangular prism volume, lateral face area, base area, and total surface area from triangular base dimensions and prism length. Discipline: GEOMETRY. Governing mathematical model / formula: Volume = Base Area · Length | Total Area = 2 · Base Area + (a + b + c) · Length.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of prism_volume (Prism Volume), base_face_area (Single Triangle Base Area), lateral_surface (Lateral Rectangular Wall Area), total_surface (Total Surface Area (Walls + Ends)) using base_width (Triangular Base Width (b) in units), base_height (Triangular Base Height (h) in units), prism_length (Prism Length (L) 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.
SIBLING ROUTING: Use this dedicated specialist tool for 'Triangular Prism Volume & Surface Area Calculator' rather than generic dispatchers like omni_universal_query. For cross-discipline dynamic dispatch, see omni_universal_query.
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): "triangular-prism"
category (string): "geometry"
name (string): "Triangular Prism Volume & Surface Area Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.prism_volume (Prism Volume): Formatted display string (e.g. '360.0000 units³')
metrics.base_face_area (Single Triangle Base Area): Formatted display string (e.g. '24.0000 units²')
metrics.lateral_surface (Lateral Rectangular Wall Area): Formatted display string (e.g. '336.0000 units²')
metrics.total_surface (Total Surface Area (Walls + Ends)): Formatted display string (e.g. '384.0000 units²')
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_triangular_prism"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_width | No | Triangular Base Width (b) (units). Base edge of triangular face. Default: 8. Min: 0.5. Max: 1000. | |
| base_height | No | Triangular Base Height (h) (units). Perpendicular height of triangular face. Default: 6. Min: 0.5. Max: 1000. | |
| prism_length | No | Prism Length (L) (units). Extrusion length of prism. Default: 15. Min: 0.5. Max: 1000. |