explain_change
Compares a metric across two periods and returns the groups that drove the change, so you can answer why a number rose or fell without calculating contributions yourself.
Instructions
Compare a metric between two periods and return the groups that moved it most.
Period A is the baseline (start_a to end_a) and period B is the period being explained. Use this when someone asks why a number went up or down. Report the movers it returns and read its notes. Do not work out contributions yourself.
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": {
"metric": "<metric>",
"start_a": "<start_a>",
"end_a": "<end_a>",
"start_b": "<start_b>",
"end_b": "<end_b>"
},
"name": "explain_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| end_a | Yes | ||
| end_b | Yes | ||
| metric | Yes | ||
| region | No | ||
| start_a | Yes | ||
| start_b | Yes |