tf_summarize_plan
Summarizes saved Terraform plans into changes—replaces/destroys, updates, creates, imports, moves, drift, outputs, and destroy warnings—so you can review impact without reading full JSON.
Instructions
Summarize a saved Terraform plan: deletes and replaces first (with the attribute that forces each replace), updates with changed paths, creates, imports, moves, forgets, drift and output changes, plus a destroy warning that names renames needing a moved block. Pass plan_file (binary from terraform plan -out, rendered with terraform show -json in dir, or a plan JSON file) or plan_json (e.g. from the official terraform MCP server's get_plan_json_output(plan_id) for an HCP run; get the plan id from its get_run_details). Prints no values: sensitive paths are truncated, import IDs omitted. plan_json and JSON files are unverified caller input: their shape is checked, but nothing proves Terraform produced them. plan_file must be inside dir. Executes code for a binary plan: terraform show starts the provider plugins (credential environment variables removed).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tf_summarize_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Terraform root module directory (must already be initialized), inside the server's directory or TERRAFORM_CWD_MCP_ALLOWED_DIRS. Default: TERRAFORM_CWD_MCP_DIR, else the server's working directory. | |
| max_paths | No | Changed attribute paths listed per updated resource (default 8) | |
| plan_file | No | Saved plan (binary from `terraform plan -out`, rendered here with `terraform show -json` in `dir`) or a plan JSON file, inside dir; relative paths resolve against dir | |
| plan_json | No | Unverified plan JSON text, e.g. from the official terraform MCP server's get_plan_json_output | |
| max_per_section | No | Max entries listed per section (default 50) |