Skip to main content
Glama

ui_builder_set_links

Idempotent

Say what a design is for. Replaces the whole record: send every link you want kept, and omit one to clear it — so read ui_builder_get_links first if you are adding to what is already there. issue, reference, pr and thread are absolute http or https URLs, at most 2 KB each; previous is a design id on this host, not a URL. Anything else is refused with the reason. Sending an empty record clears it. Record the pr when you open one for a design you built here: it is what lets the next session, and the person who filed the issue, find one from the other.

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

Input Schema

NameRequiredDescriptionDefault
prNoThe pull request that implemented it.
issueNoThe tracker issue this design is for.
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.
threadNoA permalink to a discussion held elsewhere, such as a chat thread. It does not replace this server's comments for a server-homed design: keep that discussion on the design.
designIdYes
previousNoThe design id on this host that this one continues.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
referenceNoThe frame in the design tool it reproduces.
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
  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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, idempotent operation, so safety framing is partly covered; the description still adds the crucial trait that this is a full-record replace where an omitted field is cleared, that an empty record clears everything, and that malformed values are rejected with a reason. That overwrite/clearing behavior is the highest-risk detail an agent needs. Minor gap: it does not say the prior state is recoverable, which sits in slight tension with destructiveHint=false.

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 replace semantics, then the per-field format rules, then the closing rationale for recording `pr`. Every sentence carries information, though the final sentence is long and could be split. Nothing is padding.

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 9-parameter mutation tool with an output schema, the description covers the destructive overwrite behavior, field-level formats, failure mode, and cross-session purpose of the record. The only unaddressed area is the self-reported agentName/agentModel and token parameters, which the schema already explains.

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 89%, so the baseline is 3; the description earns more by adding constraints the schema lacks: issue/reference/pr/thread must be absolute http or https URLs capped at 2 KB, and `previous` is a design id on this host rather than a URL. The token, agentName and agentModel parameters are not discussed, but the schema documents them adequately.

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?

The description names the resource indirectly ("Say what a design is for") and then makes it concrete by enumerating the link fields it sets: issue, reference, pr, thread, previous. An agent can tell this writes a design's link record and that ui_builder_get_links reads the same record. The opening sentence is vaguer than the rest and does not itself say 'set the links record'.

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 an explicit prerequisite: read ui_builder_get_links first if you are adding to what already exists, because this tool replaces the whole record. It also gives a positive trigger for populating `pr` when you open a PR. What is missing is any routing versus the sibling write tools ui_builder_set_reference and ui_builder_set_implementation, which appear to overlap with the `reference` field here.

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.