e2b

v1.0.5
com.mcparmory/e2b Checked 2 days ago Published 6 months ago

Create and manage secure sandboxes for running AI agent code

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_teams List Teams

Retrieve a list of all teams in the system. Use this operation to discover available teams for management or assignment purposes.

get_team_metrics Get Team Metrics

Retrieve performance and activity metrics for a specific team over an optional time interval. If no time range is specified, returns metrics for the current period.

ParameterTypeDescription
teamID *stringThe unique identifier of the team for which to retrieve metrics.
endstringUnix timestamp in seconds marking the end of the metrics interval. If omitted, defaults to the current time.
startstringUnix timestamp in seconds marking the start of the metrics interval. If omitted, defaults to the beginning of the current period.

get_team_metrics_maximum Get Team Metrics Maximum

Retrieve the maximum value for a specified metric within a given time interval for a team. Useful for understanding peak performance or resource utilization.

ParameterTypeDescription
metric *stringThe specific metric to retrieve the maximum value for during the interval.
teamID *stringThe unique identifier of the team for which to retrieve metrics.
endstringUnix timestamp in seconds marking the end of the interval. If omitted, metrics up to the current time are included.
startstringUnix timestamp in seconds marking the start of the interval. If omitted, metrics from the earliest available data are included.

create_sandbox Create Sandbox

Create a new sandbox instance from a specified template. The sandbox can be configured with network policies, environment variables, and storage mounts.

ParameterTypeDescription
enabled *booleanEnable automatic resumption of the sandbox when it enters a paused state.
templateID *stringThe unique identifier of the template to use for creating the sandbox.
allowOutarrayList of CIDR blocks or IP addresses permitted for outbound traffic. Allowed addresses take precedence over denied addresses when both are specified.
allowPublicTrafficbooleanControl whether sandbox URLs are publicly accessible or require authentication to access.
denyOutarrayList of CIDR blocks or IP addresses blocked from outbound traffic.
envVarsEnvironment variables to inject into the sandbox runtime environment.
mcpobjectModel Context Protocol (MCP) configuration settings for the sandbox.
metadataCustom metadata to attach to the sandbox for tracking and organization purposes.
volumeMountsarrayVolume mounts to attach to the sandbox, enabling access to external storage or data sources.

list_sandboxes List Sandboxes

Retrieve a list of all sandboxes with optional filtering by metadata and state. Results are paginated with a configurable limit.

ParameterTypeDescription
limitstringMaximum number of sandboxes to return per page. Must be between 1 and 100.
metadatastringFilter sandboxes by metadata key-value pairs. Use URL encoding for both keys and values (e.g., user=abc&app=prod).
statearrayFilter sandboxes by one or more states. Provide as an array of state values.

list_sandbox_metrics List Sandbox Metrics

Retrieve performance and usage metrics for specified sandboxes. Supports querying multiple sandboxes in a single request.

ParameterTypeDescription
sandbox_ids *arrayOne or more sandbox IDs to retrieve metrics for. Provide as a comma-separated list of sandbox identifiers.

list_sandbox_logs List Sandbox Logs

Retrieve logs from a specific sandbox with optional filtering by time range and result limit. Logs can be returned in forward or backward chronological order.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox for which to retrieve logs.
cursorstringStarting timestamp in milliseconds from which logs should be returned. Use this to paginate through results or retrieve logs after a specific point in time.
directionstringOrder in which logs should be returned relative to the cursor timestamp.
limitstringMaximum number of log entries to return in a single response.

get_sandbox Get Sandbox

Retrieve a specific sandbox by its unique identifier. Use this operation to fetch detailed information about a sandbox environment.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to retrieve.

terminate_sandbox Terminate Sandbox

Terminate and remove a sandbox environment by its ID. This operation permanently deletes the sandbox and all associated resources.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to terminate.

get_sandbox_metrics Get Sandbox Metrics

Retrieve performance and resource metrics for a specific sandbox over an optional time interval. Metrics are aggregated between the specified start and end timestamps.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox for which to retrieve metrics.
endstringUnix timestamp in seconds marking the end of the metrics collection interval. If omitted, metrics are retrieved up to the current time.
startstringUnix timestamp in seconds marking the beginning of the metrics collection interval. If omitted, metrics are retrieved from the earliest available data.

pause_sandbox Pause Sandbox

Pause an active sandbox to temporarily suspend its execution and resource consumption. The sandbox can be resumed later without losing its state.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to pause.

connect_sandbox Connect Sandbox

Establish a connection to a sandbox and extend its time-to-live. If the sandbox is paused, it will be automatically resumed.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to connect to.
timeout *stringThe number of seconds from the current time until the sandbox should automatically expire. Must be a non-negative value.

set_sandbox_timeout Set Sandbox Timeout

Set the expiration time for a sandbox by specifying a timeout duration in seconds from the current request time. Calling this operation multiple times resets the sandbox's time-to-live (TTL), with each call using the current timestamp as the new starting point.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to configure.
timeout *stringThe number of seconds from the current time until the sandbox should automatically expire. Must be a non-negative integer.

refresh_sandbox Refresh Sandbox

Extend the time to live of an active sandbox by refreshing it. Optionally specify a custom duration to keep the sandbox alive.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox to refresh.
durationintegerThe duration in seconds to extend the sandbox's time to live. If not specified, a default duration will be applied.

create_sandbox_snapshot Create Sandbox Snapshot

Create a persistent snapshot of the sandbox's current state that can be used to create new sandboxes and persists beyond the original sandbox's lifetime.

ParameterTypeDescription
sandboxID *stringThe unique identifier of the sandbox from which to create the snapshot.
namestringOptional name for the snapshot. If a snapshot with this name already exists, a new build will be assigned to the existing snapshot instead of creating a new one.

list_snapshots List Snapshots

Retrieve all snapshots for your team, with optional filtering by source sandbox and pagination support.

ParameterTypeDescription
limitstringNumber of snapshots to return per page. Useful for paginating through large result sets.
sandboxIDstringFilter results to snapshots created from a specific sandbox ID.

create_template Create Template

Create a new template with optional resource specifications and organizational tags. Templates define sandbox configurations for reproducible environments.

ParameterTypeDescription
cpuCountstringNumber of CPU cores to allocate to the sandbox. Must be at least 1 core.
memoryMBstringMemory to allocate to the sandbox in mebibytes (MiB). Must be at least 128 MiB.
namestringName of the template. Optionally include a version tag using colon separator (e.g., 'my-template:v1'). If a tag is provided in the name, it will be added to the tags array automatically.
tagsarrayTags to assign to the template for organization and categorization. Tags help identify and group related templates.

list_templates List Templates

Retrieve all templates available in the system, optionally filtered by a specific team. Use this to discover and display template options for users.

ParameterTypeDescription
teamIDstringFilter templates to a specific team. If omitted, returns templates accessible to all teams or the default scope.

list_template_builds List Template Builds

Retrieve all builds associated with a specific template. Use pagination to control the number of results returned per page.

ParameterTypeDescription
templateID *stringThe unique identifier of the template for which to retrieve builds.
limitstringThe maximum number of builds to return in a single page of results. Defaults to 100 if not specified.

delete_template Delete Template

Permanently delete a template by its ID. This action cannot be undone.

ParameterTypeDescription
templateID *stringThe unique identifier of the template to delete.

start_template_build Start Template Build

Initiate a build process for a specific template. This operation executes the build with optional customization including base template selection, build steps, and post-build commands.

ParameterTypeDescription
buildID *stringThe unique identifier for this specific build execution.
templateID *stringThe unique identifier of the template to build.
forcebooleanWhether to bypass cache and force the entire build to execute from scratch.
fromImageRegistryOptional image registry configuration for sourcing or pushing build artifacts.
fromTemplatestringOptional template ID to use as a base for this template build, allowing inheritance of template configuration.
readyCmdstringCommand to execute after the build to verify the template is ready and operational, used for health checks or readiness validation.
startCmdstringCommand to execute within the template after the build completes, typically used to start services or initialize the environment.
stepsarrayOrdered list of build steps to execute. Each step represents a discrete build operation performed sequentially.

update_template Update Template

Update an existing template's properties, such as its visibility settings. Modify template accessibility to be public or restricted to team members only.

ParameterTypeDescription
templateID *stringThe unique identifier of the template to update.
publicbooleanControls template visibility. When true, the template is accessible to anyone; when false, it is restricted to team members only.

get_template_build_status Get Template Build Status

Retrieve the current status and build logs for a specific template build. Returns build information with optional log filtering by offset, limit, and severity level.

ParameterTypeDescription
buildID *stringThe unique identifier of the build whose status should be retrieved.
templateID *stringThe unique identifier of the template containing the build.
levelstringFilter logs by severity level. Returns only logs matching the specified level or higher priority.
limitstringThe maximum number of build logs to return in the response. Useful for controlling response size and pagination.
logsOffsetstringThe starting index for build logs to return. Use this to paginate through large log sets.

list_template_build_logs List Template Build Logs

Retrieve logs from a template build execution. Supports filtering by log level and source, with pagination and directional traversal of log entries.

ParameterTypeDescription
buildID *stringThe unique identifier of the build whose logs should be retrieved.
templateID *stringThe unique identifier of the template containing the build.
cursorstringStarting point for log retrieval specified as a Unix timestamp in milliseconds. Logs returned will be from this timestamp onward (or backward, depending on direction).
directionstringOrder in which log entries should be returned relative to the cursor timestamp.
levelstringFilter logs by severity level. Only entries matching the specified level will be returned.
limitstringMaximum number of log entries to return in a single response.
sourcestringFilter logs by their storage source. Temporary logs are transient, while persistent logs are retained long-term.

assign_template_tags Assign Template Tags

Assign one or more tags to a specific template build. Tags help organize and categorize templates for easier discovery and management.

ParameterTypeDescription
tags *arrayArray of tags to assign to the template. Tags are applied in the order provided and can be used for categorization and filtering.
target *stringThe target template specified in 'name:tag' format, where name is the template identifier and tag is the specific build version.

remove_template_tags Remove Template Tags

Remove one or more tags from a specific template. This operation allows bulk deletion of tags associated with a template.

ParameterTypeDescription
name *stringThe name of the template from which tags will be removed.
tags *arrayAn array of tag names to remove from the template. Order is not significant.

list_template_tags List Template Tags

Retrieve all tags associated with a specific template. Tags are used to categorize and organize templates for easier discovery and management.

ParameterTypeDescription
templateID *stringThe unique identifier of the template for which to retrieve tags.

check_template_alias Check Template Alias

Verify whether a template with the specified alias exists in the system.

ParameterTypeDescription
alias *stringThe unique identifier or name of the template to check for existence.

list_nodes List Nodes

Retrieve a list of all available nodes in the system. Use this operation to discover and monitor all nodes.

get_node Get Node

Retrieve detailed information about a specific node, optionally filtered by cluster membership.

ParameterTypeDescription
nodeID *stringThe unique identifier of the node to retrieve.
clusterIDstringThe cluster to which the node belongs. Use this to scope the node lookup to a specific cluster.

update_node_status Update Node Status

Update the operational status of a node within a cluster. This operation allows you to transition a node between different states such as ready, draining, connecting, or unhealthy.

ParameterTypeDescription
nodeID *stringThe unique identifier of the node to update.
status *stringThe desired operational status for the node. Determines how the node handles workloads and cluster participation.
clusterIDstringThe unique identifier of the cluster containing the node. Required to scope the node operation within the correct cluster context.

terminate_team_sandboxes Terminate Team Sandboxes

Terminates all active sandboxes for a specified team. This operation will immediately stop and remove all sandbox instances associated with the team.

ParameterTypeDescription
teamID *stringThe unique identifier of the team whose sandboxes should be terminated.

create_access_token Create Access Token

Create a new access token for API authentication. The token can be used to authorize requests to protected endpoints.

ParameterTypeDescription
name *stringA descriptive name for the access token to help identify its purpose or associated application.

revoke_access_token Revoke Access Token

Revoke and delete an access token, immediately invalidating it for future API requests.

ParameterTypeDescription
accessTokenID *stringThe unique identifier of the access token to revoke and delete.

list_api_keys List API Keys

Retrieve all API keys associated with your team. Use this to view and manage authentication credentials for API access.

create_api_key Create API Key

Create a new API key for your team to authenticate API requests. The key can be used to access team resources and data.

ParameterTypeDescription
name *stringA descriptive name for the API key to help identify its purpose or associated application.

update_api_key Update API Key

Update the name of a team API key. Allows you to rename an existing API key for better organization and identification.

ParameterTypeDescription
apiKeyID *stringThe unique identifier of the API key to update.
name *stringThe new name for the API key. Use a descriptive name to identify the key's purpose or associated application.

delete_api_key Delete API Key

Permanently delete a team API key. This action cannot be undone and will invalidate any requests using this key.

ParameterTypeDescription
apiKeyID *stringThe unique identifier of the API key to delete.

list_volumes List Volumes

Retrieve all volumes available to the team. This operation returns a complete list of storage volumes with their metadata and configuration details.

create_volume Create Volume

Create a new team volume for storing and organizing data. The volume name must be unique within the team and follow alphanumeric naming conventions.

ParameterTypeDescription
name *stringThe name identifier for the volume. Must contain only letters, numbers, hyphens, and underscores.

get_volume Get Volume

Retrieve detailed information about a specific team volume by its unique identifier.

ParameterTypeDescription
volumeID *stringThe unique identifier of the volume to retrieve.

delete_volume Delete Volume

Permanently delete a team volume by its ID. This action cannot be undone.

ParameterTypeDescription
volumeID *stringThe unique identifier of the volume to delete.