MCP Tools Reference: compute.googleapis.com

Tool:set_instance_machine_type

Sets the machine type for a stopped Google Compute Engine instance to the specified machine type. Requires project, zone, instance name and machine type as input. Proceed only if there is no error in response and the status of the operation isDONE without any errors. To get details of the operation, use theget_zone_operation tool.

The following sample demonstrate how to usecurl to invoke theset_instance_machine_type 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": "set_instance_machine_type",    "arguments": {      // provide these details according to the tool'sMCPspecification}},"jsonrpc":"2.0","id":1}'

Input Schema

Request message for setting machine type.

McpSetMachineTypeRequest

JSON representation
{"project":string,"zone":string,"name":string,"machineType":string}
Fields
project

string

Required. Project ID for this request.

zone

string

Required. The zone of the instance.

name

string

Required. Identifier. The instance name.

machineType

string

Required. The machine type of the instance.

Output Schema

Response message for setting machine type.

McpSetMachineTypeResponse

JSON representation
{"operationName":string}
Fields
operationName

string

The operation name of the instance machine type change.

Tool Annotations

Destructive Hint: ✅ | Idempotent Hint: ❌ | Read Only Hint: ❌ | Open World Hint: ❌

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-29 UTC.