Skip to main content
Glama

ui_builder_await_decision

Read-only

Wait for somebody to approve or reject a design, rather than asking again whether they have. Returns as soon as a decision lands after afterSequence — by default only a person's (from: "human"), on any revision unless you name one — or a timedOut reply after waitSeconds. Every reply carries latest (the newest matching verdict, new or not) and approved, so waitSeconds: 0 is a cheap, idempotent poll for a routine that can only check back later; quote the reply's sequence as the next afterSequence. People record theirs over the design's decisions HTTP route.

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": {
      "designId": "<designId>"
    },
    "name": "ui_builder_await_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoWhose decisions count. Defaults to human.
tokenNoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
designIdYes
revisionNoOnly decisions on this revision.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.
waitSecondsNoUp to 120. Defaults to 25; 0 checks without blocking.
afterSequenceNoThe `sequence` you last saw. 0 for anything at all.

Output Schema

NameRequiredDescriptionDefault
latestNo
schemaYes
summaryYes
approvedYes
designIdYes
sequenceYes
timedOutYes
decisionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • addedInput schema / properties / agentModel
      Added value: +{
      +  "description": "Optional current model name shown to design viewers; self-reported. Omit when unknown.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
    • addedInput schema / properties / agentName
      Added value: +{
      +  "description": "Optional agent/client name shown to design viewers; self-reported.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses the timeout contract ('a timedOut reply after waitSeconds'), the non-destructive read semantics ('latest' is the newest matching verdict, new or not), idempotent polling, and the out-of-band token path for clients whose headers are fixed at connect time. That is exactly the kind of behavioral context annotations cannot carry.

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 core action is front-loaded and the em-dash clauses each carry distinct information (scope, timeout, return fields, poll pattern). It is dense and packs several ideas into one long sentence, which costs a little readability, but no sentence is filler.

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

Completeness5/5

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

For a wait/poll tool with 8 parameters, a timeout, sequence-based continuation, and an output schema, the description covers everything an agent needs to call it correctly and to chain calls via 'sequence'. Return shape is described to the extent needed, with the output schema carrying the rest.

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 already 88%, so most parameters are self-documenting, but the description adds cross-call semantics the schema lacks: quote the reply's 'sequence' as the next 'afterSequence', and 'from' defaults to a person's decision on any revision unless a revision is named. The token parameter's framing (prefer the header when you control it) also adds intent beyond its schema text.

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

Purpose5/5

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

The opening clause states a specific verb and resource ('wait for somebody to approve or reject a design') and immediately contrasts it with re-polling ('rather than asking again whether they have'), which separates it from a one-shot check tool. An agent understands this is a blocking wait on a verdict without opening the schema.

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?

It gives concrete usage context: use it to wait instead of asking repeatedly, and use waitSeconds: 0 as a 'cheap, idempotent poll for a routine that can only check back later'. It also explains where humans record decisions (the design's decisions HTTP route). It stops short of naming sibling tools or stating an explicit when-not condition, so it is clear guidance rather than exhaustive routing.

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.