calculate_percentage
Percentage calculations in three modes: percent_of (x percent of y), what_percent (x is what percent of y), percent_change (change from old to new). Use when the user needs a percent-of, what-percent or percent-change calculation with no financial product attached. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive percentage 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": {
"mode": "<mode>"
},
"name": "calculate_percentage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | For percent_of: the percent. For what_percent: the part. | |
| y | No | For percent_of: the whole. For what_percent: the whole. | |
| new | No | For percent_change: the ending value. | |
| old | No | For percent_change: the starting value. | |
| mode | Yes | Which percentage calculation to perform. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |