Terraform Cloud MCP Server for Cloudflare Workers
88 tools available in the Terraform MCP server. Each tool can be called by AI assistants to perform specific actions.
terraform_force_execute_runForce execute a run, cancelling all prior runs and unlocking the workspace.
Args:
Returns: Confirmation of force execute action.
{
"type": "object",
"required": [
"runId"
],
"properties": {
"runId": {
"type": "string",
"description": "Run ID"
}
}
}terraform_remove_policies_from_setRemove policies from a policy set.
Args:
Returns: Confirmation.
{
"type": "object",
"required": [
"policySetId",
"policyIds"
],
"properties": {
"policyIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Policy IDs to remove"
},
"policySetId": {
"type": "string",
"description": "Policy set ID"
}
}
}terraform_get_policyGet details of a specific policy.
Args:
Returns: Policy details including enforcement level and kind.
{
"type": "object",
"required": [
"policyId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"policyId": {
"type": "string",
"description": "Policy ID"
}
}
}terraform_delete_teamDelete a team.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"teamId"
],
"properties": {
"teamId": {
"type": "string",
"description": "Team ID"
}
}
}terraform_list_agent_poolsList agent pools in an organization.
Args:
Returns: Paginated list of agent pools.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_agent_poolGet details of an agent pool.
Args:
Returns: Agent pool details.
{
"type": "object",
"required": [
"agentPoolId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"agentPoolId": {
"type": "string",
"description": "Agent pool ID"
}
}
}terraform_create_agent_poolCreate a new agent pool.
Args:
Returns: The created agent pool.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Agent pool name"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"organizationScoped": {
"type": "boolean",
"default": false,
"description": "Organization scoped"
}
}
}terraform_update_agent_poolUpdate an agent pool.
Args:
Returns: The updated agent pool.
{
"type": "object",
"required": [
"agentPoolId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"agentPoolId": {
"type": "string",
"description": "Agent pool ID"
},
"organizationScoped": {
"type": "boolean",
"description": "Organization scoped"
}
}
}terraform_delete_agent_poolDelete an agent pool.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"agentPoolId"
],
"properties": {
"agentPoolId": {
"type": "string",
"description": "Agent pool ID"
}
}
}terraform_list_agentsList agents in an agent pool.
Args:
Returns: List of agents with status.
{
"type": "object",
"required": [
"agentPoolId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"agentPoolId": {
"type": "string",
"description": "Agent pool ID"
}
}
}terraform_get_agentGet details of a specific agent.
Args:
Returns: Agent details including status.
{
"type": "object",
"required": [
"agentId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"agentId": {
"type": "string",
"description": "Agent ID"
}
}
}terraform_delete_agentDelete an agent.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"agentId"
],
"properties": {
"agentId": {
"type": "string",
"description": "Agent ID"
}
}
}terraform_list_run_tasksList run tasks in an organization.
Args:
Returns: Paginated list of run tasks.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_run_taskGet details of a run task.
Args:
Returns: Run task details.
{
"type": "object",
"required": [
"taskId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"taskId": {
"type": "string",
"description": "Run task ID"
}
}
}terraform_create_run_taskCreate a new run task.
Args:
Returns: The created run task.
{
"type": "object",
"required": [
"organization",
"name",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Callback URL"
},
"name": {
"type": "string",
"description": "Run task name"
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable task"
},
"hmacKey": {
"type": "string",
"description": "HMAC key"
},
"description": {
"type": "string",
"description": "Description"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_update_run_taskUpdate a run task.
Args:
Returns: The updated run task.
{
"type": "object",
"required": [
"taskId"
],
"properties": {
"url": {
"type": "string",
"description": "New callback URL"
},
"name": {
"type": "string",
"description": "New name"
},
"taskId": {
"type": "string",
"description": "Run task ID"
},
"enabled": {
"type": "boolean",
"description": "Enable/disable"
},
"description": {
"type": "string",
"description": "New description"
}
}
}terraform_delete_run_taskDelete a run task.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"type": "string",
"description": "Run task ID"
}
}
}terraform_list_workspace_run_tasksList run tasks attached to a workspace.
Args:
Returns: List of workspace run tasks.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_list_registry_modulesList private registry modules in an organization.
Args:
Returns: Paginated list of registry modules.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_attach_run_taskAttach a run task to a workspace.
Args:
Returns: The workspace run task.
{
"type": "object",
"required": [
"workspaceId",
"taskId",
"stage",
"enforcementLevel"
],
"properties": {
"stage": {
"enum": [
"pre_plan",
"post_plan",
"pre_apply",
"post_apply"
],
"type": "string",
"description": "Stage"
},
"taskId": {
"type": "string",
"description": "Run task ID"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"enforcementLevel": {
"enum": [
"advisory",
"mandatory"
],
"type": "string",
"description": "Enforcement level"
}
}
}terraform_detach_run_taskDetach a run task from a workspace.
Args:
Returns: Confirmation.
{
"type": "object",
"required": [
"workspaceId",
"taskId"
],
"properties": {
"taskId": {
"type": "string",
"description": "Workspace run task ID"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_list_organizationsList organizations the authenticated user has access to.
Args:
Returns: Paginated list of organizations.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
}
}
}terraform_get_organizationGet details of a specific organization.
Args:
Returns: Organization details including settings and permissions.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Organization name"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}terraform_create_organizationCreate a new organization.
Args:
Returns: The created organization details.
{
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"description": "Organization name"
},
"email": {
"type": "string",
"description": "Admin email"
}
}
}terraform_update_organizationUpdate an organization.
Args:
Returns: The updated organization details.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Organization name"
},
"email": {
"type": "string",
"description": "New admin email"
},
"sessionTimeout": {
"type": "number",
"description": "Session timeout (minutes)"
},
"sessionRemember": {
"type": "number",
"description": "Session remember (minutes)"
},
"costEstimationEnabled": {
"type": "boolean",
"description": "Enable cost estimation"
},
"collaboratorAuthPolicy": {
"enum": [
"password",
"two_factor_mandatory"
],
"type": "string",
"description": "Auth policy"
}
}
}terraform_delete_organizationDelete an organization.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_entitlementsGet organization entitlements/features.
Args:
Returns: List of enabled features and entitlements.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_list_projectsList projects in an organization.
Args:
Returns: Paginated list of projects.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_projectGet details of a specific project.
Args:
Returns: Project details.
{
"type": "object",
"required": [
"projectId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"projectId": {
"type": "string",
"description": "Project ID"
}
}
}terraform_create_projectCreate a new project in an organization.
Args:
Returns: The created project details.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Project name"
},
"description": {
"type": "string",
"description": "Project description"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_update_projectUpdate a project.
Args:
Returns: The updated project details.
{
"type": "object",
"required": [
"projectId"
],
"properties": {
"name": {
"type": "string",
"description": "New project name"
},
"projectId": {
"type": "string",
"description": "Project ID"
},
"description": {
"type": "string",
"description": "New description"
}
}
}terraform_delete_projectDelete a project.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"type": "string",
"description": "Project ID"
}
}
}terraform_list_policiesList policies in an organization.
Args:
Returns: Paginated list of policies.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_create_policyCreate a new policy.
Args:
Returns: The created policy details.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"kind": {
"enum": [
"sentinel",
"opa"
],
"type": "string",
"description": "Policy kind"
},
"name": {
"type": "string",
"description": "Policy name"
},
"query": {
"type": "string",
"description": "OPA query"
},
"description": {
"type": "string",
"description": "Policy description"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"enforcementLevel": {
"enum": [
"hard-mandatory",
"soft-mandatory",
"advisory",
"mandatory"
],
"type": "string",
"description": "Enforcement level"
}
}
}terraform_upload_policy_codeUpload policy code (Sentinel or OPA).
Args:
Returns: Confirmation of upload.
{
"type": "object",
"required": [
"policyId",
"code"
],
"properties": {
"code": {
"type": "string",
"description": "Policy code"
},
"policyId": {
"type": "string",
"description": "Policy ID"
}
}
}terraform_update_policyUpdate a policy.
Args:
Returns: The updated policy details.
{
"type": "object",
"required": [
"policyId"
],
"properties": {
"query": {
"type": "string",
"description": "OPA query"
},
"policyId": {
"type": "string",
"description": "Policy ID"
},
"description": {
"type": "string",
"description": "New description"
},
"enforcementLevel": {
"enum": [
"hard-mandatory",
"soft-mandatory",
"advisory",
"mandatory"
],
"type": "string",
"description": "Enforcement level"
}
}
}terraform_delete_policyDelete a policy.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"policyId"
],
"properties": {
"policyId": {
"type": "string",
"description": "Policy ID"
}
}
}terraform_list_policy_setsList policy sets in an organization.
Args:
Returns: Paginated list of policy sets.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_policy_setGet details of a policy set.
Args:
Returns: Policy set details.
{
"type": "object",
"required": [
"policySetId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"policySetId": {
"type": "string",
"description": "Policy set ID"
}
}
}terraform_create_policy_setCreate a new policy set.
Args:
Returns: The created policy set.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"kind": {
"enum": [
"sentinel",
"opa"
],
"type": "string",
"description": "Policy kind"
},
"name": {
"type": "string",
"description": "Policy set name"
},
"global": {
"type": "boolean",
"description": "Apply globally"
},
"description": {
"type": "string",
"description": "Description"
},
"agentEnabled": {
"type": "boolean",
"description": "Enable for agent runs"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"policiesPath": {
"type": "string",
"description": "Policies path in VCS"
},
"vcsIdentifier": {
"type": "string",
"description": "VCS repository identifier"
},
"vcsOauthTokenId": {
"type": "string",
"description": "OAuth token ID"
}
}
}terraform_update_policy_setUpdate a policy set.
Args:
Returns: The updated policy set.
{
"type": "object",
"required": [
"policySetId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"global": {
"type": "boolean",
"description": "Apply globally"
},
"description": {
"type": "string",
"description": "New description"
},
"policySetId": {
"type": "string",
"description": "Policy set ID"
},
"agentEnabled": {
"type": "boolean",
"description": "Enable for agent runs"
},
"policiesPath": {
"type": "string",
"description": "Policies path"
}
}
}terraform_delete_policy_setDelete a policy set.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"policySetId"
],
"properties": {
"policySetId": {
"type": "string",
"description": "Policy set ID"
}
}
}terraform_add_policies_to_setAdd policies to a policy set.
Args:
Returns: Confirmation.
{
"type": "object",
"required": [
"policySetId",
"policyIds"
],
"properties": {
"policyIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Policy IDs to add"
},
"policySetId": {
"type": "string",
"description": "Policy set ID"
}
}
}terraform_add_workspaces_to_policy_setAdd workspaces to a policy set.
Args:
Returns: Confirmation.
{
"type": "object",
"required": [
"policySetId",
"workspaceIds"
],
"properties": {
"policySetId": {
"type": "string",
"description": "Policy set ID"
},
"workspaceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Workspace IDs to add"
}
}
}terraform_remove_workspaces_from_policy_setRemove workspaces from a policy set.
Args:
Returns: Confirmation.
{
"type": "object",
"required": [
"policySetId",
"workspaceIds"
],
"properties": {
"policySetId": {
"type": "string",
"description": "Policy set ID"
},
"workspaceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Workspace IDs to remove"
}
}
}terraform_get_registry_moduleGet details of a private registry module.
Args:
Returns: Registry module details.
{
"type": "object",
"required": [
"organization",
"name",
"provider"
],
"properties": {
"name": {
"type": "string",
"description": "Module name"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"provider": {
"type": "string",
"description": "Provider name"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_create_registry_moduleCreate a new registry module (without VCS connection).
Args:
Returns: The created registry module.
{
"type": "object",
"required": [
"organization",
"name",
"provider"
],
"properties": {
"name": {
"type": "string",
"description": "Module name"
},
"provider": {
"type": "string",
"description": "Provider name"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_create_registry_module_vcsCreate a registry module from a VCS repository.
Args:
Returns: The created registry module.
{
"type": "object",
"required": [
"organization",
"vcsIdentifier",
"oauthTokenId"
],
"properties": {
"tagsRegex": {
"type": "string",
"description": "Version tags regex"
},
"oauthTokenId": {
"type": "string",
"description": "OAuth token ID"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"testsEnabled": {
"type": "boolean",
"description": "Enable module tests"
},
"vcsIdentifier": {
"type": "string",
"description": "VCS repository identifier"
},
"displayIdentifier": {
"type": "string",
"description": "Display identifier"
},
"publishingMechanism": {
"enum": [
"git_tag",
"branch"
],
"type": "string",
"description": "Publishing mechanism"
}
}
}terraform_delete_registry_moduleDelete a registry module (all versions).
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"organization",
"name",
"provider"
],
"properties": {
"name": {
"type": "string",
"description": "Module name"
},
"provider": {
"type": "string",
"description": "Provider name"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_delete_registry_module_versionDelete a specific version of a registry module.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"organization",
"name",
"provider",
"version"
],
"properties": {
"name": {
"type": "string",
"description": "Module name"
},
"version": {
"type": "string",
"description": "Version to delete"
},
"provider": {
"type": "string",
"description": "Provider name"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_list_runsList runs for a workspace or organization.
Args:
Returns: Paginated list of runs with status, message, and timestamps.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_runGet details of a specific run.
Args:
Returns: Detailed run information including status, plan/apply details, and timestamps.
{
"type": "object",
"required": [
"runId"
],
"properties": {
"runId": {
"type": "string",
"description": "Run ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}terraform_get_teamGet details of a specific team.
Args:
Returns: Team details including permissions and organization access.
{
"type": "object",
"required": [
"teamId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"teamId": {
"type": "string",
"description": "Team ID"
}
}
}terraform_create_runCreate a new run (plan) for a workspace.
Args:
Returns: The created run details.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"message": {
"type": "string",
"description": "Run message"
},
"refresh": {
"type": "boolean",
"description": "Refresh state before plan"
},
"planOnly": {
"type": "boolean",
"description": "Plan only mode"
},
"autoApply": {
"type": "boolean",
"description": "Auto-apply after plan"
},
"isDestroy": {
"type": "boolean",
"description": "Create destroy plan"
},
"refreshOnly": {
"type": "boolean",
"description": "Refresh only mode"
},
"targetAddrs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Target resource addresses"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"replaceAddrs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replace resource addresses"
}
}
}terraform_apply_runApply a run that is waiting for confirmation.
Args:
Returns: Confirmation of apply action.
{
"type": "object",
"required": [
"runId"
],
"properties": {
"runId": {
"type": "string",
"description": "Run ID"
},
"comment": {
"type": "string",
"description": "Apply comment"
}
}
}terraform_discard_runDiscard a run that is waiting for confirmation.
Args:
Returns: Confirmation of discard action.
{
"type": "object",
"required": [
"runId"
],
"properties": {
"runId": {
"type": "string",
"description": "Run ID"
},
"comment": {
"type": "string",
"description": "Discard comment"
}
}
}terraform_cancel_runCancel a run that is currently planning or applying.
Args:
Returns: Confirmation of cancel action.
{
"type": "object",
"required": [
"runId"
],
"properties": {
"force": {
"type": "boolean",
"default": false,
"description": "Force cancel"
},
"runId": {
"type": "string",
"description": "Run ID"
},
"comment": {
"type": "string",
"description": "Cancel comment"
}
}
}terraform_get_planGet details of a specific plan.
Args:
Returns: Plan details including resource changes and status.
{
"type": "object",
"required": [
"planId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"planId": {
"type": "string",
"description": "Plan ID"
}
}
}terraform_get_plan_jsonGet the JSON execution plan output.
Args:
Returns: JSON execution plan with detailed resource changes.
{
"type": "object",
"required": [
"planId"
],
"properties": {
"planId": {
"type": "string",
"description": "Plan ID"
}
}
}terraform_get_current_stateGet the current state version for a workspace.
Args:
Returns: Current state version details including serial, terraform version, and download URLs.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_list_state_versionsList state versions for a workspace.
Args:
Returns: Paginated list of state versions.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_get_state_versionGet details of a specific state version.
Args:
Returns: State version details.
{
"type": "object",
"required": [
"stateVersionId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"stateVersionId": {
"type": "string",
"description": "State version ID"
}
}
}terraform_list_state_outputsList outputs from a state version.
Args:
Returns: List of state outputs with names, types, and values.
{
"type": "object",
"required": [
"stateVersionId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"stateVersionId": {
"type": "string",
"description": "State version ID"
}
}
}terraform_rollback_stateRollback to a previous state version.
Args:
Returns: The new state version created from rollback.
{
"type": "object",
"required": [
"workspaceId",
"stateVersionId"
],
"properties": {
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"stateVersionId": {
"type": "string",
"description": "State version ID to rollback to"
}
}
}terraform_list_teamsList teams in an organization.
Args:
Returns: Paginated list of teams.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_create_teamCreate a new team in an organization.
Args:
Returns: The created team details.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Team name"
},
"visibility": {
"enum": [
"secret",
"organization"
],
"type": "string",
"description": "Team visibility"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"readProjects": {
"type": "boolean",
"description": "Can read projects"
},
"manageModules": {
"type": "boolean",
"description": "Can manage modules"
},
"managePolicies": {
"type": "boolean",
"description": "Can manage policies"
},
"manageProjects": {
"type": "boolean",
"description": "Can manage projects"
},
"manageRunTasks": {
"type": "boolean",
"description": "Can manage run tasks"
},
"readWorkspaces": {
"type": "boolean",
"description": "Can read workspaces"
},
"manageProviders": {
"type": "boolean",
"description": "Can manage providers"
},
"manageWorkspaces": {
"type": "boolean",
"description": "Can manage workspaces"
},
"manageVcsSettings": {
"type": "boolean",
"description": "Can manage VCS settings"
}
}
}terraform_update_teamUpdate a team.
Args:
Returns: The updated team details.
{
"type": "object",
"required": [
"teamId"
],
"properties": {
"name": {
"type": "string",
"description": "New team name"
},
"teamId": {
"type": "string",
"description": "Team ID"
},
"visibility": {
"enum": [
"secret",
"organization"
],
"type": "string",
"description": "Team visibility"
},
"readProjects": {
"type": "boolean",
"description": "Can read projects"
},
"manageModules": {
"type": "boolean",
"description": "Can manage modules"
},
"managePolicies": {
"type": "boolean",
"description": "Can manage policies"
},
"manageProjects": {
"type": "boolean",
"description": "Can manage projects"
},
"manageRunTasks": {
"type": "boolean",
"description": "Can manage run tasks"
},
"readWorkspaces": {
"type": "boolean",
"description": "Can read workspaces"
},
"manageProviders": {
"type": "boolean",
"description": "Can manage providers"
},
"manageWorkspaces": {
"type": "boolean",
"description": "Can manage workspaces"
},
"manageVcsSettings": {
"type": "boolean",
"description": "Can manage VCS settings"
}
}
}terraform_list_variablesList variables for a workspace.
Args:
Returns: List of variables with key, category, and sensitivity status.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_get_variableGet details of a specific variable.
Args:
Returns: Variable details including key, value (if not sensitive), and metadata.
{
"type": "object",
"required": [
"workspaceId",
"variableId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"variableId": {
"type": "string",
"description": "Variable ID"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_create_variableCreate a new variable in a workspace.
Args:
Returns: The created variable details.
{
"type": "object",
"required": [
"workspaceId",
"key",
"value",
"category"
],
"properties": {
"hcl": {
"type": "boolean",
"default": false,
"description": "Parse as HCL"
},
"key": {
"type": "string",
"description": "Variable key"
},
"value": {
"type": "string",
"description": "Variable value"
},
"category": {
"enum": [
"terraform",
"env"
],
"type": "string",
"description": "Variable category"
},
"sensitive": {
"type": "boolean",
"default": false,
"description": "Mark as sensitive"
},
"description": {
"type": "string",
"description": "Variable description"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_update_variableUpdate an existing variable.
Args:
Returns: The updated variable details.
{
"type": "object",
"required": [
"workspaceId",
"variableId"
],
"properties": {
"hcl": {
"type": "boolean",
"description": "Parse as HCL"
},
"key": {
"type": "string",
"description": "New variable key"
},
"value": {
"type": "string",
"description": "New variable value"
},
"category": {
"enum": [
"terraform",
"env"
],
"type": "string",
"description": "Variable category"
},
"sensitive": {
"type": "boolean",
"description": "Mark as sensitive"
},
"variableId": {
"type": "string",
"description": "Variable ID"
},
"description": {
"type": "string",
"description": "New description"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_delete_variableDelete a variable from a workspace.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspaceId",
"variableId"
],
"properties": {
"variableId": {
"type": "string",
"description": "Variable ID"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_list_variable_setsList variable sets for an organization.
Args:
Returns: Paginated list of variable sets.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_variable_setGet details of a variable set.
Args:
Returns: Variable set details.
{
"type": "object",
"required": [
"varsetId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"varsetId": {
"type": "string",
"description": "Variable set ID"
}
}
}terraform_create_variable_setCreate a new variable set.
Args:
Returns: The created variable set.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Variable set name"
},
"global": {
"type": "boolean",
"default": false,
"description": "Apply globally"
},
"priority": {
"type": "boolean",
"default": false,
"description": "Override workspace variables"
},
"description": {
"type": "string",
"description": "Description"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_update_variable_setUpdate a variable set.
Args:
Returns: The updated variable set.
{
"type": "object",
"required": [
"varsetId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"global": {
"type": "boolean",
"description": "Apply globally"
},
"priority": {
"type": "boolean",
"description": "Override workspace variables"
},
"varsetId": {
"type": "string",
"description": "Variable set ID"
},
"description": {
"type": "string",
"description": "New description"
}
}
}terraform_delete_variable_setDelete a variable set.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"varsetId"
],
"properties": {
"varsetId": {
"type": "string",
"description": "Variable set ID"
}
}
}terraform_list_variable_set_varsList variables in a variable set.
Args:
Returns: List of variables in the set.
{
"type": "object",
"required": [
"varsetId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"varsetId": {
"type": "string",
"description": "Variable set ID"
}
}
}terraform_add_variable_to_setAdd a variable to a variable set.
Args:
Returns: The created variable.
{
"type": "object",
"required": [
"varsetId",
"key",
"value",
"category"
],
"properties": {
"hcl": {
"type": "boolean",
"default": false,
"description": "Parse as HCL"
},
"key": {
"type": "string",
"description": "Variable key"
},
"value": {
"type": "string",
"description": "Variable value"
},
"category": {
"enum": [
"terraform",
"env"
],
"type": "string",
"description": "Variable category"
},
"varsetId": {
"type": "string",
"description": "Variable set ID"
},
"sensitive": {
"type": "boolean",
"default": false,
"description": "Mark as sensitive"
},
"description": {
"type": "string",
"description": "Description"
}
}
}terraform_apply_varset_to_workspacesApply a variable set to workspaces.
Args:
Returns: Confirmation of application.
{
"type": "object",
"required": [
"varsetId",
"workspaceIds"
],
"properties": {
"varsetId": {
"type": "string",
"description": "Variable set ID"
},
"workspaceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Workspace IDs"
}
}
}terraform_remove_varset_from_workspacesRemove a variable set from workspaces.
Args:
Returns: Confirmation of removal.
{
"type": "object",
"required": [
"varsetId",
"workspaceIds"
],
"properties": {
"varsetId": {
"type": "string",
"description": "Variable set ID"
},
"workspaceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Workspace IDs"
}
}
}terraform_list_workspacesList workspaces in a Terraform Cloud organization.
Returns a paginated list of workspaces with their configuration and status.
Args:
Returns: Paginated list of workspaces with ID, name, execution mode, terraform version, and lock status.
{
"type": "object",
"required": [
"organization"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageSize": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Items per page"
},
"pageNumber": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Page number"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_get_workspaceGet details of a specific workspace by ID or by organization and name.
Args:
Returns: Detailed workspace information including settings, VCS configuration, and permissions.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Workspace name"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"organization": {
"type": "string",
"description": "Organization name"
}
}
}terraform_create_workspaceCreate a new workspace in a Terraform Cloud organization.
Args:
Returns: The created workspace details.
{
"type": "object",
"required": [
"organization",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Workspace name"
},
"autoApply": {
"type": "boolean",
"description": "Auto-apply after plan"
},
"projectId": {
"type": "string",
"description": "Project ID"
},
"vcsBranch": {
"type": "string",
"description": "VCS branch"
},
"description": {
"type": "string",
"description": "Workspace description"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"executionMode": {
"enum": [
"remote",
"local",
"agent"
],
"type": "string",
"description": "Execution mode"
},
"vcsIdentifier": {
"type": "string",
"description": "VCS repository identifier"
},
"vcsOauthTokenId": {
"type": "string",
"description": "OAuth token ID for VCS"
},
"terraformVersion": {
"type": "string",
"description": "Terraform version"
},
"workingDirectory": {
"type": "string",
"description": "Working directory"
}
}
}terraform_update_workspaceUpdate an existing workspace.
Args:
Returns: The updated workspace details.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"name": {
"type": "string",
"description": "New workspace name"
},
"autoApply": {
"type": "boolean",
"description": "Auto-apply after plan"
},
"description": {
"type": "string",
"description": "New description"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
},
"executionMode": {
"enum": [
"remote",
"local",
"agent"
],
"type": "string",
"description": "Execution mode"
},
"terraformVersion": {
"type": "string",
"description": "Terraform version"
},
"workingDirectory": {
"type": "string",
"description": "Working directory"
}
}
}terraform_delete_workspaceDelete a workspace from Terraform Cloud.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"safe": {
"type": "boolean",
"default": true,
"description": "Use safe delete"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_lock_workspaceLock a workspace to prevent runs.
Args:
Returns: The locked workspace details.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"reason": {
"type": "string",
"description": "Reason for locking"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}terraform_unlock_workspaceUnlock a workspace to allow runs.
Args:
Returns: The unlocked workspace details.
{
"type": "object",
"required": [
"workspaceId"
],
"properties": {
"force": {
"type": "boolean",
"default": false,
"description": "Force unlock"
},
"workspaceId": {
"type": "string",
"description": "Workspace ID"
}
}
}