Skip to main content
Glama
Azure Terraform MCP Server

Azure Terraform MCP Server

by liuwuliuyun

generate_conftest_workspace_validation_command

Generates a conftest command to validate Terraform files in a workspace folder against Azure security policies, returning the command for local execution.

Instructions

Generate a conftest command to validate Terraform files in a workspace folder against Azure security policies. The command is returned for the agent to execute locally.

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": {
      "workspaceFolder": "<workspaceFolder>"
    },
    "name": "generate_conftest_workspace_validation_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
policySetNoPolicy set to useall
customPoliciesNoComma-separated list of custom policy paths
severityFilterNoSeverity filter for avmsec policies
workspaceFolderYesPath to the workspace folder to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important behavioral fact: the tool returns a command string rather than running validation itself, so the agent must execute it locally. It omits other relevant traits, such as whether conftest must already be installed (a separate sibling exists for that) and what happens when policy paths or policy sets are unavailable.

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

Conciseness5/5

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

Two short sentences with zero waste. The action and scope come first and the execution model follows immediately, so the agent gets the essential facts in the first read.

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

Completeness4/5

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

For a command-generator with fully documented parameters and no output schema, the definition covers what the tool produces and who runs it. The remaining gap is operational context around prerequisites and failure conditions, which matters somewhat given the absence of annotations.

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 the schema already documents workspaceFolder, policySet, customPolicies, and severityFilter, including the two enums. The description adds no parameter-level meaning beyond the phrase 'Azure security policies', which only loosely gestures at policySet.

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 gives a specific verb and resource ('Generate a conftest command') plus scope ('validate Terraform files in a workspace folder against Azure security policies'), which implicitly separates it from the sibling that validates a plan rather than raw files. It stops short of naming that sibling, so an agent must infer the contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the description tells the agent what to do with the result ('execute locally') but never states when this tool is preferred over the plan-validation sibling or what prerequisites must hold. There are no explicit exclusions or alternative-routing guidance.

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