Skip to main content
Glama
jowhee327

aws-security-mcp

by jowhee327

scan_imdsv2_enforcement

Checks EC2 instances for IMDSv2 enforcement, identifying those vulnerable to unsecured metadata access. This read-only scan returns risk findings without modifying any AWS resources.

Instructions

Run IMDSv2 Enforcement security scanner only. Read-only. Does not modify any AWS resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionNoAWS region to scan (default: server region)
providerNoCloud provider to scan (default: aws). With huaweicloud, `region` is a Huawei Cloud region ID (e.g. cn-north-4); omit it or pass "all" to scan every region project of the account. Huawei Cloud Phase 1 is single-account (org_mode falls back to the current account with a warning).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • addedInput schema / properties / provider
      Added value: +{
      +  "description": "Cloud provider to scan (default: aws). With huaweicloud, `region` is a Huawei Cloud region ID (e.g. cn-north-4); omit it or pass \"all\" to scan every region project of the account. Huawei Cloud Phase 1 is single-account (org_mode falls back to the current account with a warning).",
      +  "enum": [
      +    "aws",
      +    "huaweicloud"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.7.6

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states 'Read-only. Does not modify any AWS resources,' which is valuable safety information for an agent. It also discloses the huaweicloud fallback behavior ('org_mode falls back to the current account with a warning') in the parameter description, which is a meaningful behavioral trait beyond a simple scan.

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 two sentences with zero waste. The core purpose and safety guarantee are front-loaded, and the provider-specific nuance is placed in the parameter description where it belongs. Every sentence earns its place.

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

Completeness4/5

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

For a read-only scanner with no required parameters and no output schema, the description is nearly complete. It covers purpose, safety, and provider-specific behavior. The only minor gap is that it does not describe what the scan returns or how results are delivered, but with no output schema and a simple read-only operation, this is a small omission.

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 description coverage is 100%, so the schema already documents both parameters. The description adds value by explaining the huaweicloud provider's region semantics (Huawei Cloud region ID, 'all' to scan every region project, single-account fallback), which goes beyond the bare schema enum. This compensates for the schema's minimal region description.

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 states a specific verb ('Run'), a specific resource ('IMDSv2 Enforcement security scanner'), and explicitly scopes it as read-only. It distinguishes itself from the many sibling scan tools by naming the exact scanner, so an agent can tell it apart from scan_iam_privilege_escalation or scan_public_access_verify without opening schemas.

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

Usage Guidelines3/5

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

The description implies usage context by naming the scanner and noting it is read-only, but it does not explicitly state when to choose this tool over alternatives like scan_all or scan_group. It provides no exclusions or conditions (e.g., 'use this when you only need IMDSv2 enforcement'). The sibling list is large, and the description does not route the agent to a broader alternative.

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