explain_change
Explains why a KPI changed between two periods using shift-share analysis that separates rate and mix effects, then returns ranked drivers and a narrative.
Instructions
Explain why a KPI changed between period_a and period_b. Runs a contribution (shift-share) analysis for each dimension, splitting every segment's contribution into a rate effect (the segment got better/worse) and a mix effect (its share of volume shifted). Returns ranked top_drivers, per-dimension breakdowns and a narrative.
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": {
"kpi": "<kpi>",
"period_a": "<period_a>",
"period_b": "<period_b>"
},
"name": "explain_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi | Yes | ||
| top_n | No | ||
| filters | No | ||
| period_a | Yes | ||
| period_b | Yes | ||
| dimensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||