feat(billing-cost-management): add Compute Optimizer get_idle_recomme… - #4551
Merged
somsubhro merged 2 commits intoAug 31, 2026
Merged
Conversation
pputra
requested review from
a team,
Comusus,
anniewn,
bhatia-di,
callnmm,
finklen-amazon,
johnwangwyx,
mattkelsey,
shsrams,
somsubhro and
wangyuhere
as code owners
August 27, 2026 23:01
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4551 +/- ##
=======================================
Coverage 93.22% 93.22%
=======================================
Files 1046 1046
Lines 88477 88502 +25
Branches 14293 14301 +8
=======================================
+ Hits 82482 82510 +28
+ Misses 3623 3622 -1
+ Partials 2372 2370 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
wangyuhere
previously approved these changes
Aug 28, 2026
somsubhro
previously approved these changes
Aug 28, 2026
…ndations and surface COH current resource details Signed-off-by: pputra <mynameisyoga@live.com>
pputra
force-pushed
the
feat/compute-optimizer-idle-recommendations
branch
from
August 28, 2026 20:34
c7d9ed6 to
70e6bc9
Compare
wangyuhere
approved these changes
Aug 29, 2026
somsubhro
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ndations and surface COH current resource details
Fixes
Summary
Changes
Two additive changes to the billing-cost-management-mcp-server, both around AWS Compute
Optimizer / Cost Optimization Hub:
compute-optimizertool — newget_idle_recommendationsoperation. Wraps the ComputeOptimizer
GetIdleRecommendationsAPI with server-side filtering by
Finding(Idle/Unattached/Unused) andResourceType. It reuses the same enrollment (ACTIVE) check and error handling as theexisting recommendation operations. The formatted response includes resource ARN/ID/type,
account ID, finding + finding description, both savings-opportunity variants (with and without
discounts), utilization metrics, lookback period, last-refresh timestamp, tags, response-level
errors, and the pagination token.
cost-optimization-hubget_recommendation— surfacecurrent_resource_details.Previously the formatted response included only
recommended_resource_details; it now alsoincludes
current_resource_details.Added unit tests for both changes (idle: basic call, filters/pagination, operation dispatch;
COH: current + recommended resource details) and a CHANGELOG entry.
ruff check/ruff formatare clean.
User experience
Before
compute-optimizertool exposed only performance/right-sizing operations — there was no wayto retrieve Compute Optimizer idle recommendations or to filter by resource state
(idle / unattached / unused).
cost-optimization-hub get_recommendationreturned only the recommended resource details.After
compute-optimizerwithoperation="get_idle_recommendations"and filter byFindingandResourceTypeto get idle-resource recommendations directlycost-optimization-hub get_recommendationreturnscurrent_resource_detailsalongsiderecommended_resource_details, so current resource state is available.Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (Y/N) N
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.