list_compute_instances
Retrieve a list of Compute Engine instances within a specified GCP project, with optional filtering by zone for efficient resource management.
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 |
|---|---|---|---|
| project_id | Yes | ||
| zone | No |