Skip to main content
Glama

security_cloudtrail_scan

Read-only

AWS CloudTrail log threat scan — Scans AWS CloudTrail events (events= JSON {Records:[...]}, array or JSON lines, or url= to a .json/.json.gz log file, up to 50k events) for signs of compromise: logging/GuardDuty/Config tampering, root activity, console logins without MFA and brute force, admin policy attachments, new access keys and login profiles, MFA removal, public bucket/snapshot exposure, security groups opened to 0.0.0.0/0, destructive deletes and KMS key deletion, AccessDenied probing, enumeration bursts, bulk secret reads, offensive tool user agents and RunInstances in rare regions. Returns findings, risk score, verdict and top identities/IPs/regions. Price: $0.008 USDC (Base, via x402).

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": {
      "events": "<events>"
    },
    "name": "security_cloudtrail_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYese.g. {"Records":[{"eventTime":"2026-11-20T01:00:00Z","eventName":"StopLogging","userIdentity":{"type":"IAMUser","arn":"arn:aws:iam::123456789012:user/bob"},"sourceIPAddress":"203.0.113.7","awsRegion":"us-east-1"}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds useful extra context: the 50k event ceiling, the analysis output shape (findings, risk score, verdict, top identities/IPs/regions), and an x402 price of $0.008 USDC. It does not discuss latency, timeouts, or error behavior on malformed logs, which keeps it short of a 5.

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?

Front-loads "AWS CloudTrail log threat scan" then packs inputs, detection coverage, output, and price into two tight sentences with no filler. Dense but every clause carries operational information an agent needs.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter scanner with no output schema, the definition covers input formats, size limits, what is detected, what is returned, and the payment requirement. An agent has everything needed to decide whether and how to call it.

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

Parameters4/5

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

Schema coverage is 100% with a single example-bearing parameter, so the schema carries baseline meaning; the description extends it by clarifying that the same slot accepts a Records object, a raw array, JSON lines, or a url= reference to a .json/.json.gz file. That url= form has no corresponding schema property, which introduces mild ambiguity about where the URL is supplied.

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?

States a specific verb and resource ("Scans AWS CloudTrail events") plus a concrete enumeration of what it detects (StopLogging/GuardDuty tampering, root activity, MFA removal, public buckets, 0.0.0.0/0 security groups, KMS deletion). The CloudTrail scope clearly separates it from a generic log scanner without having to open either schema.

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?

Gives practical invocation guidance: accepted input forms (JSON {Records:[...]}, bare array, JSON lines, or a .json/.json.gz URL) and a hard cap of 50k events. It does not explicitly say when to prefer security_log_scan over this tool, so the alternative-selection guidance is implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources