Skip to main content
Glama

terraform-cloud-mcp

get_plan_logs

Retrieve detailed execution logs from a Terraform Cloud plan using the plan ID. Automatically follows redirects to access raw log output for analysis and troubleshooting.

Instructions

Retrieve logs from a plan.

Gets the raw log output from a Terraform Cloud plan operation, providing detailed information about the execution plan.

API endpoint: Uses the log-read-url from GET /plans/{plan_id}

Args: plan_id: The ID of the plan to retrieve logs for (format: "plan-xxxxxxxx")

Returns: The raw logs from the plan operation. The redirect to the log file is automatically followed.

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

Input Schema

NameRequiredDescriptionDefault
plan_idYes

Input Schema (JSON Schema)

{ "properties": { "plan_id": { "title": "Plan Id", "type": "string" } }, "required": [ "plan_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