list_recommendations
Retrieve GCP recommendations from a specific recommender at a given location. Set limit and environment to filter results for incident investigation or cost optimization.
Instructions
List recommendations from a specific recommender at a specific location.
Args: recommender_id: Recommender id, e.g. 'google.compute.instance.MachineTypeRecommender' or 'google.iam.policy.Recommender'. location: Zone (e.g. 'us-central1-a'), region (e.g. 'us-central1'), or 'global' depending on the recommender. Default 'global'. limit: Maximum number of recommendations to return. environment: Which configured GCP environment to query, e.g. 'staging' or 'production'. Omit to use the default environment.
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": {
"recommender_id": "<recommender_id>"
},
"name": "list_recommendations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| location | No | global | |
| environment | No | ||
| recommender_id | Yes |