Skip to main content
Glama

terraform-cloud-mcp

cancel_run

Stop an in-progress Terraform Cloud run during planning or applying phases. Gracefully interrupts the process, cleans up resources, and logs the cancellation with an optional comment for audit purposes.

Instructions

Cancel a run that is currently planning or applying

Gracefully stops an in-progress run during planning or applying phases. Use this when you need to stop a run that's taking too long, consuming too many resources, or needs to be stopped for any reason. The operation attempts to cleanly terminate the run by sending an interrupt signal.

API endpoint: POST /runs/{run_id}/actions/cancel

Args: run_id: The ID of the run to cancel (format: "run-xxxxxxxx") comment: An optional explanation for why the run was canceled

Returns: Run status update with canceled state, timestamp of cancellation, and any provided comment in the response metadata

See: docs/tools/run.md for reference documentation

Input Schema

NameRequiredDescriptionDefault
commentNo
run_idYes

Input Schema (JSON Schema)

{ "properties": { "comment": { "default": "", "title": "Comment", "type": "string" }, "run_id": { "title": "Run Id", "type": "string" } }, "required": [ "run_id" ], "type": "object" }

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/severity1/terraform-cloud-mcp'

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