Repository navigation
Commit 25bc2f5
docs(billing-cost-management-mcp-server): warn that summing Cost Opti… (#4946)
* docs(billing-cost-management-mcp-server): warn that summing Cost Optimization Hub savings double-counts
The cost-optimization tool description said to focus on the highest estimated
savings but never said that list_recommendations items overlap, so an agent
that adds them up reports an inflated total. Commitment savings overlap with
rightsizing and idle actions on the same usage, Auto Scaling groups overlap
with their instances, Payer and Linked copies repeat, and
include_all_recommendations returns one row per term, payment option and
scope.
Add a SAVINGS TOTALS block that points to estimated_total_deduped_savings from
list_recommendation_summaries as the only de-duplicated total, and says it
stays comparable only with no filter or with accountIds and regions filters.
Filters on actionTypes, resourceTypes, implementationEfforts, restartNeeded
and rollbackPossible change how overlap is netted out, so filtered totals do
not sum to the portfolio total. Note the multi-row behavior in the
include_all_recommendations argument text, and add a test for the new text.
* docs(billing-cost-management-mcp-server): note summaries omit DatabaseSavingsPlans in savings totals guidance
list_recommendation_summaries totals and groups do not include
DatabaseSavingsPlans recommendations, while list_recommendations returns them.
Tell the model to add their savings from the list to the summary total, so a
reported portfolio total is not understated, and cover it in the description test.
---------
Co-authored-by: Som Chatterjee🤖 <somsubhr@amazon.com>1 parent 737ca13 commit 25bc2f5
2 files changed
Lines changed: 41 additions & 2 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 | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
450 | 466 | | |
451 | 467 | | |
452 | 468 | | |
| |||
598 | 614 | | |
599 | 615 | | |
600 | 616 | | |
601 | | - | |
602 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
603 | 620 | | |
604 | 621 | | |
605 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
1854 | 1876 | | |
1855 | 1877 | | |
1856 | 1878 | | |
| |||
0 commit comments