Skip to main content
Glama
aws-security-mcp

aws-security-mcp

by jowhee327

scan_ecr_image_cve

Deep-scan ECR image layers to find critical and high CVEs missed by Basic/Inspector Enhanced scanning, then classify findings as gaps, confirmed, or reverse gaps against official results.

Instructions

Deep-scan ECR image layers for critical/high CVEs missed by ECR Basic/Inspector Enhanced scanning (unmanaged binaries, distro secdb gaps). Reports gap/confirmed/reverse-gap classification against official scan results. Read-only.

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": "scan_ecr_image_cve"
  }
}

Input 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). With alicloud (EXPERIMENTAL — not yet validated against a live account), region is an Alibaba Cloud region ID (e.g. cn-hangzhou); omit or "all" to scan every region; single-account only in this phase. With azure (EXPERIMENTAL — not yet validated against a live account), the China cloud (21Vianet) is the default; set AZURE_CLOUD=global for public cloud. region is an Azure subscription ID; omit or "all" to scan every visible subscription.
min_severityNoMinimum CVE severity to report (default: high)
suppressionsNoFalse-positive suppression list; suppressed findings go to a suppressed[] section
max_image_bytesNoSkip images whose compressed layers total more than this many bytes (default: 2 GB)
max_layer_bytesNoSkip images containing a layer larger than this many compressed bytes (default: 512 MB)
max_total_bytesNoCumulative cap on compressed layer bytes downloaded across the whole scan (default: 20 GB)
max_repositoriesNoMaximum number of repositories to scan; the rest are recorded in warnings (default: 50)
include_confirmedNoInclude confirmed finding detail rows in the report (default: false)
online_cve_lookupNoEnable NVD API 2.0 online lookup, cached 24h (default: false)
repository_filterNoGlob filter on ECR repository names (e.g. prod-*)
max_images_per_repoNoLatest-pushed N images per repo, plus any tag named 'latest' (default: 3)
platform_preferenceNoPlatform preference order for multi-arch manifest lists, e.g. ['linux/amd64', 'linux/arm64'] (default)
max_binary_scan_bytesNoCap on decompressed bytes stream-scanned per candidate binary (default: 64 MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.10.0
    • changedInput schema / properties / provider / description
      Previous value: -"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)."New value: +"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). With alicloud (EXPERIMENTAL — not yet validated against a live account), region is an Alibaba Cloud region ID (e.g. cn-hangzhou); omit or \"all\" to scan every region; single-account only in this phase. With azure (EXPERIMENTAL — not yet validated against a live account), the China cloud (21Vianet) is the default; set AZURE_CLOUD=global for public cloud. region is an Azure subscription ID; omit or \"all\" to scan every visible subscription."
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "aws",
      -  "huaweicloud"
      -]New value: +[
      +  "aws",
      +  "huaweicloud",
      +  "alicloud",
      +  "azure"
      +]
  2. 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"
      +}
  3. Addedv0.8.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does make one useful claim: 'Read-only.' It also signals the gap/confirmed/reverse-gap classification model. However, it omits what the agent most needs for a 14-parameter scanner: required AWS/ECR pull permissions, expected runtime, and that layers are actually downloaded (only the schema hints at byte caps).

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?

Three short sentences, front-loaded with the action and the differentiator, followed by the output model and the safety claim. No filler or repetition of schema content.

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?

For a heavy multi-provider scanner with 14 params and no annotations or output schema, the description covers purpose and classification vocabulary but leaves the agent guessing about permissions, cost/runtime, and error behavior (e.g., what happens when byte caps or max_repositories truncate the scan). Adequate but visibly incomplete.

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 every one of the 14 parameters, including provider-specific region semantics and the suppression object shape, is already documented in structured form. The description adds no parameter-level meaning, so the baseline 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?

Names a specific verb and resource ('Deep-scan ECR image layers') and scopes it to CVEs 'missed by ECR Basic/Inspector Enhanced scanning (unmanaged binaries, distro secdb gaps)', which implicitly separates it from sibling tools such as scan_inspector_findings. It stops short of naming any sibling explicitly, so an agent must infer the boundary rather than read it.

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 clause about findings missed by official scanners implies when this is the right pick (gap coverage rather than a re-run of Inspector), but there is no explicit 'use X instead when Y' routing and no warning that a deep layer scan is heavy and slow. Usage is inferable but never stated.

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