Lambda Labs MCP by usefulapi

v1.40.4
io.usefulapi/lambda-labs Checked 17 hours ago Published 15 days ago

Read GPU instances, types, images, filesystems and firewall rules; launch and terminate instances.

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

lambda_list_instances List instances

List your running GPU cloud instances (id, name, ip, status, region, instance_type, ssh_key_names, filesystems, jupyter_url). Lambda Cloud REST: GET /api/v1/instances.

lambda_get_instance Get instance

Get full details of a single instance by id (status, ip, region, instance_type, ssh/filesystem attachments, jupyter url, available actions). Lambda Cloud REST: GET /api/v1/instances/{id}.

ParameterTypeDescription
id *stringThe instance id.

lambda_list_instance_types List instance types

List all GPU instance types with their specs (vcpus, memory, storage, gpus), hourly price (price_cents_per_hour), and which regions currently have capacity available. Use this to pick region_name + instance_type_name before launching. Lambda Cloud REST: GET /api/v1/instance-types.

lambda_list_images List images

List available machine images (id, name, family, version, region availability) that can be selected when launching an instance. Lambda Cloud REST: GET /api/v1/images.

lambda_list_filesystems List filesystems

List your persistent filesystems (id, name, region, status, created_at) that can be attached to instances at launch. Lambda Cloud REST: GET /api/v1/file-systems.

lambda_list_firewall_rules List firewall rules

List the account's inbound firewall rules (protocol, port range, source CIDR, description). Lambda Cloud REST: GET /api/v1/firewall-rules.

lambda_list_firewall_rulesets List firewall rulesets

List firewall rulesets (id, name, region, rules) that can be applied to instances. Lambda Cloud REST: GET /api/v1/firewall-rulesets.

lambda_get_firewall_ruleset Get firewall ruleset

Get a single firewall ruleset by id. Lambda Cloud REST: GET /api/v1/firewall-rulesets/{id}.

ParameterTypeDescription
id *stringThe firewall ruleset id.

lambda_list_audit_events List audit events

List account audit-log events, optionally filtered by time window and resource type, with page_token pagination. Lambda Cloud REST: GET /api/v1/audit-events.

ParameterTypeDescription
endstringOnly events at/before this ISO 8601 timestamp.
page_tokenstringPagination token — pass the value returned by a previous page to fetch the next.
resource_typestringRestrict to events on this resource type (e.g. 'instance', 'filesystem').
startstringOnly events at/after this ISO 8601 timestamp.

lambda_launch_instance Launch instance

Launch one or more GPU cloud instances. COSTS MONEY: billing starts as soon as the instance boots (hourly rate per instance_type). Pick region_name + instance_type_name from lambda_list_instance_types (only regions with capacity available), and pass exactly one existing SSH key name in ssh_key_names (create keys in the Lambda dashboard). Lambda Cloud REST: POST /api/v1/instance-operations/launch.

ParameterTypeDescription
instance_type_name *stringInstance type to launch (e.g. 'gpu_1x_a100') — from lambda_list_instance_types.
region_name *stringRegion to launch in (e.g. 'us-east-1') — must have capacity for the type.
ssh_key_names *arrayNames of SSH keys to install (exactly one supported). The key must already exist in your account.
file_system_namesarrayNames of existing persistent filesystems to attach.
hostnamestringCustom hostname (1-63 chars, lowercase alphanumeric and hyphens, pattern ^[a-z0-9][0-9a-z-]{0,62}$).
image_familystringImage family to boot (latest in family). Mutually exclusive with image_id.
image_idstringSpecific image id to boot (from lambda_list_images). Mutually exclusive with image_family.
namestringA friendly name for the instance (max 64 chars).
quantityintegerHow many instances to launch (default 1). EACH one is billed separately.
tagsarrayKey/value tags to attach to the instance.
user_datastringcloud-init user-data script to run on first boot (max 1MB).

lambda_restart_instances Restart instances

Restart one or more running instances by id (a reboot — the instances are NOT destroyed and billing continues). Lambda Cloud REST: POST /api/v1/instance-operations/restart.

ParameterTypeDescription
instance_ids *arrayIds of the instances to restart.

lambda_terminate_instances Terminate instances

Terminate (permanently destroy) one or more instances by id. This STOPS billing for them but DESTROYS the instances and any non-persistent data — persistent filesystems survive. Irreversible. Lambda Cloud REST: POST /api/v1/instance-operations/terminate.

ParameterTypeDescription
instance_ids *arrayIds of the instances to terminate (destroy).

lambda_update_instance Update instance

Update a live instance's name and/or tags. Only provided fields are changed. Lambda Cloud REST: POST /api/v1/instances/{id}.

ParameterTypeDescription
id *stringThe instance id to update.
namestringNew friendly name (max 64 chars).
tagsarrayReplace the instance's key/value tags.

lambda_create_filesystem Create filesystem

Create a new persistent filesystem in a region (can then be attached to instances at launch). Lambda Cloud REST: POST /api/v1/filesystems.

ParameterTypeDescription
name *stringFilesystem name (1-60 chars, must start with a letter, then letters/digits/hyphens — pattern ^[a-zA-Z]+[0-9a-zA-Z-]*$).
region *stringRegion to create the filesystem in (e.g. 'us-east-1').

lambda_delete_filesystem Delete filesystem

Delete a persistent filesystem by id. Irreversible — DESTROYS all data on it. The filesystem must not be attached to any instance. Lambda Cloud REST: DELETE /api/v1/filesystems/{id}.

ParameterTypeDescription
id *stringThe filesystem id to delete.