Skip to main content
Glama

ui_builder_edit_design

Read-only

Open a UI Builder design in the editor, as an app in this conversation, for the person to edit by hand. Takes the designId (from ui_builder_list_designs). The editor reads and saves the design itself; to change a design yourself use ui_builder_apply.

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

Input Schema

NameRequiredDescriptionDefault
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.
designIdYesThe design to open.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real context beyond that by explaining the tool surfaces the design as an app in this conversation and that the editor itself performs reads and saves, so the agent knows the design is not mutated by this call. It stops short of explaining whether the call returns immediately or how the human's edits flow back.

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?

Three short sentences, front-loaded with the action and its scope, followed by the required-parameter hint and the alternative. No filler or restated title text.

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 tool whose safety profile is carried by annotations and whose return shape is documented by an output schema, the description covers purpose, prerequisite and alternative adequately. The remaining gap is lifecycle guidance: it does not say whether the call blocks on the human or hands off to ui_builder_editor_await.

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 parameter baseline is 3; the description goes further by stating where designId comes from (ui_builder_list_designs), which is provenance the schema's 'The design to open.' does not supply. token, agentName and agentModel are left entirely to the schema.

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 ('Open a UI Builder design in the editor') plus the key qualifier 'for the person to edit by hand', which separates it from programmatic edit tools. It also names the contrasting sibling ui_builder_apply, so the agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit selection rule: use this when a human will edit by hand, use ui_builder_apply when the agent itself changes the design. It also points to ui_builder_list_designs as the source of designId, covering the prerequisite step needed before calling.

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.