omni_parallelogram
Calculate parallelogram area, perimeter, diagonals, and heights from base, side, and internal angle to avoid manual formula and arithmetic errors.
Instructions
Parallelogram Area & Diagonals Calculator. Calculate parallelogram area, perimeter, internal diagonals, and heights using base, side, and acute internal angle. Discipline: GEOMETRY. Governing mathematical model / formula: Area = Base · Height = a · b · sin(θ).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of para_area (Parallelogram Area), altitude_h (Perpendicular Height (h)), diagonal_p (Long Diagonal (p)), diagonal_q (Short Diagonal (q)) using side_a (Base Side (a) in units), side_b (Adjacent Side (b) in units), angle_deg (Internal Angle (θ) in degrees). 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 'Parallelogram Area & Diagonals 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): "parallelogram"
category (string): "geometry"
name (string): "Parallelogram Area & Diagonals Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.para_area (Parallelogram Area): Formatted display string (e.g. '109.1169 units²')
metrics.altitude_h (Perpendicular Height (h)): Formatted display string (e.g. '7.7942 units')
metrics.diagonal_p (Long Diagonal (p)): Formatted display string (e.g. '20.0749 units')
metrics.diagonal_q (Short Diagonal (q)): Formatted display string (e.g. '12.3693 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_parallelogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side_a | No | Base Side (a) (units). Length of horizontal base. Default: 14. Min: 0.5. Max: 1000. | |
| side_b | No | Adjacent Side (b) (units). Length of adjacent slant side. Default: 9. Min: 0.5. Max: 1000. | |
| angle_deg | No | Internal Angle (θ) (degrees). Angle between sides a and b. Default: 60. Min: 5. Max: 175. |