Skip to main content
Glama

list_cost_recommendations

Read-onlyIdempotent

Identify idle and oversized GCP resources by aggregating cost-optimization recommendations across project locations. Get actionable rightsizing and cleanup suggestions to reduce cloud spend.

Instructions

Aggregate GCP cost-optimization recommendations (idle/rightsizing/etc).

Fans out the cost recommenders across the locations where the project has resources. Recommenders/locations that are empty or not enabled are skipped.

Args: locations: Optional comma-separated zones/regions to scan (e.g. 'us-central1,us-central1-a'). If empty, auto-discovers from Asset Inventory (requires the Cloud Asset API). limit_per_call: Max recommendations to pull per recommender+location. environment: Which configured GCP environment to query, e.g. 'staging' or 'production'. Omit to use the default environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationsNo
environmentNo
limit_per_callNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description reveals important behavioral traits: it fans out across locations, skips empty or disabled recommenders, and auto-discovers locations via Asset Inventory when locations are omitted, including a dependency on the Cloud Asset API. These details materially help an agent predict execution behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The summary sentence fronts the core purpose, followed by a short behavior note and a compact Args section. Every sentence carries distinct information, and there is no filler or repetition of schema defaults.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the main operational concerns: what is aggregated, how locations are handled, the Cloud Asset API requirement, the per-call limit, and environment selection. It does not describe the shape or pagination of the returned recommendations, but given the read-only and idempotent annotations plus the strong parameter detail, it is nearly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates by explaining every parameter: locations as comma-separated zones/regions with auto-discovery behavior, limit_per_call as a per recommender+location cap, and environment as a configured GCP environment selector with a default behavior. This is exactly the semantic enrichment the schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Aggregate GCP cost-optimization recommendations (idle/rightsizing/etc).' This clearly distinguishes the tool from the sibling list_recommendations by narrowing scope to cost-optimization, and the behavior is further clarified with the fan-out and skip semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides useful context about locations, auto-discovery, and environment selection, but it never explicitly states when to choose this tool over alternatives such as list_recommendations or get_cost_breakdown. Usage is implied by the purpose rather than explicitly contrasted with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deBilla/platform-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server