Skip to main content
Glama

aws_get_metric

Query AWS CloudWatch metric statistics over a chosen time window and optional dimensions to inspect resource performance and support on-call troubleshooting.

Instructions

Get CloudWatch metric statistics. dimensions format: 'Key1=Value1,Key2=Value2'

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>",
      "metric_name": "<metric_name>"
    },
    "name": "aws_get_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
statNoAverage
minutesNo
namespaceYes
dimensionsNo
metric_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It never states that this is a read-only operation, how the time window (minutes, default 60) and stat (default Average) combine into an aggregation, or what happens when a metric has no datapoints.

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?

Two short lines with the core purpose front-loaded and the format hint on its own line, with no filler. The brevity is efficient rather than padded, though it edges toward under-specification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, but with zero annotation coverage and zero schema description coverage the description should explain the aggregation model and required identifiers. It gives only the dimensions encoding, leaving the most consequential parameters opaque.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, and the description only documents the dimensions string format, which is genuinely helpful. Namespace, metric_name, stat, and minutes remain entirely undocumented in both schema and description, so it compensates for just one of five parameters.

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?

States a specific verb and resource: 'Get CloudWatch metric statistics', which pins down both the action and the AWS/CloudWatch data source. This implicitly separates it from the azure_ and gcp_ metric siblings, though it never names an alternative or states a scope boundary explicitly.

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 use this tool, when not to, or which sibling to pick (e.g. aws_get_cloudwatch_logs for logs vs metrics). The agent must infer the use case purely from the name and the word 'statistics'.

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