Right-angle triangle calculator
hopi_triangle_calculatorSolve a right-angle triangle from any two given values, at least one of which must be a side. Sides: a (opposite), b (adjacent), c (hypotenuse). angleA is angle A in degrees, between 0 and 90 (the third angle is the 90 degree right angle). Returns all three sides, both non-right angles, the area and the perimeter. Source: https://hopi.co.uk/triangle-calculator/
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": "hopi_triangle_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Side a, the opposite (greater than 0) | |
| b | No | Side b, the adjacent (greater than 0) | |
| c | No | Side c, the hypotenuse (greater than 0, must be the longest side) | |
| angleA | No | Angle A in degrees, strictly between 0 and 90 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| c | Yes | ||
| area | Yes | ||
| angleA | Yes | ||
| angleB | Yes | ||
| method | Yes | ||
| summary | Yes | ||
| perimeter | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |