Skip to main content
Glama

ui_builder_fork_design

Make a new design from one revision of another — yours to edit, owned by you, with its parent recorded: the fork's forkedFrom (design, revision, document digest) and the parent's forks both show in ui_builder_get_links. A fork is not a branch: it never inherits the parent's canonical home and nothing flows back on its own, so tell the person it exists and bring a chosen change back with ui_builder_apply on the parent. Needs write access on this server and read access to the parent.

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

Input Schema

NameRequiredDescriptionDefault
titleNoThe fork's title. Defaults to the parent's, marked with the revision.
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 fork.
revisionNoA retained revision. Omit for the current one.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.
newDesignIdNoThe fork's id. Defaults to one derived from the parent; an id already taken is refused.

Output Schema

NameRequiredDescriptionDefault
homeNo
titleYes
schemaYes
summaryYes
designIdYes
revisionYes
forkedFromYes
ancestryRecordedYes

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

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

Annotations already declare readOnlyHint=false, non-idempotent, non-destructive, so the safety profile is partly covered. The description goes well beyond them by disclosing ownership transfer, the recorded forkedFrom/forks metadata, the absence of inheritance and back-flow, and required access levels. It stops short of stating failure modes such as an already-taken id being refused, which is only in the schema.

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-loaded with the core action, then the fork-vs-branch distinction, then the access requirement — a sensible progression. Three sentences with parentheticals are dense but each earns its place; the forkedFrom parenthetical is slightly heavy for what it conveys.

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 create-style mutation with an output schema, the description covers everything an agent needs: what is produced, who owns it, what metadata is recorded, how it differs from branching, how to surface and propagate changes, and what access is required. Return values are correctly left to the output 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 100%, so the baseline is 3, but the description adds real meaning: that forking targets one specific revision, that the fork is immediately editable and owned by the caller, and that parent linkage is materialized as forkedFrom/forks metadata. It does not elaborate on title/newDesignId defaults beyond what the schema already documents.

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?

Opens with a specific verb and resource: 'Make a new design from one revision of another', then immediately names the artifact (a fork) and its ownership semantics. It explicitly separates the tool from the closest sibling by declaring 'A fork is not a branch', so an agent can distinguish it from ui_builder_branch_design 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 when-to-use frame (fork = independent copy, no canonical home, no flow-back) and names two alternatives with their roles: ui_builder_get_links for seeing forkedFrom/forks, ui_builder_apply for bringing a chosen change back to the parent. The permission precondition (write on this server, read on the parent) is stated up front.

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.