list_compute_instances
List Compute Engine instances in a Google Cloud project, with an optional zone filter to narrow results.
Instructions
List Compute Engine instances in a GCP project.
Args:
project_id: The ID of the GCP project to list instances for
zone: Optional zone to filter instances (e.g., "us-central1-a")
Returns:
List of Compute Engine instances in the specified GCP project
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>"
},
"name": "list_compute_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | ||
| project_id | Yes |