tf_summarize_plan
Summarize a saved Terraform plan by prioritizing deletes, replaces, updates, creates, imports, moves, drift, and output changes, with destroy warnings and sensitive values redacted.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Terraform root module directory (must already be initialized). 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; relative paths resolve against dir | |
| plan_json | No | 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) |