Skip to main content
Glama

aws_ce_get_cost_and_usage

Retrieve AWS cost and usage data for specified time periods. Group results by service, account, region, or tags to analyze spending patterns and optimize cloud expenses.

Instructions

Get cost and usage data for a time period. Group by service, account, region, tag, etc. TimePeriod format: {'Start': 'YYYY-MM-DD', 'End': 'YYYY-MM-DD'}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileNoAWS profile name from ~/.aws/config (e.g., 'default', 'production')
regionNoAWS region override (e.g., 'us-east-1', 'sa-east-1')
time_periodYesTime period for the cost query
granularityNoTime granularity (default: MONTHLY)
metricsNoMetrics to return (default: ['UnblendedCost']). Options: UnblendedCost, BlendedCost, AmortizedCost, UsageQuantity
group_byNoGroup results by dimension (e.g., [{"Type": "DIMENSION", "Key": "SERVICE"}])
filterNoCost Explorer filter expression
Install Server

Other Tools

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/marcelobrake/aws-mcp'

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