Skip to main content
Glama
Azure Terraform MCP Server

Azure Terraform MCP Server

by liuwuliuyun

generate_conftest_workspace_plan_validation_command

Generates a conftest command to validate Terraform plan files against Azure security policies, returning it for local execution by the agent.

Instructions

Generate a conftest command to validate Terraform plan files 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": {
      "folderName": "<folderName>"
    },
    "name": "generate_conftest_workspace_plan_validation_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
policySetNoPolicy set to useall
folderNameYesName of the folder containing the plan file
customPoliciesNoComma-separated list of custom policy paths
severityFilterNoSeverity filter for avmsec policies

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that no validation is performed server-side and that a command string is returned for local execution, but it omits permission requirements, whether the target folder or plan file must already exist, and the exact form of the returned string.

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?

Two tight sentences with the core action front-loaded and the return behavior second. Nothing is redundant, though the brevity leaves gaps that the second sentence could have used to address.

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 four-parameter command generator with full schema coverage and no output schema, the description covers what the tool produces and that the agent must run it. Missing only prerequisite and result-handling context, which are secondary for this tool's scope.

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% and two parameters are enums, so the schema already documents folderName, policySet, customPolicies, and severityFilter. The description adds no meaning beyond that — for example, how severityFilter interacts with policySet or the expected format of customPolicies paths.

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 uses a specific verb+resource: 'Generate a conftest command to validate Terraform plan files against Azure security policies.' It is clearly distinct from the workspace-level sibling in intent, though it never names or contrasts that sibling explicitly.

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?

It implies usage via 'the command is returned for the agent to execute locally,' which tells the agent this is a preparation step rather than an execution step. It does not state preconditions such as conftest being installed (a sibling tool exists for checking installation) or when to choose the workspace variant instead.

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