Tool: list_machine_types
Lists the available Google Compute Engine machine types. Requires project and zone as input. Returns machine types, including id, creationTimestamp, name, description, guest cpus, memory, image space, maximum persistent disks, maximum persisten disks size, deprecated, zone, is shared cpu, accelerators, and architecture.
The following sample demonstrate how to use curl to invoke the list_machine_types MCP tool.
| Curl Request |
|---|
curl --location 'https://compute.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_machine_types", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for listing machine types.
McpListMachineTypesRequest
| JSON representation |
|---|
{ "project": string, "zone": string } |
| Fields | |
|---|---|
project |
Required. Project ID for this request. |
zone |
Required. The zone of the machine types. |
Output Schema
Response message for listing machine types.
McpListMachineTypesResponse
| JSON representation |
|---|
{
"machineTypes": [
{
object ( |
| Fields | |
|---|---|
machineTypes[] |
The list of machine types. |
MachineType
| JSON representation |
|---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "guestCpus": integer, "memoryMb": integer, "imageSpaceGb": integer, "maximumPersistentDisks": integer, "maximumPersistentDisksSizeGb": string, "deprecated": { object ( |
| Fields | |
|---|---|
kind |
Output only. [Output Only] The type of the resource. Always |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creationTimestamp |
[Output Only] Creation timestamp in RFC3339 text format. |
name |
[Output Only] Name of the resource. |
description |
[Output Only] An optional textual description of the resource. |
guestCpus |
[Output Only] The number of virtual CPUs that are available to the instance. |
memoryMb |
[Output Only] The amount of physical memory available to the instance, defined in MB. |
imageSpaceGb |
[Deprecated] This property is deprecated and will never be populated with any relevant values. |
maximumPersistentDisks |
[Output Only] Maximum persistent disks allowed. |
maximumPersistentDisksSizeGb |
[Output Only] Maximum total persistent disks size (GB) allowed. |
deprecated |
[Output Only] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable. |
zone |
[Output Only] The name of the zone where the machine type resides, such as us-central1-a. |
selfLink |
[Output Only] Server-defined URL for the resource. |
isSharedCpu |
[Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information. |
accelerators[] |
[Output Only] A list of accelerator configurations assigned to this machine type. |
guestAcceleratorType |
The accelerator type resource name, not a full URL, e.g. |
guestAcceleratorCount |
Number of accelerator cards exposed to the guest. |
architecture |
[Output Only] The architecture of the machine type. |
DeprecationStatus
| JSON representation |
|---|
{
"state": enum ( |
| Fields | |
|---|---|
state |
The deprecation state of this resource. This can be |
replacement |
The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
deprecated |
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to |
obsolete |
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to |
deleted |
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to |
Accelerator
| JSON representation |
|---|
{ "guestAcceleratorType": string, "guestAcceleratorCount": integer } |
| Fields | |
|---|---|
guestAcceleratorType |
The accelerator type resource name, not a full URL, e.g. |
guestAcceleratorCount |
Number of accelerator cards exposed to the guest. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌