Skip to main content
Glama

aws_cloudwatch_recent_errors

Fetch recent error events from a CloudWatch Log Group and redact secrets, helping you diagnose issues without exposing sensitive data.

Instructions

Fetch and secret-redact recent error events from a CloudWatch Log Group.

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": {
      "log_group": "<log_group>"
    },
    "name": "aws_cloudwatch_recent_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
log_groupYes
filter_patternNoERROR

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 burden, and it does disclose one valuable non-obvious trait: output is secret-redacted, so the agent should not expect raw credential values. It is silent on the lookback window behind "recent", read-only guarantees, rate limits, and what happens on an empty result set, which are material gaps for an unannotated tool.

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?

A single front-loaded sentence with no filler. Every word, including the compressed "secret-redact", does work.

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

Completeness4/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-value detail is correctly omitted, and the mutation/redaction behavior is flagged. The one real omission is the undefined recency window, which the agent cannot control since no time-range parameter exists.

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 0%, so the schema gives type/default only. The description implies log_group is the target and that error-matching is the default filter (matching filter_pattern's "ERROR" default), but says nothing about limit or its range, and never mentions that the error filter can be overridden.

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 phrase ("Fetch and secret-redact") and a specific resource ("recent error events from a CloudWatch Log Group"). The agent knows exactly what comes back at a high level, though "recent" is never quantified.

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?

No explicit when-to-use, when-not-to-use, or prerequisite guidance. Investigation of log errors is only inferable from the tool name and the word "errors"; nothing tells the agent when to prefer this over another log-reading approach or what access it requires.

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