# Compute (/docs/reference/mcp/compute)

Use the compute tools to configure the sandbox connection where a [managed agent](/build/agents/managed) runs. Each run attempt receives a fresh sandbox, which Dome removes at run completion. Begin with [compute](/build/compute) for the provider model, runtime behavior, lifecycle, and audit trail.

The tool table groups the public compute operations by permission and effect.

| Tool                     | Permission       | Effect                                                                                        |
| ------------------------ | ---------------- | --------------------------------------------------------------------------------------------- |
| `dome_compute_providers` | `compute.view`   | List providers available to the workspace, their required fields, and AWS Nitro setup values. |
| `dome_compute_list`      | `compute.view`   | List compute connections.                                                                     |
| `dome_compute_get`       | `compute.view`   | Read a connection by name or ID. Credentials are never returned.                              |
| `dome_compute_usage`     | `compute.view`   | Read attached-agent and in-flight-run usage.                                                  |
| `dome_compute_create`    | `compute.manage` | Create a sandbox connection.                                                                  |
| `dome_compute_update`    | `compute.manage` | Rename a connection or replace its settings or credentials.                                   |
| `dome_compute_check`     | `compute.manage` | Request an AWS Nitro setup check.                                                             |
| `dome_compute_delete`    | `compute.manage` | Delete a connection and optionally reassign attached agents.                                  |

`dome_compute_delete` also requires `managedagents.manage` when it moves managed agents. Compute is in [public preview](/manage/public-preview), and the provider catalog returns only providers enabled for the current workspace.

## List providers [#list-providers]

Use `dome_compute_providers` before writing a connection. Its result is authoritative for supported providers, required setting and credential keys, and provider availability.

For AWS Nitro, the result also contains values that belong only to the current workspace: the external ID, Dome IAM principal, trust policy, Kubernetes role, admission rule, and egress CIDRs. Use these values to prepare the cluster as described in [AWS Nitro](/build/compute/aws-nitro).

## Create a connection [#create-a-connection]

`dome_compute_create` accepts the following arguments. The connection kind must be `sandbox`.

| Argument      | Type   | Required           | Description                                |
| ------------- | ------ | ------------------ | ------------------------------------------ |
| `name`        | string | Yes                | Unique workspace connection name.          |
| `provider`    | string | Yes                | Provider ID from `dome_compute_providers`. |
| `kind`        | string | Yes                | `sandbox`.                                 |
| `settings`    | object | Provider-dependent | Complete provider settings object.         |
| `credentials` | object | Provider-dependent | Write-only credentials object.             |

For example, create an E2B connection with its required API key:

```json
{
  "name": "e2b-production",
  "provider": "e2b",
  "kind": "sandbox",
  "credentials": {
    "api_key": "{{E2B_API_KEY}}"
  }
}
```

Credentials are accepted but never returned by this or any read tool. Persist credential material in your own secret-management system.

## Read and paginate connections [#read-and-paginate-connections]

`dome_compute_list` accepts optional `page_size` and `page_token`. The default page size is 50 and the maximum is 100. Use `dome_compute_get` when you know the name or ID.

`dome_compute_usage` reports agent and run counts for a connection. It includes agent names only when the caller also has `managedagents.view`.

## Update a connection [#update-a-connection]

`dome_compute_update` accepts `name`, `new_name`, `settings`, and `credentials`. Omit an optional change to preserve the current value.

Provider and kind cannot change. Supplying `settings` replaces the full settings object. Supplying `credentials` replaces the complete credentials object and must contain all credential keys required by the provider. Partial credential updates are rejected.

For AWS Nitro, a provider-settings update requests a new asynchronous setup check. Changing only `new_name` does not request one.

## Check AWS Nitro [#check-aws-nitro]

`dome_compute_check` accepts one `name` argument and is idempotent. It applies only to AWS Nitro connections. The check runs asynchronously and reports its state on the connection.

The following stable steps let automation identify the prerequisite that failed.

| Step key                    | Validates                                                               |
| --------------------------- | ----------------------------------------------------------------------- |
| `role_trust`                | The configured AWS IAM role trusts Dome's workspace-specific principal. |
| `role_requires_external_id` | The IAM trust requires the workspace external ID.                       |
| `cluster_lookup`            | The supported EKS cluster can be found.                                 |
| `cluster_reachable`         | Dome can reach its Kubernetes API.                                      |
| `namespace`                 | The target namespace exists and is eligible.                            |
| `kubernetes_role`           | The namespace-scoped role is installed.                                 |
| `admission_rule`            | The required `dome-run-scope` rule is installed.                        |
| `sandbox_runtime`           | The `isolated-sandbox` RuntimeClass is available.                       |

Use the [AWS Nitro guide](/build/compute/aws-nitro) to correct a failed step.

## Delete and reassign [#delete-and-reassign]

`dome_compute_delete` takes `name` and an optional `reassign_to`. The reassignment target must be a usable sandbox connection in the same workspace. When it is omitted, attached agents move to the built-in Dome connection.

Deletion is refused for the built-in connection, for a connection with a running sandbox, or while completed sandbox cleanup remains outstanding. Queued runs follow an agent's reassigned connection.

## Assign compute to a managed agent [#assign-compute-to-a-managed-agent]

Pass `compute` to `dome_managed_agents_create` or `dome_managed_agents_update`. The value is a compute connection name or ID. Omit it during creation to use the built-in Dome connection.

```json
{
  "agent_id": "{{AGENT_ID}}",
  "compute": "e2b-production"
}
```

An update changes only future runs. A run already in progress continues on its original connection. See [Managed-agent MCP tools](/reference/mcp/managed-agents), the [compute CLI](/cli/build/compute), and the [compute API](/api/tag/compute) for the equivalent interfaces.

For runtime behavior, provider validation, sandbox lifecycle, gateway governance, audit relationships, and configuration portability, read the [compute concept](/concepts/agents/compute). Use the [import and export tools](/reference/mcp/import-export) to move non-built-in compute between scopes.