Skip to main content
Glama

ui_builder_find_design_for_pr

Read-only

From a pull request back to the design(s) it implements: every design you can read whose implementation record or links name pr, with the implementation status and revision. Then call ui_builder_implementation_status for what the design expects.

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": {
      "pr": "<pr>"
    },
    "name": "ui_builder_find_design_for_pr"
  }
}

Input Schema

NameRequiredDescriptionDefault
prYesThe pull request URL, exactly as recorded.
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.
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
prYes
schemaYes
designsYes
summaryYes

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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and the description is consistent with that. Beyond annotations it adds real behavioral context: results are filtered by read permission ('every design you can read'), matched against implementation records *or* links, and each result carries implementation status and revision. It does not discuss empty-result behavior or the token/agent attribution fields, which the schema covers anyway.

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?

Two sentences, no filler, with the lookup direction and scope constraint front-loaded before the follow-up call suggestion. Every clause carries information an agent needs.

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 read-only lookup with a full output schema and 100% parameter coverage, the description supplies the essential scope, matching rule, and next-step guidance. It leaves minor gaps—behavior when no design is found, and whether multiple designs are possible ('design(s)' hints yes)—which keeps it below a 5.

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 description coverage is 100%, so the schema already documents `pr`, `token`, `agentName`, and `agentModel` in detail. The description adds one useful nuance—that `pr` is matched against implementation records or links—and the phrase 'name `pr`' hints at exact-match semantics, but it does not restate the 'exactly as recorded' format requirement. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The description names a specific direction of lookup ('From a pull request back to the design(s) it implements') and a precise resource selection rule ('every design you can read whose implementation record or links name `pr`'), plus what comes back (implementation status and revision). This is clearly distinguishable from siblings like ui_builder_get_design or ui_builder_implementation_status without opening any 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?

The opening clause establishes the use case (PR-to-design reverse lookup) and the closing sentence routes the agent to ui_builder_implementation_status for expected state, which is a clear chaining instruction. It does not state explicit when-not conditions or contrast with other lookup siblings such as ui_builder_get_links, so it falls short of a full 5.

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.