create_instance
Create a new Google Compute Engine virtual machine (VM) instance. Requires project, zone, and instance name as input. If machine_type is not provided, it defaults to e2-medium. If image_project and image_family are not provided, it defaults to debian-12 image from debian-cloud project. guest_accelerator and maintenance_policy can be optionally provided. Proceed only if there is no error in response and the status of the operation is DONE without any errors. To get details of the operation, use the get_zone_operation tool.
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": "<project>",
"zone": "<zone>",
"name": "<name>"
},
"name": "create_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. Identifier. The instance name. | |
| zone | Yes | Required. The zone of the instance. | |
| project | Yes | Required. Project ID for this request. | |
| imageFamily | No | Optional. The image family of the instance. | |
| machineType | No | Optional. The machine type of the instance. | |
| imageProject | No | Optional. The image project of the instance. | |
| guestAccelerators | No | Optional. The list of attached accelerators. Each entry specifies the accelerator type (short name or full/partial URL, e.g., 'nvidia-tesla-p4') and the count. | |
| maintenancePolicy | No | Optional. The maintenance policy option for the instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operationName | No | The operation name of the instance creation. |