create_instance
Creates a new Compute Engine virtual machine in GCP, allowing specification of project, zone, machine type, and boot disk source image.
Instructions
Create a new Compute Engine instance.
Args:
project_id: The ID of the GCP project
zone: The zone to create the instance in (e.g., "us-central1-a")
instance_name: The name for the new instance
machine_type: The machine type (e.g., "e2-medium")
source_image: The source image for the boot disk (e.g., "projects/debian-cloud/global/images/family/debian-11")
boot_disk_size_gb: The size of the boot disk in GB (default: 10)
network: The network to connect to (default: "default")
subnet: The subnetwork to connect to (optional)
external_ip: Whether to allocate an external IP (default: True)
Returns:
Status message indicating whether the instance was created successfully
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"zone": "<zone>",
"instance_name": "<instance_name>",
"machine_type": "<machine_type>",
"source_image": "<source_image>"
},
"name": "create_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | ||
| subnet | No | ||
| network | No | default | |
| project_id | Yes | ||
| external_ip | No | ||
| machine_type | Yes | ||
| source_image | Yes | ||
| instance_name | Yes | ||
| boot_disk_size_gb | No |