Skip to main content
Glama

security_terraform_check

Read-only

Terraform security check — Offline static audit of Terraform HCL before apply: internet-exposed admin/database ports in AWS security groups, GCP firewalls and Azure NSGs, public S3/GCS/Azure storage, public or unencrypted RDS/EBS, IMDSv1, IAM Action * / Resource *, hardcoded secrets and AWS keys, plain-HTTP load balancers, unpinned modules. Pass text= (HCL) or url= (.tf file; GitHub blob links converted to raw). Returns verdict PASS/REVIEW/FIX BEFORE APPLY/BLOCK, score, grade and findings with line numbers and fixes. Price: $0.006 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "security_terraform_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesresource "aws_security_group" "web" { ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Adds real context beyond the annotations: the audit is offline, it costs $0.006 USDC settled via x402 on Base, and it returns a verdict plus score/grade/findings with line numbers and fixes. The read-only, non-destructive, network-touching profile is already carried by the three hints, so the description's contribution is cost and output shape rather than behavior the agent could not otherwise infer.

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?

Front-loads the purpose, then packs the check list, input modes, return values and price into one dense paragraph with no filler sentences. The long comma list of checks is information-bearing rather than padding.

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?

Return values (verdict, score, grade, findings with line numbers and fixes), cost, and input formats are all covered, which is strong for a tool with no output schema. The gap is that the documented url input path does not exist in the schema, leaving the accepted inputs ambiguous.

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 coverage is 100% for the single text parameter, so the baseline applies. The description does clarify that text is raw HCL and that url accepts .tf files with GitHub blob-to-raw rewriting, but url is not present in the input schema at all, which is a discrepancy that could lead an agent to pass an invalid property.

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?

States a specific verb and resource ('Offline static audit of Terraform HCL before apply') and then enumerates exactly which misconfigurations are detected (public S3/GCS, RDS encryption, IMDSv1, IAM wildcards, hardcoded secrets). This makes it trivially distinguishable from the IaC siblings like security_dockerfile_check and security_k8s_check.

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?

Gives explicit usage context ('before apply') and tells the agent how to supply input (text= for inline HCL, url= for a .tf file, with GitHub blob links converted). It does not explicitly name exclusions or alternatives, but the Terraform-specific framing makes the routing obvious among the sibling checkers.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources