Skip to main content
Glama
Azure Terraform MCP Server

Azure Terraform MCP Server

by liuwuliuyun

generate_aztfexport_resource_command

Generates an aztfexport command to export a single Azure resource into Terraform configuration, returning the command for the agent to run locally.

Instructions

Generate an aztfexport command to export a single Azure resource 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": {
      "resourceId": "<resourceId>"
    },
    "name": "generate_aztfexport_resource_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPerform a dry run without creating files
providerNoTerraform provider to useazurerm
resourceIdYesAzure resource ID to export
parallelismNoNumber of parallel operations
resourceNameNoCustom resource name in Terraform
resourceTypeNoCustom resource type in Terraform
continueOnErrorNoContinue export even if some resources fail
outputFolderNameNoOutput folder name (created under workspace root)
includeRoleAssignmentNoInclude role assignments in export

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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; it does usefully disclose that the tool only generates a command string and does not run the export itself, which is the key behavioral fact. It does not mention permission requirements, whether the export writes files to the workspace when executed (relevant to the dryRun and outputFolderName params), or any dependency on aztfexport being installed.

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, front-loaded with the action and resource, then the critical detail about what is returned. No redundant or filler wording.

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?

The description covers the generate-don't-execute contract, and the schema fully documents the nine parameters with no output schema to explain. However, for a command-generation tool in a suite that includes check_aztfexport_installation, omitting the installation prerequisite and any note about workspace file output leaves a real gap.

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% across all nine parameters, so each field's meaning (dryRun, provider, parallelism, outputFolderName, continueOnError, includeRoleAssignment) is already documented. The description adds no additional meaning, so the baseline of 3 applies.

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 ('Generate an aztfexport command') scoped to 'a single Azure resource', which implicitly separates it from the resource-group and by-query siblings. It never names a sibling explicitly, so differentiation comes from scope wording rather than direct routing.

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?

The description gives no when-to-use or when-not guidance relative to the sibling generators (resource group, by-query) and no prerequisites, such as verifying aztfexport is installed first. The only usage-adjacent statement is that the returned command is executed locally by the agent, which is a behavioral note rather than a selection rule.

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