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