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

terraform-best-practices-mcp-server

run_kics

Scans Terraform code with KICS to detect infrastructure-as-code security and compliance issues before deployment.

Instructions

Run kics IaC scanning against Terraform code.

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_kics"
  }
}

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.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and falls well short: it does not say whether the scan is read-only, whether findings cause a non-zero exit, what the output looks like, whether kics must be installed locally, or how the timeoutMs parameter behaves on expiry. It only restates the operation.

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?

A single short sentence with no wasted words and the core operation front-loaded. Its brevity is efficient, though it borders on under-specification for a scanner with meaningful side effects and output.

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?

For a three-parameter scanning tool with no output schema, the description should at least indicate the nature of results (findings list, severity, pass/fail) and failure behavior. None of that is present, so an agent cannot predict what it will get back or how to interpret a run.

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 path, extraArgs, and timeoutMs are already fully documented with defaults and constraints. The description adds no meaning beyond the schema, which is the baseline 3 case rather than a deficiency.

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?

States a specific verb ('Run') and resource ('kics IaC scanning against Terraform code'), so the agent knows exactly what operation is performed. It does not, however, distinguish this scanner from the closely related run_checkov or run_trivy siblings, leaving the agent to infer which scanner applies when.

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, no prerequisites, and no mention of alternatives such as run_checkov or run_trivy for overlapping IaC/security scanning. The agent must guess the selection criteria entirely from the tool name.

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