YoY, MoM or % change
period_changeCalculate the percentage change between two values to compare YoY, MoM, QoQ, or WoW growth and show sales or revenue increases and decreases.
Instructions
Calculates the simple percentage change between 2 values, such as year over year (YoY), month over month (MoM), quarter over quarter or week over week, including sales or revenue growth and percentage increase or decrease.
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": {
"previous_value": "<previous_value>",
"current_value": "<current_value>"
},
"name": "period_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comparison | No | Which comparison this is, used only for labelling. | custom |
| current_value | Yes | Value in the later period. | |
| previous_value | Yes | Value in the earlier period. |