Skip to main content
Glama

aws_ec2_security_audit

Audit EC2 instances and Security Groups to detect critical ports exposed to 0.0.0.0/0, enabling quick identification of risky network access.

Instructions

Audit EC2 instances and Security Groups for open 0.0.0.0/0 critical ports.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aws_ec2_security_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 behavioral burden. It never states that the operation is read-only, which regions/accounts are scanned, how 'critical ports' is defined, or whether the scan may hit API rate limits — only the target of the audit is disclosed.

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 zero filler; every word (audit, EC2, Security Groups, 0.0.0.0/0, critical ports) contributes to scoping the action.

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?

With an output schema present and zero parameters, the definition is close to sufficient, but two things an agent would want remain undefined: what set of ports counts as 'critical' and what scan scope (region/account) the audit covers. It is adequate but not fully self-contained.

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?

The tool takes no parameters, so there is nothing for the description to explain and the baseline of 4 applies. The schema is trivially complete with zero properties.

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?

The description names a specific verb (audit) plus two concrete resources (EC2 instances and Security Groups) and a precise condition (open 0.0.0.0/0 on critical ports). That clearly separates it from the S3 and RDS siblings, though it never explicitly names an alternative tool.

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 when-to-use or when-not-to-use guidance, no prerequisites (credentials, region/account scope), and no routing to sibling audits. The intended context is only implied by the word 'audit' and the security framing.

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