Skip to main content
Glama
Stitch MCP Server

Stitch MCP Server

Sync Screen to HTML

stitch_sync_screen
Idempotent

Synchronize a specific Google Stitch screen or all screens from a project into local HTML files, optionally choosing the output directory.

Instructions

Synchronize a screen from Google Stitch to local HTML files. If no screenId is provided, syncs all screens from the project.

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": {
      "projectId": "<projectId>"
    },
    "name": "stitch_sync_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNoOutput directory./stitch-output
screenIdNoSpecific screen ID (syncs all if not provided
projectIdYesStitch project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A3.5/5.0
Behavior3/5

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

The description's claim of writing local HTML files is consistent with readOnlyHint=false and destructiveHint=false. It adds the all-screens fallback behavior, but does not disclose whether existing files are overwritten, whether the output directory is created, or how conflicts are handled — relevant context for an idempotent write tool.

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, zero waste, with the core action front-loaded and the conditional behavior immediately after. Nothing needs to be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With three parameters and full schema coverage, the core call is clear. But there is no output schema and the description never says what a successful sync produces (written file paths, a count, a summary), and 'synchronize' remains ambiguous about overwrite semantics for a non-readOnly tool.

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 projectId, screenId, and output. The description restates the screenId fallback that the schema also states, adding no new meaning such as path format or whether output is relative to cwd. Baseline 3 applies.

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?

States a specific verb and resource: synchronize a screen from Google Stitch into local HTML files. An agent can tell this writes HTML locally rather than, say, generating a screen or exporting a framework. It stops short of explicitly differentiating itself from siblings like stitch_export_framework or stitch_cache_sync.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives one useful conditional: omit screenId to sync every screen in the project. That is usage guidance for the parameter, but there is no statement of when to prefer this tool over the other sync/export siblings, nor prerequisites such as project existence or authentication.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.