tf_upgrade_impact
Determines what breaks when a pinned Terraform provider is upgraded or downgraded to an exact version by comparing used schemas, checking constraints, and running terraform validate on a temp copy.
Instructions
What breaks if a pinned provider is upgraded (or downgraded) to an exact version: compares the pinned schema with the target's for the arguments, nested blocks and attribute reads this configuration uses (root and installed modules), checks version constraints, and confirms with terraform validate on a temp copy. Disabled unless the operator sets TERRAFORM_CWD_MCP_ALLOW_UPGRADE=1. Executes code: it downloads the target provider named through the lock file into a cache (temp dirs only; never touches dir) and runs that plugin and the pinned ones, with credential environment variables removed. For the latest version number or upgrade guides, use the official terraform MCP server.
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": {
"provider": "<provider>",
"version": "<version>"
},
"name": "tf_upgrade_impact"
}
}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. | |
| version | Yes | Exact target version, e.g. 6.0.0 (not a constraint) | |
| provider | Yes | Provider address as pinned, e.g. hashicorp/aws or registry.terraform.io/hashicorp/aws | |
| validate | No | Confirm with terraform validate on a temp copy (offline once the target is downloaded) | |
| include_unused | No | Also list target-version changes to types/arguments this configuration does not use |