Skip to main content
Glama
terraform-best-practices-mcp-server

terraform-best-practices-mcp-server

run_checkov

Scans Terraform project directories with Checkov to identify security and configuration issues before deployment.

Instructions

Run checkov over a Terraform directory.

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

Input Schema

NameRequiredDescriptionDefault
pathNoTerraform project path to scan. Must not start with '-'..
extraArgsNoExtra positional CLI arguments. Values starting with '-' are rejected.
timeoutMsNoOptional command timeout in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.2.66
    • changedInput schema / properties / extraArgs / description
      Previous value: -"Extra CLI arguments."New value: +"Extra positional CLI arguments. Values starting with '-' are rejected."
    • changedInput schema / properties / path / description
      Previous value: -"Terraform project path to scan."New value: +"Terraform project path to scan. Must not start with '-'."
  2. First observedv1.0.0

TDQS

C2.5/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 disclosure burden and does almost nothing with it. It doesn't say whether the scan is read-only, whether it downloads policies, how long it typically runs, whether findings affect exit status, or what the output looks like. "Run X over Y" is essentially the tool name restated.

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

Conciseness3/5

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

One short sentence with no filler, which is structurally clean and front-loaded. But the brevity here reflects under-specification rather than economy — there is no second sentence doing the work the description should be doing.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only place an agent can learn what a checkov run returns and how to interpret it, and it says nothing. For a scanner whose output is a structured pass/fail report and whose execution may be slow or network-dependent, this is a significant gap.

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%, with all three parameters documented including the '-' prefix rejection rules, so the schema already does the semantic work. The description adds no parameter meaning beyond that, which is the expected baseline when coverage is complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb ("Run") and a concrete resource ("a Terraform directory"), so the mechanical action is unambiguous. However, it never explains what checkov actually does (policy/security scanning of IaC) nor how that differs from siblings like run_kics or run_trivy, which are also scanners. An agent that doesn't already know the checkov binary gets no basis for choosing it.

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 guidance at all: no conditions, no prerequisites (installed binary, network fetch of policies), and no exclusions. The sibling set contains at least three overlapping scanning tools, and the description does nothing to route between them.

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