Skip to main content
Glama

ui_builder_create_design

Create a design, either from a whole document you supply or by copying an existing design named by fromDesignId. Copying is usually right: a document's catalogPin must match a catalog revision this server serves, and a copy carries one that does. A document whose home is an existing design on this server is refused with a compose-preview-decision/v1 choice to put to the person — or, when your client supports form elicitation on this connection, the person is asked in a form and the call acts on their answer.

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

Input Schema

NameRequiredDescriptionDefault
titleNo
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 id for the new design.
documentNoA whole DesignDocumentV1.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.
visibilityNoDefaults to the server's configured visibility, which is private unless the operator chose public. Public allows anyone with the link to view; editing still requires explicit access.
fromDesignIdNoCopy this design's document instead.
includeCatalogNoEmbed the pinned catalog in the returned snapshot. Defaults to false.

Output Schema

NameRequiredDescriptionDefault

No arguments

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. Changed2 schema fields changed
    • removedInput schema / properties / visibility / default
      Removed value: -"private"
    • changedInput schema / properties / visibility / description
      Previous value: -"Private by default. Public allows anyone with the link to view; editing still requires explicit access."New value: +"Defaults to the server's configured visibility, which is private unless the operator chose public. Public allows anyone with the link to view; editing still requires explicit access."
  5. Changed1 schema field changed
    • addedInput schema / properties / visibility
      Added value: +{
      +  "default": "private",
      +  "description": "Private by default. Public allows anyone with the link to view; editing still requires explicit access.",
      +  "enum": [
      +    "private",
      +    "public"
      +  ],
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing a specific refusal path: a `document` whose `home` targets an existing design is rejected with a `compose-preview-decision/v1` choice, and on elicitation-capable clients the person is asked in a form. This tells the agent what error to expect and how the call may block on human input — critical context for a non-idempotent mutation.

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?

Front-loads the action and the two modes, then the recommendation, then the failure behavior — a sensible information order. The final sentence is long and nests a conditional clause, but no sentence is filler.

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 an output schema present, return values need not be described, and the description covers creation modes, the catalog constraint, and the interactive refusal flow. Minor gaps remain around visibility defaults and access implications, which are left entirely to the schema.

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 89%, so the baseline is 3, but the description still adds real meaning: it explains the `catalogPin` constraint that governs whether a supplied `document` will be accepted, and clarifies what `fromDesignId` copies. Token and visibility semantics are left to the schema.

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 and resource ("Create a design") and enumerates the two creation paths: supplying a whole `document` or copying via `fromDesignId`. It does not explicitly distinguish itself from adjacent create-like siblings such as `ui_builder_fork_design` or `ui_builder_branch_design`, leaving some ambiguity about which creation route to pick.

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?

"Copying is usually right" gives a clear default recommendation with a reason (the `catalogPin` must match a served revision, and a copy carries a valid one). It stops short of naming alternatives or spelling out when a document-of-your-own is the better choice.

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.