Skip to main content
Glama

Wait for a booking or request to change

wait_for_update
Read-onlyIdempotent

For the person's own booking or service request: waits up to about 25 seconds for something to change (the time being confirmed, payment coming due or being made, a notary being assigned, a live session moving on, the notarized document being ready) and says what changed. Call it once without seen to get the current state and a seen value; call it again with that value to wait. Use it when the person asks to be told as soon as something happens. Needs their private link.

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_for_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoInstead of link: the reference, e.g. SR-AB12CD
codeNoInstead of link: the token= or t= value from that link
linkNoThe person's private link: the manage link from a booking email (…/manage.html?ref=…&token=…) or the status link from a request email (…/requests/SR-…?t=…)
seenNoThe seen value from the last call (leave out on the first call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavior: a ~25 second timeout bound, the fact that it requires the person's private link (an auth/privacy constraint), and the seen-token continuation mechanism. The 25-second cap is exactly the kind of latency detail an agent needs to budget a call.

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?

The waiting behavior and its timeout are front-loaded, then the call protocol, then the trigger condition. It is dense but every clause carries information; the parenthetical list of watched changes is long but earns its place by telling the agent what counts as a change.

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 carries the return-value burden and does so adequately by saying it 'says what changed' and returns a 'seen' value. The main residual gap is what happens on timeout with no change and how an invalid or expired link is surfaced, neither of which is described.

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 the baseline is 3, but the description adds real meaning beyond the schema by explaining the semantics of 'seen' (omit on first call, pass the returned value to wait) and that the link is private and required. It does not elaborate on ref/code beyond what the schema already says, which is acceptable given full coverage.

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 (waits) plus the resource (the person's own booking or service request) and enumerates the concrete state transitions it watches for, so the tool's function is unambiguous. It does not name a sibling such as request_status to explicitly separate the long-poll variant from a plain status read, so it lands just below the top mark.

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

Usage Guidelines4/5

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

Gives an explicit trigger ('Use it when the person asks to be told as soon as something happens') and explains the two-call protocol: first call without 'seen' to get current state, second call with 'seen' to wait. It never states when not to use it or which sibling to prefer for a one-shot status check, leaving that inference to the agent.

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