Skip to main content
Glama
aws-samples

MCP Security Scanner

Official
by aws-samples

scan_with_checkov

Scan Infrastructure as Code files with Checkov to detect security misconfigurations and compliance violations across Terraform, CloudFormation, Kubernetes, Docker, and more.

Instructions

Scan Infrastructure as Code using Checkov for security issues.

This tool analyzes Infrastructure as Code files for security misconfigurations and compliance violations using Bridgecrew's Checkov scanner.

Supported formats:

  • terraform: Terraform configuration files

  • cloudformation: AWS CloudFormation templates

  • kubernetes: Kubernetes manifests

  • dockerfile: Docker files

  • arm: Azure Resource Manager templates

  • bicep: Azure Bicep files

  • serverless: Serverless framework files

  • helm: Helm charts

  • github_actions: GitHub Actions workflows

  • gitlab_ci: GitLab CI configurations

  • ansible: Ansible playbooks

Args: code: The IaC code content to analyze format_type: The type of IaC format being scanned

Returns: A dictionary with scan results including found security issues

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesInfrastructure as Code content to scan
format_typeYesIaC format type (terraform, cloudformation, kubernetes, dockerfile, etc.)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must carry the full transparency burden. It states the tool analyzes IaC files for security misconfigurations and compliance violations, and mentions it returns a dictionary of results. However, it does not disclose potential limitations (e.g., file size, network access), whether it executes the scanned code, or that it is a read-only operation. This is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with sections for purpose, supported formats, args, and returns. The list of formats is essential and earns its place, though the second sentence restates the first line with minor detail, making it slightly verbose. Overall, it is front-loaded and efficient.

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 tool with an output schema and 100% parameter coverage, the description is reasonably complete. It covers what the tool does, supported formats, input arguments, and return type. It does not explain how results are structured beyond 'dictionary with scanned issues', but the output schema likely handles that. It could mention whether multiple formats can be scanned at once, but the schema implies single format per call.

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 schema has 100% coverage, so the baseline is 3. The description adds meaningful value by listing the accepted format types (e.g., terraform, cloudformation, kubernetes) and clarifying that 'code' is the content to analyze. This goes beyond the schema's brief 'etc.' and helps the agent select valid values.

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 scans Infrastructure as Code using Checkov for security issues, with a specific verb ('Scan'), a resource ('Infrastructure as Code'), and the tool name ('Checkov'). It also distinguishes itself from siblings like scan_with_semgrep and scan_with_bandit by focusing on IaC formats and listing supported types.

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 clear context by specifying that it analyzes Infrastructure as Code files and lists supported formats, which implies when to use it. However, it does not explicitly name alternatives or state exclusions, such as 'use this for IaC scanning rather than semgrep'.

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/aws-samples/sample-mcp-security-scanner'

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