Scalr integration
Scalr is a Terraform and OpenTofu automation platform. Manage environments and workspaces (create, configure, lock and unlock, tag, schedule runs, share remote state, attach variable sets), queue runs and act on them (apply, cancel, discard, force), and read their plan, apply, cost estimate and policy check stages, state versions and workspace outputs. Manage Terraform and shell variables and variable sets, tags, run triggers, run schedule rules, drift detection schedules, provider configurations, policy groups, teams, and webhook integrations; read and resync registry modules; and read accounts and users. Not exposed, among other administrative routes: access tokens, service accounts, SSO and SAML, roles and access policies, VCS providers, agent pools, hooks, GPG and SSH keys, third-party integrations other than webhooks, usage and billing reports, raw logs and file downloads (plan, apply and policy logs, state and configuration archives), user administration, and uploads of configuration or state versions. Authentication is a personal access token or a service account token, sent as a Bearer token; give the account subdomain of your Scalr URL (the part before .scalr.io). The API is rate limited to 500 requests per minute.
Say what should happen.
The workflow builds itself.
What you can do with Scalr
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Tag, 17 operations
add_environment_tagsAdd environment tagsPOSTThis endpoint assigns the list of tags to the environment.add_provider_configuration_tagsAdd provider configuration tagsPOSTThis endpoint assigns the list of tags to the provider configuration.add_workspace_tagsAdd workspace tagsPOSTThis endpoint assigns the list of tags to the workspace.create_tagCreate tagPOSTCreate a new tag in the account.delete_tagDelete tagDELETEThe endpoint deletes tag by ID.get_tagGet tagGETShow details of a specific tag.list_environment_tagsList environment tagsGETThis endpoint returns a list of tags, assigned to an environment.list_provider_configuration_tagsList provider configuration tagsGETThis endpoint returns a list of tags, assigned to an provider configuration.list_tagsList tagsGETThis endpoint returns a list of tags.list_workspace_tagsList workspace tagsGETThis endpoint returns a list of tags, assigned to a workspace.remove_environment_tagsRemove environment tagsDELETEThis endpoint removes given tags from the environment.remove_provider_configuration_tagsRemove provider configuration tagsDELETEThis endpoint removes given tags from the provider configuration.remove_workspace_tagsRemove workspace tagsDELETEThis endpoint removes given tags from the workspace.replace_environment_tagsReplace environment tagsPATCHThis endpoint completely replaces environment's tags with provided list.replace_provider_configuration_tagsReplace provider configuration tagsPATCHThis endpoint completely replaces provider configuration's tags with provided list.replace_workspace_tagsReplace workspace tagsPATCHThis endpoint completely replaces workspace's tags with provided list.update_tagUpdate tagPATCHThis endpoint updates tag by ID.
Var set, 9 operations
add_workspace_variable_setsAdd workspace variable setsPOSTThis endpoint adds provided variable sets to the workspace.create_var_setCreate var setPOSTCreates a new variable set.delete_var_setDelete var setDELETEDeletes a variable set and all its contained variables, environment links, and workspace applications.get_var_setGet var setGETReturns details of a specific variable set.list_var_setsList var setsGETReturns a list of variable sets.list_workspace_variable_setsList workspace variable setsGETThis endpoint returns a list of variable sets linked to the workspace.remove_workspace_variable_setsRemove workspace variable setsDELETEThis endpoint removes provided variable sets from the workspace. Variable sets that are not applied to the workspace are ignored.replace_workspace_variable_setsReplace workspace variable setsPATCHThis endpoint replaces variable sets on the workspace with the provided values.update_var_setUpdate var setPATCHUpdates attributes of an existing variable set.
Run, 8 operations
apply_runApply runPOSTApply a run that is paused waiting for confirmation after a plan. This includes runs in the `planned` and `policy_checked` states.cancel_runCancel runPOSTInterrupt a run that is currently planning or applying. Performing a cancel is roughly equivalent to hitting `ctrl+c` during a Terraform plan or apply on the CLI.create_runCreate runPOSTA run performs terraform plan and apply using a configuration version and the workspace's current variables.discard_runDiscard runPOSTSkip any remaining work on runs that are paused waiting for confirmation or priority. This includes runs in the `pending`, `planned`, `policy_checked` and `policy_override` states.force_runForce runPOSTCancel all previous runs in pending or waiting for confirmation statuses.get_runGet runGETShow details of a specific run.list_runsList runsGETThis endpoint lists runs for a specific workspace.list_runs_queueList runs queueGETThis endpoint lists Runs Queue on allowed scopes.
Environment, 7 operations
create_environmentCreate environmentPOSTCreate a new environment in the account.delete_environmentDelete environmentDELETEDeletes an environment of the account.get_environmentGet environmentGETShow details of a specific environment.list_environmentsList environmentsGETThis endpoint lists account environments.lock_environmentLock environmentPOSTThis endpoint locks an environment.unlock_environmentUnlock environmentPOSTThis endpoint unlocks an environment.update_environmentUpdate environmentPATCHUpdates the attributes or relationships of an environment.
Workspace, 7 operations
create_workspaceCreate workspacePOSTWorkspaces represent a unit of infrastructure managed by terraform. To create a workspace you must pass `name` attribute and `environment` relationship.delete_workspaceDelete workspaceDELETEDeletes a workspace.get_workspaceGet workspaceGETShow details of a specific workspace.list_workspacesList workspacesGETLists workspaces, the units of infrastructure Terraform or OpenTofu runs in, with filters and paging.lock_workspaceLock workspacePOSTThis endpoint locks a workspace.resync_workspaceResync workspacePOSTThis endpoint triggers a Configuration Version resync for a Workspace associated with a VCS repository.unlock_workspaceUnlock workspacePOSTThis endpoint unlocks a workspace.
Policy group, 6 operations
create_policy_groupCreate policy groupPOSTCreate a new policy group in the account.delete_policy_groupDelete policy groupDELETEThis endpoint deletes a policy group by ID. Only an unused policy group (that is not linked to any environment) can be removed.get_policy_groupGet policy groupGETShow details of a specific policy group.list_policy_groupsList policy groupsGETThis endpoint returns a list of policy groups.resync_policy_groupResync policy groupPOSTThis endpoint resyncs a policy group.update_policy_groupUpdate policy groupPATCHThis endpoint updates a policy group by ID.
Provider configuration, 5 operations
create_provider_configurationCreate provider configurationPOSTCreate a new Provider configuration.delete_provider_configurationDelete provider configurationDELETEThe endpoint deletes a Provider configuration by ID.get_provider_configurationGet provider configurationGETShow details of a specific Provider configuration.list_provider_configurationsList provider configurationsGETThis endpoint returns a list of Provider configurations by various filters.update_provider_configurationUpdate provider configurationPATCHThis endpoint updates attributes of an existing Provider configuration.
Run schedule rule, 5 operations
create_run_schedule_ruleCreate run schedule rulePOSTCreate a new run schedule rule. In order to create a run schedule rule, the user must have `workspaces:set-schedule` permission.delete_run_schedule_ruleDelete run schedule ruleDELETEDeletes a run schedule rule from a workspace.get_run_schedule_ruleGet run schedule ruleGETShow details of a specific run schedule rule.list_run_schedule_rulesList run schedule rulesGETThis endpoint returns a list of run schedule rules.update_run_schedule_ruleUpdate run schedule rulePATCHUpdates a specific run schedule rule based on the provided rule ID, schedule mode, and schedule. It validates the cron expression and raises an error if it's invalid.
Team, 5 operations
create_teamCreate teamPOSTThe endpoint creates an [IAM](https://docs.scalr.io/docs/identity-and-access-management) team. If an external IdP used, the team name must exist in that IdP.delete_teamDelete teamDELETEThe endpoint deletes [IAM](https://docs.scalr.io/docs/identity-and-access-management) team by ID.get_teamGet teamGETThis endpoint returns an [IAM](https://docs.scalr.io/docs/identity-and-access-management) team by ID.list_teamsList teamsGETThe endpoint returns a list of [IAM](https://docs.scalr.io/docs/identity-and-access-management) teams.update_teamUpdate teamPATCHUpdate a team's attributes or users. The endpoint can be used to add or remove users from a team.
Var, 5 operations
create_variableCreate variablePOSTCreate a new terraform or ENV variable.delete_variableDelete variableDELETEDeletes a Terraform or shell (environment) variable.get_variableGet variableGETShow details of a specific variable. For `sensitive: true` variables, their actual `value` is not exposed, and `null` returned instead.list_variablesList variablesGETThis endpoint returns a list of variables. Cloud Credentials are exposed as Terraform ENV Variables if filters are specified.update_variableUpdate variablePATCHUpdates a variable: its key, value, description, category (terraform or shell), and its hcl, sensitive and final flags.
Var set variable, 5 operations
create_var_set_variableCreate var set variablePOSTCreates a new variable set variable.delete_var_set_variableDelete var set variableDELETEDeletes a variable set variable.get_var_set_variableGet var set variableGETGet a variable set variablelist_var_set_variablesList var set variablesGETReturns a list of variable set variables.update_var_set_variableUpdate var set variablePATCHUpdates attributes of an existing variable set variable.
Drift detection schedule, 4 operations
create_drift_detection_scheduleCreate drift detection schedulePOSTCreate a new drift detection schedule.delete_drift_detection_scheduleDelete drift detection scheduleDELETEDeletes a drift detection schedule.get_drift_detection_scheduleGet drift detection scheduleGETReturns one drift detection schedule of an environment: its schedule, run mode, preferred UTC time window and workspace filters.update_drift_detection_scheduleUpdate drift detection schedulePATCHUpdates a drift detection schedule: its schedule, run mode, time window or workspace filters.
Remote state consumer, 4 operations
add_remote_state_consumersAdd remote state consumersPOSTThis endpoint adds provided workspaces to a list of allowed remote state consumers for a given workspace.list_remote_state_consumersList remote state consumersGETThis endpoint returns a list of other workspaces that that were explicitly added as state consumers for given workspace.remove_remote_state_consumersRemove remote state consumersDELETEThis endpoint removes provided workspaces from a list of allowed remote state consumers for a given workspace.replace_remote_state_consumersReplace remote state consumersPATCHThis endpoint replaces a list of allowed remote state consumers for a given workspace.
Webhook, 4 operations
create_webhook_integrationCreate webhook integrationPOSTCreate a new webhook integrationdelete_webhook_integrationDelete webhook integrationDELETEThe endpoint deletes webhook by ID.get_webhook_integrationGet webhook integrationGETShow details of a specific webhook.list_webhook_integrationsList webhook integrationsGETThis endpoint returns a list of webhooks.
Module, 3 operations
get_moduleGet moduleGETShow details of a specific terraform module.list_modulesList modulesGETThis endpoint lists modules by various filters. To list modules accessible from a certain environment, `filter[environment]` has to be specified.resync_moduleResync modulePOSTTrigger resync of the Module associated with the VCS repository.
Module version, 3 operations
get_module_versionGet module versionGETShow details of a specific terraform module version.list_module_versionsList module versionsGETThis endpoint lists versions of a particular module. The query parameter `filter[module]` with Module ID is required.resync_module_versionResync module versionPOSTTrigger resync of the Module Version associated with the `relationships.vcs-revision`. Only modules associated with a VCS can be resynchronized.
Policy check, 3 operations
get_policy_checkGet policy checkGETShow details of a specific Terraform policy check stage.list_policy_checksList policy checksGETList policy checks for a specific run.override_policy_checkOverride policy checkPOSTThis endpoint overrides a soft-mandatory policy.
Policy group environment, 3 operations
add_policy_group_environmentsAdd policy group environmentsPOSTCreate policy group environments relationshipsremove_policy_group_environmentRemove policy group environmentDELETEDelete policy group's environment relationshipupdate_policy_group_environmentsUpdate policy group environmentsPATCHUpdate policy group environments relationships
Run trigger, 3 operations
create_run_triggerCreate run triggerPOSTCreate a new run trigger.delete_run_triggerDelete run triggerDELETEDeletes a run trigger, so runs no longer queue automatically in the downstream workspace after a successful apply in the upstream one.get_run_triggerGet run triggerGETShow details of a specific trigger.
State version, 3 operations
get_current_state_versionGet current state versionGETFetch the current state version for the given workspace. This state version will be the input state when running terraform operations.get_state_versionGet state versionGETShow details of a specific state version.list_state_versionsList state versionsGETList Workspace's State Versions
Account, 2 operations
get_accountGet accountGETShow details of a specific account.list_accountsList accountsGETLists the Scalr accounts the token can access, with their attributes.
Configuration version, 2 operations
get_configuration_versionGet configuration versionGETShow details of a specific Configuration Version.list_configuration_versionsList configuration versionsGETList Configuration Versions
User, 2 operations
get_userGet userGETThis endpoint returns an [IAM](https://docs.scalr.io/docs/identity-and-access-management) user by ID.list_usersList usersGETThis endpoint returns a list of [IAM](https://docs.scalr.io/docs/identity-and-access-management) users.
Apply, 1 operation
get_applyGet applyGETShow details of a specific Terraform Apply stage.
Cost estimate, 1 operation
get_cost_estimateGet cost estimateGETShow details of a specific Cost Estimate phase.
Plan, 1 operation
get_planGet planGETShow details of a specific Terraform Plan stage.
Workspace output, 1 operation
list_workspace_outputsList workspace outputsGETThis endpoint returns a list of outputs from current state version run output. Sensitive output values are `null` unless `sensitive=true` is requested.
Workspace schedule, 1 operation
set_workspace_scheduleSet workspace schedulePOSTSet scheduled runs for the workspace
Showing the first 120 of 122 endpoints. The rest are in the product, searchable from the workflow builder and from chat.
Use Scalr from Claude Code, Cursor or Codex
Connect Scalr in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Scalr operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Scalr
- Create your workspace
Sign up free. Nothing to install.
- Connect Scalr once
Add your Scalr connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Scalr integration FAQ
What can you do with the Scalr integration?
LiveContext exposes 122 operations on Scalr, covering tag, var set, run and environment.
