Skip to main content
Glama

Observe asynchronous completion

wait
Read-onlyIdempotent

Poll exactly one durable operation, cluster generation, backup, or restore until its terminal state; set a timeout to stop observation without cancelling the underlying work.

Instructions

Poll exactly one durable operation, cluster generation, backup or restore until its terminal state is observed. A timeout stops observation without cancelling the underlying work.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
backupNoBackup name returned by the target cluster's backup listing.
clusterNoCluster name returned by cluster listing; required for generations, backups and restores.
restoreNoRestore name returned by the target cluster's restore listing.
timeoutNoMaximum seconds to wait; expiry does not cancel the underlying work.
namespaceNoNamespace containing the target cluster; omit for the default namespace.
operationNoDurable operation ID returned by a mutation or operation listing.
generationNoDesired cluster generation to observe, taken from the cluster mutation response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / backup / description
      Added value: +"Backup name returned by the target cluster's backup listing."
    • addedInput schema / properties / cluster / description
      Added value: +"Cluster name returned by cluster listing; required for generations, backups and restores."
    • addedInput schema / properties / generation / description
      Added value: +"Desired cluster generation to observe, taken from the cluster mutation response."
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace containing the target cluster; omit for the default namespace."
    • addedInput schema / properties / operation / description
      Added value: +"Durable operation ID returned by a mutation or operation listing."
    • addedInput schema / properties / restore / description
      Added value: +"Restore name returned by the target cluster's restore listing."
    • addedInput schema / properties / timeout / description
      Added value: +"Maximum seconds to wait; expiry does not cancel the underlying work."
  2. First observedv0.4.3

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the description's main contribution is the timeout semantics: expiry stops observation without cancelling the underlying work. That is genuinely non-obvious and useful. It stops short of 5 because it does not describe the terminal states (success vs failure), polling cadence, or what is returned once the wait completes.

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

Conciseness5/5

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

Two sentences, front-loaded with the action and scope, followed by the single most important caveat. No filler, no restatement of the title or parameter names.

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 7-parameter tool with no required fields and no output schema, the definition covers what is observed, the single-target constraint, and the non-cancelling timeout. It is slightly short on the return/terminal-state story an agent needs to interpret the result, but the annotations carry the safety profile.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description adds real meaning by constraining the target selectors to 'exactly one', which the flat schema (all 7 properties optional, no oneOf) does not express. It reinforces but does not restate the schema's timeout semantics. Slight gap: it does not clarify blocking behavior if zero targets are supplied.

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?

States a specific verb ('Poll') and enumerates the resources it observes (durable operation, cluster generation, backup, restore), with a distinguishing constraint: 'exactly one'. This clearly separates it from the list/get siblings (cluster_operations_list, backup_get, cluster_status_get) without naming an alternative explicitly.

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?

Usage is implied rather than stated: an agent can infer it should call this after a mutation returns an operation ID or generation, but the description never says when to prefer it over polling with cluster_status_get or reading a list, nor does it state exclusions or preconditions (e.g. required companion parameters).

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