Tool: get_zone_operation
Get details of a zone operation, including its id, name, status, creation timestamp, error, warning, HTTP error message and HTTP error status code. Requires project, zone, and operation name as input.
The following sample demonstrate how to use curl to invoke the get_zone_operation 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": "get_zone_operation", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for getting zone operation.
| JSON representation |
|---|
{ "project": string, "zone": string, "name": string } |
| Fields | |
|---|---|
project |
Required. Project ID for this request. |
zone |
Required. The zone of the operation. |
name |
Required. Identifier. The operation name. |
Output Schema
Represents an operation.
| JSON representation |
|---|
{ "id": string, "name": string, "status": enum ( |
| Fields | |
|---|---|
id |
The unique identifier for the operation. |
name |
Name of the operation. |
status |
The status of the operation. |
createTime |
Creation timestamp of the operation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
error |
Errors encountered during the operation execution. |
errors[] |
[Output Only] The array of errors encountered while processing this operation. |
code |
[Output Only] The error type identifier for this error. |
location |
[Output Only] Indicates the field in the request that caused the error. This property is optional. |
message |
[Output Only] An optional, human-readable error message. |
errorDetails[] |
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
errorInfo |
|
quotaInfo |
|
help |
|
localizedMessage |
|
warnings[] |
Warnings encountered during the operation execution. |
code |
[Output Only] A warning code, if applicable. For example, Compute Engine returns |
message |
[Output Only] A human-readable description of the warning code. |
data[] |
[Output Only] Metadata about this warning in "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
key |
[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be |
value |
[Output Only] A warning data value corresponding to the key. |
httpErrorMessage |
If the operation fails, this field contains the HTTP error message that corresponds to the HTTP error code generated for the audit log. |
httpErrorStatusCode |
If the operation fails, this field contains the HTTP error status code that corresponds to the HTTP error message generated for the audit log. |
| JSON representation |
|---|
{ "seconds": string, "nanos": integer } |
| Fields | |
|---|---|
seconds |
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
nanos |
Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |
| JSON representation |
|---|
{ "errors": [ { "code": string, "location": string, "message": string, "errorDetails": [ { // Union field |
| Fields | |
|---|---|
errors[] |
[Output Only] The array of errors encountered while processing this operation. |
code |
[Output Only] The error type identifier for this error. |
location |
[Output Only] Indicates the field in the request that caused the error. This property is optional. |
message |
[Output Only] An optional, human-readable error message. |
errorDetails[] |
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
errorInfo |
|
quotaInfo |
|
help |
|
localizedMessage |
|
| JSON representation |
|---|
{ "code": string, "location": string, "message": string, "errorDetails": [ { "errorInfo": { object ( |
| Fields | |
|---|---|
code |
[Output Only] The error type identifier for this error. |
location |
[Output Only] Indicates the field in the request that caused the error. This property is optional. |
message |
[Output Only] An optional, human-readable error message. |
errorDetails[] |
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
errorInfo |
|
quotaInfo |
|
help |
|
localizedMessage |
|
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
errorInfo |
|
quotaInfo |
|
help |
|
localizedMessage |
|
| JSON representation |
|---|
{ "reason": string, "domain": string, "metadatas": { string: string, ... } } |
| Fields | |
|---|---|
reason |
The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of |
domain |
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". |
metadatas |
Additional structured details about this error. Keys must match a regular expression of An object containing a list of |
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
|
value |
|
| JSON representation |
|---|
{
"metricName": string,
"limitName": string,
"dimensions": {
string: string,
...
},
"limit": number,
"futureLimit": number,
"rolloutStatus": enum ( |
| Fields | |
|---|---|
metricName |
The Compute Engine quota metric name. |
limitName |
The name of the quota limit. |
dimensions |
The map holding related quota dimensions. An object containing a list of |
limit |
Current effective quota limit. The limit's unit depends on the quota type or metric. |
futureLimit |
Future quota limit being rolled out. The limit's unit depends on the quota type or metric. |
rolloutStatus |
Rollout status of the future quota limit. |
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
|
value |
|
| JSON representation |
|---|
{
"links": [
{
object ( |
| Fields | |
|---|---|
links[] |
URL(s) pointing to additional information on handling the current error. |
| JSON representation |
|---|
{ "description": string, "url": string } |
| Fields | |
|---|---|
description |
Describes what the link offers. |
url |
The URL of the link. |
| JSON representation |
|---|
{ "locale": string, "message": string } |
| Fields | |
|---|---|
locale |
The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" |
message |
The localized error message in the above locale. |
| JSON representation |
|---|
{
"code": enum ( |
| Fields | |
|---|---|
code |
[Output Only] A warning code, if applicable. For example, Compute Engine returns |
message |
[Output Only] A human-readable description of the warning code. |
data[] |
[Output Only] Metadata about this warning in "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
key |
[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be |
value |
[Output Only] A warning data value corresponding to the key. |
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be |
value |
[Output Only] A warning data value corresponding to the key. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌