Skip to main content
Glama

Wait for any change

wait_for_any
Read-onlyIdempotent

Wait up to 30 seconds for the first change among 1–10 targets: {"key": k, "etag": optional} or {"object": id, "version": optional int}. Returns changed targets (deletion counts), or status timeout. All targets use the configured credential. Burn keys are refused.

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": {
      "targets": "<targets>"
    },
    "name": "wait_for_any"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetsYes
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description correctly spends its words elsewhere: the hard 30-second bound, that deletions are reported as changes, that all targets share the configured credential, and that burn keys are rejected. The credential and refusal details are genuine behavioral additions not present in annotations. It stops short of describing failure modes beyond burn keys or whether the wait holds a connection open.

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 dense sentences, front-loaded with the verb, bound, and arity, then the target grammar, then the return shape and the credential/refusal caveats. Every clause carries information the schema or annotations do not.

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?

With no output schema, the description correctly states what comes back — changed targets with deletions counted, or a timeout status. Combined with the target-shape grammar and the 1–10 limit, an agent can construct a valid call without guessing. The remaining gap is what 'etag'/'version' matching means semantically and how partial results are ordered.

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 0%, so the description carries the burden, and it does well for the complex parameter by spelling out the two target shapes ({"key": k, "etag": optional} vs {"object": id, "version": optional int}) that the free-form additionalProperties schema leaves opaque. It adds nothing for 'timeout', and 'Wait up to 30 seconds' reads as a fixed ceiling rather than explaining that the caller can lower it within the schema's 0–30 range.

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 opens with a specific verb and resource plus scope: 'Wait up to 30 seconds for the first change among 1–10 targets', which tells an agent precisely what the call does and its bounding limits. It does not name or contrast with the obvious sibling wait_for_change, so the 'any vs single' distinction must be inferred from the word 'any'.

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: the 1–10 target cap and the 30-second ceiling convey the intended polling scenario, and 'Burn keys are refused' signals an exclusion. There is no explicit when-to-use guidance, no statement of what happens on timeout beyond the return status, and no pointer to wait_for_change for single-target waits.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources