Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

terrascan_iac_scan

Scan infrastructure as code for security misconfigurations and policy violations using Terrascan, with filters for scan type, severity, and output format.

Instructions

Execute Terrascan for infrastructure as code security scanning.

Args: scan_type: Type of scan (all, terraform, k8s, etc.) iac_dir: Infrastructure as code directory policy_type: Policy type to use output_format: Output format (json, yaml, xml) severity: Severity filter (high, medium, low) additional_args: Additional Terrascan arguments

Returns: Infrastructure as code security scanning results

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

Input Schema

NameRequiredDescriptionDefault
iac_dirNo.
severityNo
scan_typeNoall
policy_typeNo
output_formatNojson
additional_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It implies an external binary execution and a read-only scan, but does not state that explicitly, nor does it cover permissions, failure modes, timeouts, or whether the scan mutates anything on disk.

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?

Front-loaded with a clear one-line purpose, and the Args list is readable. The 'Returns' sentence is tautological filler given an output schema exists, and the arg restatements add bulk without depth.

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?

For a 6-parameter tool with zero annotation coverage and zero schema descriptions, the description covers each parameter at a surface level and states the purpose. It falls short on prerequisites, sibling differentiation, and behavioral caveats, which are the remaining gaps.

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 0%, so the description must compensate, and it partially does by listing each arg with example values (all/terraform/k8s, json/yaml/xml, high/medium/low). The 'policy_type' and 'additional_args' explanations remain vague, leaving half the semantics thin.

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 and resource: 'Execute Terrascan for infrastructure as code security scanning,' which is more informative than a bare name restatement. However, it never distinguishes itself from the obvious sibling checkov_iac_scan, leaving the agent to infer which IaC scanner to pick.

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?

No when-to-use guidance is given: nothing about when Terrascan is preferable to checkov_iac_scan, no prerequisites (Terrascan binary must be installed), and no note on what happens if the binary is missing. Only implied usage from the verb.

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

Deploy Server

Other Tools