Skip to main content
Glama

terraform-cloud-mcp

get_current_state_version

Retrieve the current state version of a Terraform Cloud workspace to access input state details and download URLs for terraform operations. Use the workspace ID as input.

Instructions

Get the current state version for a workspace.

Retrieves the current state version for a workspace, which is the input state when running terraform operations.

API endpoint: GET /workspaces//current-state-version

Args: workspace_id: The ID of the workspace (format: "ws-xxxxxxxx")

Returns: The current state version including details and download URLs

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

Input Schema

NameRequiredDescriptionDefault
workspace_idYes

Input Schema (JSON Schema)

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