Skip to main content
Glama

ui_builder_guidelines_prompt

Read-only

Read the exact prompt a design-guidelines model is given for a design, before anybody spends a key on it: the rules for the design's platform (Android design guidance from developer.android.com, each with its source), the fixed system prompt, the user message with the design tree and Compose source, the JSON schema the verdicts must follow, a sentence on where each part comes from, and the pictures as image blocks — a Wear screen on its device (and unrolled when it scrolls), a Wear widget in the Samsung and Pixel Watch containers, a phone or tablet design at phone and tablet size. It spends no key. Judge it with your own model, then record the verdicts with ui_builder_record_guidelines so the editor and other agents see them. rendered: false leaves out the pictures and source (and the visual rules), and needs only read access; otherwise it needs the ui-builder-export capability.

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

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.
designIdYes
renderedNoAttach native renders and the Compose source. Defaults to true.
revisionNoA past 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.

Output Schema

NameRequiredDescriptionDefault
rulesYes
schemaYes
designIdNo
picturesNo
platformYes
revisionYes
userTextYes
provenanceNo
systemPromptYes
responseSchemaYes
sourceAttachedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • addedOutput schema / properties / pictures / items / properties / coversWholeContent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / rules / properties / asked / items / properties / aliases
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / rules / properties / asked / items / properties / profiles
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / rules / properties / asked / items / required
      Previous value: -[
      -  "id",
      -  "platforms",
      -  "kind",
      -  "severity",
      -  "guidance",
      -  "check",
      -  "source"
      -]New value: +[
      +  "id",
      +  "kind",
      +  "severity",
      +  "guidance",
      +  "check",
      +  "source"
      +]
  5. Changed1 schema field changed
    • addedOutput schema / properties / rules / properties / asked / items / properties / surfaces
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  6. Added

TDQS

A4.5/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 substantial context beyond that — it spends no key, `rendered: false` omits pictures, source, and visual rules, and otherwise the ui-builder-export capability is required. It also discloses which renders are attached per platform (Wear on-device and unrolled, widget containers, phone/tablet sizes). It stops short of saying anything about response size or latency for image-heavy responses, which is the main residual gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core intent is front-loaded in the first clause, but the middle is a single sprawling em-dash enumeration of prompt components that is heavy to parse. The information is largely load-bearing, yet the run-on construction and density of platform-specific image details cost readability for an agent skimming candidates.

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 read-only inspection tool with an output schema present, the description covers what the agent needs: what the payload contains, what changes when rendering is disabled, what access is required, and what to do with the result afterward. Nothing needed to call it correctly is missing.

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 description coverage is 83%, so token, revision, agentName, and agentModel are already documented in the schema. The description still adds real meaning for `rendered`, explaining precisely what is dropped when false and the resulting access requirement, which the schema only summarizes as 'Attach native renders and the Compose source.'

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 verb and resource: reading the exact prompt handed to a design-guidelines model, and enumerates what that prompt contains (platform rules with sources, system prompt, user message with design tree and Compose source, JSON schema, image blocks). It also states the negative scope ('It spends no key'), which distinguishes it from any tool that actually invokes a model.

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?

Explicit when-to-use framing: read this 'before anybody spends a key on it', judge it with your own model, then record results via ui_builder_record_guidelines — naming the follow-on sibling directly. It also gives the condition that changes behavior (`rendered: false` vs. needing the ui-builder-export capability), so the agent knows which mode to pick and what it costs.

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.