Skip to main content
Glama

ui_builder_validate_watch_face

Read-only

Check what a watch-face design (a wff-watchface catalog design) costs on a watch, with Google's own validators: the WFF schema, the memory footprint and the Watch Face Push checks a watch runs before it installs a face. Returns passed and one entry per check with its findings; each finding carries a suggestion saying what to change. The memory-footprint check's memory is the face's decoded size against activeLimitBytes and ambientLimitBytes, and its contributors list the resources that cost the most (pixel size, decoded bytes, the size each is drawn at). Keep both modes under their limits: downscale an image to the size it is drawn at, and give ambient a dim or reduced variant rather than the full-colour one. A bitmap the face names that the design does not pin fails bundle-resources; pin it with ui_builder_put_asset. Validation is explicit: nothing else runs it, not an edit, a read or a publish. It runs the full packager, so call ui_builder_validate_watch_face when an edit pass is done and before ui_builder_publish_watch_face, not after every edit; an unchanged face answers from cache. The server runs one validation at a time and limits each account, so a busy or rate-limited call answers watch_face_validation_busy or watch_face_validation_rate_limited with retryAfterSeconds; wait that long. The per-edit watchFaceCost is the cheap estimate: every ui_builder_apply, ui_builder_replace_design_document and ui_builder_put_asset on a watch face already replies with it, an estimate of the same budgets (active and ambient as usedBytes, limitBytes, percentOfLimit), the topContributors with what to do about each, and the estimate's errors; read it after each edit and fix what it flags before building further. A failing face is a report with passed: false, not an error. A host whose operator left Google's validators off answers watch_face_validation_disabled.

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

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
revisionNoThe revision to validate. Defaults to 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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes far beyond by disclosing that it runs the full packager, caches unchanged faces, serializes to one validation at a time, and returns specific rate-limit codes with `retryAfterSeconds`. It also clarifies that a failing face is a `passed: false` report rather than an error, and that a disabled operator yields `watch_face_validation_disabled`.

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 purpose and use timing before the operational details, and every paragraph carries actionable content. It is dense and long, with remediation advice for memory budgets that borders on tutorial material, but nothing is genuinely wasted.

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?

An output schema already exists, so the return-value explanation (per-check entries, `suggestion`, `contributors`) is partly redundant, yet it adds interpretation the schema alone would not convey. Combined with coverage of failure modes, rate limits, and the asset-pinning prerequisite, the definition is complete for calling the tool correctly.

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 80%, so the schema already documents `token`, `revision`, `agentName`, and `agentModel`. The description adds no meaning for the required `designId` or for `revision` defaults, so it neither compensates nor detracts — baseline 3 applies.

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?

States a specific verb and resource ('Check what a watch-face design ... costs on a watch') and names the exact validator set (WFF schema, memory footprint, Watch Face Push). It also scopes the input to a `wff-watchface` catalog design, which separates it from the generic ui_builder_validate sibling.

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 explicit when-to-call guidance ('when an edit pass is done and before ui_builder_publish_watch_face, not after every edit') and names the cheaper alternative for in-flight checks (the per-edit `watchFaceCost`). It also states the negative case: nothing else triggers validation — not an edit, read, or publish.

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.