Skip to main content
Glama
YawLabs

@yawlabs/aws-mcp

Official
by YawLabs

aws_logs_tail

Read-only

Fetch recent CloudWatch Log events as JSON from a log group, using time windows and filter patterns. Wraps 'aws logs tail' for server-side time parsing.

Instructions

Tail CloudWatch Logs for a log group. Wraps 'aws logs tail' (not the raw FilterLogEvents API) so you get the same server-side time parsing and event-grouping the CLI uses. Returns recent events as JSON. Does NOT stream -- run once to fetch the window, then call again with a later since. For long windows (> a few hundred events), narrow via filterPattern or lower since.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logGroupNameYesLog group name, e.g. '/aws/lambda/my-fn' or '/aws/ecs/my-service'. No leading 'logs/'.
sinceNoWindow to tail: '<number><s|m|h|d|w>'. Default '10m'. Example: '30m', '1h', '3d'.
filterPatternNoCloudWatch Logs filter pattern. E.g. 'ERROR', '"stack trace"', '[timestamp, request_id, level = ERROR, ...]'.
logStreamNamesNoRestrict to specific stream names. Overrides the default (all streams in the group).
logStreamNamePrefixNoRestrict to streams with this prefix. Mutually exclusive with logStreamNames.
profileNoOverride session profile for this call.
regionNoOverride session region for this call.
timeoutMsNoTimeout in milliseconds. Default 60000 (60s). Raise for large windows.
Behavior4/5

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

Annotations already indicate read-only, non-destructive operation. The description adds behavioral context: it runs once (not streaming), wraps CLI for consistent time parsing, and advises optimization for long windows. No contradiction with annotations.

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 only 5 sentences, front-loading the purpose, and each sentence adds value: core function, CLI wrapping, output format, non-streaming behavior, and optimization advice. No fluff.

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?

Given no output schema, the description only vaguely mentions 'Returns recent events as JSON.' It lacks specifics about output structure, error handling, or API limits (e.g., CloudWatch Logs pagination). Adequate but could be more complete.

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%, so the baseline is 3. The description does not add new parameter-level information beyond what the schema already provides, but it reinforces the use of `filterPattern` and `since` for narrowing.

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 clearly states the tool tails CloudWatch Logs for a log group, wraps the 'aws logs tail' CLI, and returns recent events as JSON. It distinguishes itself from a streaming tail and from sibling tools by focusing on a single fetch operation.

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

Usage Guidelines4/5

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

The description provides explicit guidance on usage: run once to fetch the window, call again with a later `since` for continuous tailing, and narrow long windows via `filterPattern` or lower `since`. It lacks explicit when-not-to-use comparisons with siblings, but the context makes the use case clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YawLabs/aws-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server