Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

s3_get_bucket_metrics

Retrieve S3 bucket request metrics from CloudWatch—including request counts, bytes transferred, and error rates—to diagnose performance, usage, and error issues over a chosen time range.

Instructions

Get S3 bucket request metrics from CloudWatch including request count, bytes downloaded/uploaded, and error rates

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": {
      "bucketName": "<bucketName>"
    },
    "name": "s3_get_bucket_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoAWS region (use the bucket's region for accurate metrics)
bucketNameYesThe name of the S3 bucket
filterPrefixNoOptional S3 key prefix to filter metrics
timeRangeHoursNoTime range in hours to look back for metrics (default: 24, max: 168)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the data source and metric categories, which is useful, but it omits permissions, read-only implications, CloudWatch latency, aggregation behavior, and response format.

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

Conciseness5/5

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

The description is a single front-loaded sentence that states the action, source, and main metric categories with no redundant wording.

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?

The description is adequate for a simple read-only metrics tool with fully documented parameters, but it lacks details about output shape, metric granularity, permissions, and behavior relative to the general CloudWatch metrics tool.

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%, and all four parameters are already documented in the schema. The description adds no parameter-specific meaning beyond the metric list, so the baseline score of 3 is appropriate.

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

Purpose5/5

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

The description gives a specific verb (Get), resource (S3 bucket request metrics), source (CloudWatch), and concrete metric examples (request count, bytes downloaded/uploaded, error rates). This makes the tool's purpose clear and distinguishes it from both bucket-info and general CloudWatch tools.

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

Usage Guidelines3/5

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

Usage is implied by the purpose: retrieve request metrics for an S3 bucket. However, the description does not explicitly say when to use this tool versus cloudwatch_get_metrics or when bucket-level metrics are inappropriate.

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