Skip to main content
Glama

Get Resource Breakdown

get_resource_breakdown
Read-only

Break one service's spend down to the INDIVIDUAL RESOURCES behind it — the level below every other cost tool. Returns the top resources by cost with resource id, type, account name, region, operation, usage type, each resource's share of that service's spend over the window, and its prior-period cost for comparison. Use it to turn "RDS is up $4k" into "this one cluster went from $12 to $410". service is REQUIRED (provider-native name, e.g. "AmazonEC2" — see get_available_services). date anchors the window and defaults to the latest day CloudQuell has ingested data for that service (cost data lags the wall clock by 2-3 days, so today usually has none). granularity sets how wide that window is: "monthly" (default) covers the whole CALENDAR MONTH containing date, "daily" covers just that day — use "daily" when you are chasing a one-day spike. The window the backend actually applied comes back as resolvedWindow ({granularity, start, end}, both dates inclusive) with a plain-English window; quote it when reporting the figures, because a bare date widens to its whole month. Scope with provider (defaults to all connected CLOUD providers; Snowflake / Anthropic / OpenAI have no per-resource rows), account_id (name or 12-digit id) and integration_id. limit caps the list (default 25). RELATED: run_cost_pivot with a "resource" dimension answers the BROADER version of this question — resources across a whole grouping (e.g. per service, or per cost center) and over several months rather than one service on one date. Use THIS tool for the single-service, single-date case: it takes them directly and runs no job. RELATED: investigate_anomaly answers WHY — it runs this same breakdown plus the weekly and month-over-month trend and returns a verdict. Use investigate_anomaly to triage a suspected anomaly; use this tool when you already know the service and date and just want the resource list. Read-only. Example: { "service": "AmazonRDS", "date": "2026-06-15", "granularity": "daily", "limit": 10 } lists the 10 most expensive RDS resources on that day.

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": {
      "service": "<service>"
    },
    "name": "get_resource_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe date to anchor the window on, YYYY-MM-DD. Omit to use the latest day CloudQuell has ingested data for this service (cost data lags 2-3 days, so "today" usually has none).
limitNoMax resources to return, highest cost first (default 25).
serviceYesThe service to break down, by its provider-native name (e.g. "AmazonEC2", "AmazonRDS" on AWS). REQUIRED — the endpoint rejects a call without it. Discover valid names with get_available_services.
providerNoProvider scope: "aws", "azure" or "gcp". OMIT = every connected CLOUD provider combined (the backend default for this view). Snowflake / Anthropic / OpenAI have no per-resource rows — this view reads CUR-style resource columns those providers never emit.
account_idNoScope to one sub-account. Accepts the sub-account NAME or its 12-digit account id, which is resolved to the name automatically.
granularityNoHow wide a window `date` anchors: "monthly" (default, and the backend's own default) = the whole CALENDAR MONTH containing `date`; "daily" = that single day; "weekly" = the 7 days starting on that date. Use "daily" when you want the resources behind one day's spike.monthly
integration_idNoScope to one or more provider connections (integration id). Omit for the whole organization.
response_formatNoconcise = the ranked resources with cost, share and prior-period cost (default). detailed = every field on every returned row.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description adds real context beyond them: data ingestion lag, that a bare `date` widens to its calendar month, that the applied window returns as `resolvedWindow` and should be quoted, and that Snowflake/Anthropic/OpenAI produce no per-resource rows. It does not cover auth needs or rate limits, so with annotations carrying the safety profile this is solid but not exceptional.

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?

Front-loaded with the core purpose and the return shape before any parameter talk, then RELATED sections that route to siblings. Dense but every sentence carries information an agent needs; the inline JSON example makes the call pattern concrete.

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

Completeness3/5

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

With no output schema, the description does the work of naming the returned fields (resource id, type, account, region, operation, usage type, share, prior-period cost, resolvedWindow) and warning that the reported window must be quoted. For an 8-parameter read-only tool it is close to complete, though it leaves the shape of `resolvedWindow` at a high level.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, yet the description adds rationale the schema lacks: why `granularity` defaults to monthly (a bare date widens to its month), when `daily` is the right choice, and that `provider` defaults to all cloud providers while non-cloud providers silently yield no rows. It mostly reinforces what the schema already documents, which caps it below 5.

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?

States a specific verb and resource ("Break one service's spend down to the INDIVIDUAL RESOURCES behind it") and locates it in the tool hierarchy ("the level below every other cost tool"). It explicitly differentiates itself from run_cost_pivot (broader, multi-month, job-based) and investigate_anomaly (answers why), so an agent can select it without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: use this tool for the single-service/single-date case, run_cost_pivot for cross-grouping multi-month pivots, investigate_anomaly when triaging a suspected anomaly. It also advises when to pick "daily" (chasing a one-day spike) and why to call get_available_services for the service name, and states the prerequisite that cost data lags 2-3 days.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources