percentage increase
percentage_increaseCalculate the percentage change between an old value and a new value. Determines whether the change is an increase or decrease, the absolute change, and the percentage change. Essential for financial analysis (stock price changes, revenue growth), scientific measurements (before/ after experiments), performance benchmarks, and population statistics. A positive percentage indicates growth; negative indicates decline. Division by zero (old_value = 0) is handled gracefully.
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": {
"old_value": "<old_value>",
"new_value": "<new_value>"
},
"name": "percentage_increase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_value | Yes | The new or ending value | |
| old_value | Yes | The original or starting value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change | Yes | The signed difference (new_value - old_value) | |
| is_increase | Yes | True if new_value > old_value, false otherwise | |
| absolute_change | Yes | Absolute value of the change | |
| percentage_change | Yes | Percentage change from old to new value |