Skip to main content
Glama

terraform-cloud-mcp

force_cancel_run

Immediately terminate a stuck Terraform Cloud run that isn't responding to regular cancellation. Forcefully unlocks the workspace, bypassing graceful shutdown. Use when normal cancellation fails to resolve run issues.

Instructions

Forcefully cancel a run immediately

Immediately terminates a run that hasn't responded to a normal cancel request. Use this as a last resort when a run is stuck and not responding to regular cancellation. This action bypasses the graceful shutdown process and forces the workspace to be unlocked. API endpoint: POST /runs/{run_id}/actions/force-cancel Args: run_id: The ID of the run to force cancel (format: "run-xxxxxxxx") comment: An optional explanation for why the run was force canceled Returns: Run status update confirming forced cancellation with timestamp, user information, and workspace unlock status See: docs/tools/run_tools.md for usage examples

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" ], "title": "force_cancel_runArguments", "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