aws_cloudwatch_get_metric_data
Retrieve time-series metric data from AWS CloudWatch for monitoring and analysis. Supports multiple metrics and math expressions in a single API call to track performance and resource utilization.
Instructions
Retrieve time-series metric data for one or more CloudWatch metrics. Supports multiple metrics and math expressions in a single call.
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": {
"metric_data_queries": "<metric_data_queries>",
"start_time": "<start_time>",
"end_time": "<end_time>"
},
"name": "aws_cloudwatch_get_metric_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| metric_data_queries | Yes | Metric queries. Example: [{"Id": "m1", "MetricStat": {"Metric": {"Namespace": "AWS/EC2", "MetricName": "CPUUtilization", "Dimensions": [{"Name": "InstanceId", "Value": "i-xxx"}]}, "Period": 300, "Stat": "Average"}}] | |
| start_time | Yes | Start time (ISO 8601, e.g., '2024-01-01T00:00:00Z') | |
| end_time | Yes | End time (ISO 8601) | |
| max_datapoints | No | Maximum data points to return (default: 100) |