calc
calcExact calculator for agents: math expressions (functions, powers, factorials), unit conversion (length, mass, volume, area, time, speed, data, energy, pressure, power, temperature) and date arithmetic (add, diff with business days, weekday). Costs $0.002 USDC per call (x402).
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": "calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Unit | |
| date | No | ||
| days | No | ||
| expr | No | Math expression | |
| from | No | Unit | |
| date2 | No | ||
| value | No | ||
| years | No | ||
| months | No | ||
| date_op | No | add | diff | weekday |