Repository navigation
Commit 46c1d2f
authored
fix(billing-cost-management-mcp-server): describe efficiency Monthly points as month-end snapshots (#4877)
* fix(billing-cost-management-mcp-server): describe efficiency Monthly points as month-end snapshots
The cost-optimization description sent trend and month-over-month questions
to list_efficiency_metrics, which defaults to Monthly granularity. A Monthly
efficiency point is not a monthly average or total: it is the Daily snapshot
for the month's last day (savings from the last day that has data, spend for
the 30 days ending on the month's last day). A change on that one day
therefore moved the whole month's value and read as a monthly trend.
The description and the granularity docs now say what a Monthly point is,
send trend questions to Daily, note that only completed months are returned,
and state that each point is a one-day snapshot whose spend covers the 30
days ending that day.
* chore: drop CHANGELOG entry (non-breaking change)
* fix(billing-cost-management-mcp-server): ask only for completed efficiency months
"Only completed months are returned" is not guaranteed: the request
validator allows one day of tolerance at month-end. Say instead to ask only
for completed months (end_date no later than the current month, since end is
exclusive), and that a current-month point would be partial. Describe spend
as the trailing 30 days rather than pinning the window's last day, which
public material and the service code state differently.1 parent 6fff00c commit 46c1d2f
3 files changed
Lines changed: 58 additions & 6 deletions
File tree
- src/billing-cost-management-mcp-server
- awslabs/billing_cost_management_mcp_server/tools
- tests/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
624 | 626 | | |
625 | 627 | | |
626 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
431 | 433 | | |
432 | 434 | | |
433 | 435 | | |
434 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
435 | 445 | | |
436 | 446 | | |
437 | 447 | | |
| |||
519 | 529 | | |
520 | 530 | | |
521 | 531 | | |
522 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
523 | 535 | | |
524 | 536 | | |
525 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
0 commit comments