Skip to main content
Glama

aws_get_cloudwatch_logs

Fetch recent AWS CloudWatch log events by log group, stream, and time window so on-call engineers can inspect incidents without switching dashboards.

Instructions

Fetch recent CloudWatch log events.

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_get_cloudwatch_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
minutesNo
log_groupYes
log_streamNo
filter_patternNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.1/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 burden, yet it discloses nothing about result limits, ordering, pagination, or required IAM permissions. The only opaque hint is "recent," which never maps to the schema's 30-minute default.

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

Conciseness2/5

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

A single short sentence is front-loaded and free of waste, but for a four-parameter tool with zero annotation and zero schema-description coverage this level of brevity is under-specification rather than conciseness.

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?

The presence of an output schema relieves the description of explaining return values, but with no annotations and no parameter documentation the definition leaves the agent unable to form a correct call beyond supplying the required log_group. It is thin for a tool with this much undocumented surface.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters, and the description compensates for none of it: log_group, log_stream, filter_pattern, and minutes receive no explanation of meaning, format, or CloudWatch filter-pattern syntax. This is the exact case where the description needed to substitute for the schema and does not.

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

Purpose3/5

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

Names a specific verb and resource ("Fetch ... CloudWatch log events") and the AWS provider implication separates it from gcp_get_logs and azure_get_monitor_logs. However, "recent" is undefined and the description says nothing about scope, so an agent cannot tell exactly what window or volume of events it returns.

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 call this instead of sibling log tools (gcp_get_logs, azure_get_monitor_logs, k8s_pod_logs) or when a different AWS tool such as aws_get_metric would be more appropriate. The agent must infer everything from the name.

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