Calculate a percentage
calculate_percentageCalculate percent of a value, what percent one number is of another, percent change, the reverse, an increase or decrease, and margin versus markup.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "calculate_percentage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First value. For of and increase, this is the percent. | |
| b | Yes | Second value. For of and increase, this is the amount. | |
| mode | No | of, is, change, reverse, increase, decrease, or margin. | of |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| parts | Yes | ||
| result | Yes | ||
| formula | Yes |