Skip to main content
Glama

ui_builder_record_decision

Record a review verdict — approve or reject — on one revision of a design, with an optional note. Kept beside the design, like comments: it never moves the revision. Recorded as an agent's decision, so a person waiting with ui_builder_await_decision's default from: "human" is not answered by it. Pass your own decisionId to make a retry idempotent.

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>",
      "revision": "<revision>",
      "verdict": "<verdict>"
    },
    "name": "ui_builder_record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhy, in a sentence or two.
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.
verdictYes
designIdYes
revisionYesThe revision the verdict is about.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.
decisionIdNoYour id for this decision; makes a retry idempotent.
displayNameNo

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/5.0
Behavior3/5

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

Adds real context beyond annotations: the record is side-band metadata that never moves the revision (consistent with destructiveHint=false), and the token parameter explains the header-vs-body auth fallback and why an MCP client needs it. It does not contradict idempotentHint=false — it explains that idempotency is opt-in via decisionId rather than inherent. Missing is any note on what happens to a duplicate decisionId (error vs. silent no-op) or whether verdicts can be revised later.

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?

Four short sentences, front-loaded with the action and the verdict enum, then the semantics (non-moving record), then the sibling exclusion, then the retry tip. No filler and no repetition of schema content.

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?

An output schema exists, so return values need not be described, and the description covers the non-obvious parts: persistence semantics, agent-vs-human routing, and token acquisition via poll_access. Only the displayName parameter and duplicate-decisionId behavior remain unexplained for a 9-parameter tool.

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 coverage is 67%, and the schema already documents token, note, revision, agentName/agentModel and decisionId. The description reinforces only decisionId's idempotent-retry meaning; it adds nothing about the required designId/revision pairing, verdict enum implications, or the undocumented displayName field. Baseline 3 is appropriate given the schema does most of the work.

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?

States a specific verb and resource ('Record a review verdict — approve or reject — on one revision of a design') and immediately scopes it against the sibling: 'it never moves the revision' and await_decision's default from:"human" is not answered by it. An agent can tell this apart from ui_builder_await_decision or ui_builder_apply without opening a 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?

Gives an explicit non-overlap rule versus ui_builder_await_decision (recording here will not satisfy a human waiting on the default), which is real when-to-use guidance, plus a retry convention for decisionId. It stops short of stating positively when an agent should prefer recording a verdict over other review siblings, so it is strong but not exhaustive.

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.