omni_rhombus
Calculate rhombus area, perimeter, side length, and incircle radius from two diagonal lengths to prevent manual formula and arithmetic errors.
Instructions
Rhombus Area, Side & Diagonals Calculator. Calculate rhombus area, perimeter, side length, incircle radius, and internal angles from intersecting diagonals d₁ and d₂. Discipline: GEOMETRY. Governing mathematical model / formula: Area = ½(d₁ · d₂) | Side a = ½√(d₁² + d₂²).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of rhombus_area (Rhombus Area), side_length (Side Length (a)), rhombus_perimeter (Total Perimeter (4a)), inradius (Incircle Radius (r)) using diag_1 (Diagonal 1 (d₁) in units), diag_2 (Diagonal 2 (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 'Rhombus Area, Side & 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): "rhombus"
category (string): "geometry"
name (string): "Rhombus Area, Side & Diagonals Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.rhombus_area (Rhombus Area): Formatted display string (e.g. '96.0000 units²')
metrics.side_length (Side Length (a)): Formatted display string (e.g. '10.0000 units')
metrics.rhombus_perimeter (Total Perimeter (4a)): Formatted display string (e.g. '40.0000 units')
metrics.inradius (Incircle Radius (r)): Formatted display string (e.g. '4.8000 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_rhombus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diag_1 | No | Diagonal 1 (d₁) (units). First internal diagonal. Default: 16. Min: 0.5. Max: 1000. | |
| diag_2 | No | Diagonal 2 (d₂) (units). Second internal diagonal. Default: 12. Min: 0.5. Max: 1000. |