Home / Servers / Calculators / calculate
Calculate
An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.
Evaluate an arithmetic expression exactly: + - * / % ^ (power), ! (factorial), parentheses, constants pi, e, tau, phi, and functions sqrt, cbrt, abs, round(x, places), floor, ceil, sin, cos, tan, asin, acos, atan, atan2, log (base 10), log2, ln, exp, min, max, pow, mod, sum, avg, hypot, deg, rad, fact. Use this instead of doing arithmetic in your head.
Name on the gateway: math__calculate · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
expression required | string | The expression, e.g. "sqrt(2) * (3 + 4)^2 / 7" or "round(12.3456, 2)". |
precision | integer | Decimal places in the result. Default: up to 12 significant. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "math__calculate",
"arguments": {
"expression": "…"
}
}Or connect the Calculators server directly, which lists 28 tools including this one:
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the calculate tool with expression set to ….