Skip to main content
Glama
Stitch MCP Server

Stitch MCP Server

Apply Design System to Screens

stitch_apply_design_system

Apply a design system to one or more screens, updating their visual style to match its theme and tokens.

Instructions

Apply a design system to one or more screens, updating their visual style to match the design system's theme and tokens.

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>",
      "designSystemId": "<designSystemId>",
      "screenIds": "<screenIds>"
    },
    "name": "stitch_apply_design_system"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesStitch project ID
screenIdsYesScreen instances to apply the design system to
designSystemIdYesDesign system asset ID to apply

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false, idempotentHint=false). The description adds useful context that the operation mutates existing screens' visual style against a theme and tokens, but it does not say whether existing overrides are overwritten, whether the change is reversible, or what happens with partial failures across multiple screens.

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?

A single well-formed sentence with the action front-loaded and no filler. It is efficient, though it leaves little room for the behavioral context an agent would benefit from.

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?

For a mutation tool with annotations covering safety and no output schema, the description is adequate but thin: it omits the result of the operation (does it return updated screen resources?) and any note about overwriting existing styling across the listed screens.

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%, with all three parameters and the nested screen fields documented in the schema. The description only echoes the 'one or more screens' cardinality already implied by minItems, adding no format or constraint detail beyond the schema. 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?

The description states a specific verb and resource ('Apply a design system to one or more screens') and clarifies the effect ('updating their visual style to match the design system's theme and tokens'). It is clearly distinct from the sibling tools that create or update a design system, though it never names them explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus creating or updating a design system, no prerequisites (e.g. that the design system must already exist and the screens must be generated), and no exclusions. The agent must infer the workflow context entirely.

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