Skip to main content
Glama
mcp-aws
by Preeti325

get_cloudwatch_logs

Fetch recent log events from a specified CloudWatch log group and stream by AWS region, with an optional limit, to inspect application or system activity.

Instructions

Fetch recent log 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": {
      "logGroupName": "<logGroupName>",
      "logStreamName": "<logStreamName>",
      "region": "<region>"
    },
    "name": "get_cloudwatch_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax number of log events to fetch (default 50)
regionYesAWS Region
logGroupNameYesThe name of the CloudWatch log group
logStreamNameYesThe name of the log stream

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?

No annotations are provided, so the description carries the full disclosure burden and largely drops it. It does not say whether the call requires specific IAM permissions, how 'recent' is bounded, whether results are ordered or truncated, or what happens when the log stream does not exist.

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 or redundancy. It is efficient, though the terseness borders on under-specification rather than optimal density.

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?

With four parameters, three of them required, no annotations, and no output schema, the description should explain prerequisites, result shape, and the meaning of 'recent'. Instead it leaves all of that to inference, which is inadequate for a tool that reaches into a specific AWS region and log stream.

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%, with each of the four parameters documented inline including the default of 50 for limit. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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 ('Fetch') and resource ('log events from a CloudWatch log group') with a scope qualifier ('recent'), so an agent knows exactly what it retrieves. No sibling differentiation is offered, but the siblings listed (list_ec2_instances, list_s3_buckets) are unrelated resources, so confusion risk is low.

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?

The description gives no guidance on when to use this versus other retrieval approaches, no prerequisites (AWS credentials, permissions), and no statement of what 'recent' means in time or volume. An agent must infer everything about applicability from the one-line purpose.

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