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

terraform-best-practices-mcp-server

run_tflint

Run Terraform linting against a project directory to detect configuration issues and enforce best-practice rules before deployment.

Instructions

Run tflint against a Terraform project 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_tflint"
  }
}

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 discloses almost nothing: it does not say whether lint findings cause failure, what the output contains, whether it recurses into modules, or what it reads from disk. The parameter-safety constraints (rejecting '-'-prefixed values, timeout cap) live only in the schema, not the description.

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 zero filler, front-loaded with the action and the target. It is efficient, though its brevity borders on under-specification rather than disciplined concision.

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 tool with no annotations, no output schema, and a results-producing analysis operation, the description is too thin — an agent cannot predict what comes back (lint issues, severity, counts) or how to interpret a run. Parameter coverage is handled entirely by the schema, but the behavioral picture is 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 all three parameters (path, extraArgs, timeoutMs) are already documented with defaults and constraints in the schema. The description adds no meaning beyond that, which matches the baseline 3 for full schema coverage.

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?

The description states a specific verb ('Run') and resource ('tflint against a Terraform project directory'), which is unambiguous on its own. It does not, however, distinguish this linting tool from sibling scanners like run_checkov, run_trivy, or run_kics, so an agent must already know what tflint is to differentiate.

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 or when-not-to-use guidance beyond the implied scope of 'a Terraform project directory'. Nothing tells the agent how this differs from the other run_* analysis tools or under what conditions linting is the right choice.

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