Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

cloudwatch_get_metrics

Retrieve CloudWatch metric data for a specific namespace, metric, dimensions, and time range to analyze AWS resource performance and support incident investigation.

Instructions

Get CloudWatch metric data for a specific metric over a time range

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": {
      "namespace": "<namespace>",
      "metricName": "<metricName>"
    },
    "name": "cloudwatch_get_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
statNoThe statistic to retrieveAverage
periodNoThe granularity in seconds (minimum 60, default 300)
regionNoAWS region
endTimeNoEnd time in ISO format (defaults to now)
namespaceYesThe CloudWatch namespace (e.g., AWS/EC2, AWS/RDS, AWS/Lambda)
startTimeNoStart time in ISO format (defaults to 1 hour ago)
dimensionsNoMetric dimensions for filtering (e.g., [{name: 'InstanceId', value: 'i-12345'}])
metricNameYesThe name of the metric (e.g., CPUUtilization, Duration)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it says nothing about read-only safety, IAM permission requirements, throttling behavior, or how missing datapoints are handled. The default window ('1 hour ago' to now) is documented only in the schema, not in the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, which is well proportioned for a simple getter. It is perhaps too terse given the tool's eight parameters, but nothing is wasted.

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?

There is no output schema, so the description should say what a call returns (a series of timestamped datapoints for the requested statistic/period). With eight parameters, no annotations, and no return-value context, the definition is functional but leaves gaps an agent would have to discover by calling it.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains stat, period, region, times, dimensions, and metricName with examples. The description adds only the notion of a time range and no further meaning such as how namespace and dimensions must correspond or what the default range is.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Get CloudWatch metric data') and bounds the scope ('for a specific metric over a time range'), which is enough to distinguish it from detail-oriented siblings such as cloudwatch_get_alarm_details. It does not, however, mention the related per-service metric tools (s3_get_bucket_metrics, sqs_get_queue_metrics), so differentiation from siblings is left implicit.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer this tool over the service-specific metric siblings, nor any prerequisites such as required IAM permissions or the need for correct namespace/dimension pairing. Usage is only implied by the word 'metric'.

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