Skip to main content
Glama

terraform-cloud-mcp

force_unlock_workspace

Force unlock a Terraform Cloud workspace when normal unlocking fails, such as due to orphaned locks or unavailable users. Requires admin privileges and careful use to avoid disrupting active operations.

Instructions

Force unlock a workspace. This should be used with caution.

Forces a workspace to unlock even when the normal unlock process isn't possible. This is typically needed when a run has orphaned a lock or when the user who locked the workspace is unavailable. This operation requires admin privileges on the workspace. WARNING: Forcing an unlock can be dangerous if the workspace is legitimately locked for active operations. Only use this when you are certain it's safe to unlock. API endpoint: POST /workspaces/{workspace_id}/actions/force-unlock Args: workspace_id: The ID of the workspace to force unlock (format: "ws-xxxxxxxx") Returns: The workspace with updated lock status and related metadata See: docs/tools/workspace_tools.md for usage examples

Input Schema

NameRequiredDescriptionDefault
workspace_idYes

Input Schema (JSON Schema)

{ "properties": { "workspace_id": { "title": "Workspace Id", "type": "string" } }, "required": [ "workspace_id" ], "title": "force_unlock_workspaceArguments", "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