get_detailed_breakdown_by_day
Retrieve a detailed daily cost breakdown by region, service, and instance type from AWS Cost Explorer. Specify the number of days, region, and account ID to analyze spending trends and identify cost drivers.
Instructions
Retrieve daily spend breakdown by region, service, and instance type.
Args:
params: Parameters specifying the number of days to look back
Returns:
Dict[str, Any]: A tuple containing:
- A nested dictionary with cost data organized by date, region, and service
- A string containing the formatted output report
or (None, error_message) if an error occurs.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"EC2Params": {
"description": "Parameters for retrieving EC2 Cost Explorer information.",
"properties": {
"aws_account_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "AWS account id (if different from the current AWS account) of the account for which to get the cost data",
"title": "Aws Account Id"
},
"days": {
"default": 1,
"description": "Number of days to look back for Bedrock logs",
"maximum": 90,
"minimum": 1,
"title": "Days",
"type": "integer"
},
"region": {
"default": "us-east-1",
"description": "AWS region to retrieve logs from",
"title": "Region",
"type": "string"
}
},
"title": "EC2Params",
"type": "object"
}
},
"properties": {
"params": {
"$ref": "#/$defs/EC2Params"
}
},
"required": [
"params"
],
"title": "get_detailed_breakdown_by_dayArguments",
"type": "object"
}