Scientific calculator
hopi_scientific_calculatorEvaluate a maths expression following the standard order of operations (BODMAS). Supports + - * / ^ (power), ! (factorial), % (as divide by 100), brackets, the constants pi and e, and the functions sin, cos, tan, asin, acos, atan, ln, log (base 10) and sqrt. Set angleMode to 'deg' (default) or 'rad' for trigonometry. Source: https://hopi.co.uk/scientific-calculator/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "hopi_scientific_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angleMode | No | Angle units for trigonometry: 'deg' (default) or 'rad' | deg |
| expression | Yes | The maths expression, e.g. '2 + 3 * 4', 'sin(30)', 'sqrt(2)^2', '5!' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| summary | Yes | ||
| angleMode | Yes | ||
| formatted | Yes | ||
| expression | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |