Skip to main content
Glama
RajeevSirohi

mcp-server-terraform

tf_destroy

Destructive

Preview and then destroy all Terraform-managed infrastructure with two-step safety. Shows a destroy plan first; requires explicit approval to execute.

Instructions

Destroy all Terraform-managed infrastructure in the workspace.

TWO-STEP SAFETY FLOW:

  1. Call without confirmed=true → shows the destroy plan (what will be deleted).

  2. Call with confirmed=true after the user explicitly approves → destroys everything.

This is irreversible. Always show the plan and get explicit user approval first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
varsNoVariable overrides in key=value format, e.g. ["region=us-east-1"]
targetNoLimit operation to a specific resource address, e.g. aws_instance.web
varFileNoPath to a .tfvars or .tfvars.json file
workdirYesAbsolute or relative path to the directory containing .tf files
confirmedNoMust be true to actually destroy. Omit or false to preview only.
workspaceNoTerraform workspace to use (default: current workspace)
Behavior5/5

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

Beyond the destructiveHint annotation, the description adds critical behavioral details: the tool is irreversible and requires a two-step confirmation process. This fully informs the agent of the destructive nature and necessary precautions.

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?

The description is concise with three sentences and a clear list of steps. Front-loaded with the main purpose, every sentence adds value without redundancy.

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 destructive tool with no output schema, the description adequately covers the safety flow and overall behavior. It assumes basic Terraform knowledge but is sufficiently complete for selecting and invoking the tool correctly.

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?

The input schema has 100% coverage of parameter descriptions. The description does not add meaning beyond that, but given the high schema coverage, a baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Destroy all Terraform-managed infrastructure in the workspace', using a specific verb and resource. It distinguishes from siblings like tf_apply and tf_plan by emphasizing irreversibility and the destroy action.

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

Usage Guidelines5/5

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

The description explicitly outlines a two-step safety flow, guiding when to use without confirmed (preview) and with confirmed (actual destroy). It instructs to always show the plan and get explicit user approval, providing clear usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RajeevSirohi/mcp-server-terraform'

If you have feedback or need assistance with the MCP directory API, please join our Discord server