Skip to main content
Glama
Azure Terraform MCP Server

Azure Terraform MCP Server

by liuwuliuyun

generate_aztfexport_resource_group_command

Generates an aztfexport command to export an Azure resource group and all its resources into Terraform configuration, returning it for local execution.

Instructions

Generate an aztfexport command to export an Azure resource group and all its resources to Terraform configuration. 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": {
      "resourceGroupName": "<resourceGroupName>"
    },
    "name": "generate_aztfexport_resource_group_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPerform a dry run without creating files
providerNoTerraform provider to useazurerm
namePatternNoPattern for resource naming in Terraform
parallelismNoNumber of parallel operations
typePatternNoPattern for resource type filtering
continueOnErrorNoContinue export even if some resources fail
outputFolderNameNoOutput folder name (created under workspace root)
resourceGroupNameYesName of the resource group to export
includeRoleAssignmentNoInclude role assignments in export

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 behavioral burden, and it does disclose the critical trait that nothing is executed server-side: 'The command is returned for the agent to execute locally.' However, it omits prerequisites (aztfexport installed, authenticated Azure session), any side effects such as files written to the workspace, and how dryRun/continueOnError affect behavior, so meaningful gaps remain for a tool that produces an executable artifact.

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 sentences, front-loaded with the purpose and followed by the key execution-context caveat. No filler, no repetition of the tool name, and every clause carries information.

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 moderately complex generator with nine fully documented parameters and no output schema, the description covers what the tool does and what it returns (a command string executed locally by the agent), which is the most important missing piece absent an output schema. It falls short only on prerequisites and side effects, which the schema cannot convey.

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 every one of the nine parameters (dryRun, provider, namePattern, parallelism, etc.) is already documented in the schema. The description adds no parameter-level meaning beyond that, which sets the baseline at 3.

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 ('Generate') and resource ('an aztfexport command to export an Azure resource group and all its resources to Terraform configuration'), making the scope of a whole resource group clear. It implicitly distinguishes itself from the single-resource and query-based siblings by emphasizing 'resource group and all its resources', but never names or contrasts those siblings 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?

Usage is implied by the scope statement: use this when the target is an entire resource group rather than an individual resource. There is no explicit when-to-use/when-not guidance and no mention of sibling tools like generate_aztfexport_resource_command or the prerequisite check_aztfexport_installation, leaving the agent to infer the selection criteria.

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