cost_by_tag
Break down AWS costs by values of a chosen cost-allocation tag over a date range, and report untagged spend and its percentage for showback and FinOps hygiene.
Instructions
Break down cost by the values of one cost-allocation tag (showback).
Args:
tag_key: Tag key to group by, e.g. "team" or "project".
start: ISO date (inclusive).
end: ISO date (exclusive).
Also reports the cost and percentage of spend with no value for
this tag ("untagged"), which is a common FinOps hygiene metric.
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": {
"tag_key": "<tag_key>",
"start": "<start>",
"end": "<end>"
},
"name": "cost_by_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| tag_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| groups | Yes | ||
| tag_key | Yes | ||
| currency | Yes | ||
| total_cost | Yes | ||
| untagged_pct | Yes | ||
| untagged_cost | Yes |