Skip to main content
Glama

Read a durable operation

operation_get
Read-onlyIdempotent

Read a durable operation using its exact operation ID, resolving the globally unique ID and authorizing access against the persisted namespace or cluster.

Instructions

Read a durable operation

Resolve the globally unique operation ID first, then authorize operations read against its persisted namespace/cluster object.

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": {
      "operation": "<operation>"
    },
    "name": "operation_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationYesExact durable operation id from operations_list, cluster_operations_list or an accepted mutation's operationId; nonempty string of at most 128 characters, not a cluster or backup name.

Output Schema

NameRequiredDescriptionDefault
idYes
stepNoCurrent durable execution checkpoint or convergence phase.
typeYes
actorNoAccount, issuer-scoped OIDC account, account plus API token name/ID, or system actor that queued the operation. Historical operations may have no recorded actor.
errorNo
phaseYes
targetYes
clusterYes
messageNoCurrent stage or error; every terminal operation has a non-empty summary.
progressNo
createdAtYes
namespaceYes
startedAtNo
completedAtNo
operationIdNo
cancelRequestedNoCooperative cancellation has been accepted but may still be cleaning up.
targetGenerationNoCluster generation observed by desired-state operations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / operation / description
      Added value: +"Exact durable operation id from operations_list, cluster_operations_list or an accepted mutation's operationId; nonempty string of at most 128 characters, not a cluster or backup name."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Error_depth15": {
      +      "additionalProperties": false,
      +      "description": "Every error response. `code` is a stable category (`invalid_request`, `unauthorized`,\n`forbidden`, `not_found`, `conflict`, `method_not_allowed`, `unsupported_media_type`,\n`payload_too_large`, `password_change_required`, `rate_limited`, `internal_error`);\n`message` is a human-readable explanation that names the rejected field or resource.\n",
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "details": {
      +          "additionalProperties": true,
      +          "description": "Structured, secret-free context; omitted when there is nothing to add. Validation\nerrors carry `field` (JSON path such as `spec.components.engine.replicas`, or a\nquery/path parameter name) and `reason` (`required`, `unknown_field`, `invalid`,\n`out_of_range`, `unsupported`, `conflict`, `reused`). Missing or conflicting\nresources carry `resource`, `name` and `reason` (`not_found`, `already_exists`,\n`invalid_state`, `protected`) and, for `invalid_state`, the current `state`.\nOther keys may be added; clients must ignore unknown keys.\n",
      +          "type": "object"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "NamespaceName_depth15": {
      +      "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +      "maxLength": 32,
      +      "minLength": 2,
      +      "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +      "type": "string"
      +    },
      +    "OperationTarget_depth15": {
      +      "properties": {
      +        "kind": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "name"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "actor": {
      +      "description": "Account, issuer-scoped OIDC account, account plus API token name/ID, or system actor that queued the operation. Historical operations may have no recorded actor.",
      +      "type": "string"
      +    },
      +    "cancelRequested": {
      +      "description": "Cooperative cancellation has been accepted but may still be cleaning up.",
      +      "type": "boolean"
      +    },
      +    "cluster": {
      +      "maxLength": 12,
      +      "minLength": 2,
      +      "pattern": "^[a-z][a-z0-9]{1,11}$",
      +      "type": "string"
      +    },
      +    "completedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "createdAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "error": {
      +      "$ref": "#/$defs/Error_depth15"
      +    },
      +    "id": {
      +      "maxLength": 128,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "Current stage or error; every terminal operation has a non-empty summary.",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/NamespaceName_depth15"
      +        }
      +      ],
      +      "readOnly": true
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "enum": [
      +        "Pending",
      +        "Running",
      +        "Succeeded",
      +        "Failed",
      +        "Cancelled"
      +      ],
      +      "type": "string"
      +    },
      +    "progress": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "startedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "step": {
      +      "description": "Current durable execution checkpoint or convergence phase.",
      +      "type": "string"
      +    },
      +    "target": {
      +      "$ref": "#/$defs/OperationTarget_depth15"
      +    },
      +    "targetGeneration": {
      +      "description": "Cluster generation observed by desired-state operations.",
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "type": {
      +      "enum": [
      +        "backup",
      +        "delete-backup",
      +        "restore",
      +        "raise-fcv",
      +        "restart",
      +        "rebalance",
      +        "replace-member",
      +        "rotate-system-user",
      +        "rotate-tls",
      +        "rotate-jwt-secret",
      +        "recover-quorum",
      +        "create",
      +        "update",
      +        "tls",
      +        "upgrade",
      +        "upgrade-agents",
      +        "delete",
      +        "resume"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "namespace",
      +    "id",
      +    "cluster",
      +    "target",
      +    "type",
      +    "phase",
      +    "createdAt"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world scope, so the safety profile is covered structurally. The description adds an authorization nuance, stating the read is authorized against the operation's persisted namespace/cluster object, which is genuinely beyond the annotations but phrased so abstractly that an agent gains little actionable detail. Failure modes such as unauthorized, expired, or still-running operations are not disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the purpose front-loaded and no filler. The second sentence is dense and jargon-heavy ('authorize operations read against its persisted namespace/cluster object'), which costs some clarity but not much length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with full annotations and an output schema, the description covers purpose, ID sourcing, and read scoping adequately. Remaining gaps concern permission requirements and operation lifecycle states, which are minor given the structured fields already supplied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the parameter already documents the 128-character limit, non-empty constraint, and the source tools that yield the ID. The description adds only the notion that the ID is globally unique and must be resolved first, which largely restates the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: read a durable operation. The word 'durable' plus the emphasis on a globally unique operation ID separates it from the many *_get siblings on clusters, backups, and namespaces. It does not explicitly name an alternative tool, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage through the precondition 'resolve the globally unique operation ID first,' which tells the agent this is a follow-up read after obtaining an ID, and the schema names operations_list and mutation operationId as sources. There is no explicit when-not guidance, no named alternative for the wrong-resource case, and no statement about polling or repeated reads.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools