Skip to main content
Glama

terraform-cloud-mcp

list_workspaces

Retrieve and filter workspaces in a Terraform Cloud organization. This tool provides a paginated list of workspaces, enabling discovery, configuration checks, and partial name searches efficiently.

Instructions

List workspaces in an organization.

Retrieves a paginated list of all workspaces in a Terraform Cloud organization. Results can be filtered using a search string to find specific workspaces by name. Use this tool to discover existing workspaces, check workspace configurations, or find specific workspaces by partial name match.

API endpoint: GET /organizations/{organization}/workspaces

Args: organization: The name of the organization to list workspaces from page_number: The page number to return (default: 1) page_size: The number of items per page (default: 20, max: 100) search: Optional search string to filter workspaces by name

Returns: Paginated list of workspaces with their configuration settings and metadata

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

Input Schema

NameRequiredDescriptionDefault
organizationYes
page_numberNo
page_sizeNo
searchNo

Input Schema (JSON Schema)

{ "properties": { "organization": { "title": "Organization", "type": "string" }, "page_number": { "default": 1, "title": "Page Number", "type": "integer" }, "page_size": { "default": 20, "title": "Page Size", "type": "integer" }, "search": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Search" } }, "required": [ "organization" ], "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