compare_periods
Compare total AWS costs between two date ranges and rank services by absolute cost change to show what increased or decreased since a prior period.
Instructions
Compare total AWS cost between two date ranges and rank what changed.
Args:
a_start/a_end: ISO dates for the baseline period (e.g. last month).
b_start/b_end: ISO dates for the comparison period (e.g. this month).
Returns the totals for both periods, the delta, and the services
with the largest absolute cost change (increase or decrease),
largest first — useful to answer "what went up since last month?".
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_start": "<a_start>",
"a_end": "<a_end>",
"b_start": "<b_start>",
"b_end": "<b_end>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a_end | Yes | ||
| b_end | Yes | ||
| a_start | Yes | ||
| b_start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a_end | Yes | ||
| b_end | Yes | ||
| delta | Yes | ||
| a_start | Yes | ||
| b_start | Yes | ||
| total_a | Yes | ||
| total_b | Yes | ||
| currency | Yes | ||
| delta_pct | Yes | ||
| top_drivers | Yes | Services ranked by absolute change, largest first |