Skip to main content
Glama
mattferry

Stitch MCP Server

by mattferry

generate_from_template

Generate a customized UI screen from a predefined template (dashboard, login, pricing, etc.) by specifying style, device, and custom instructions for faster design.

Instructions

Generates a screen from a predefined UI template with user customizations. Provides 10 common templates (dashboard, settings, login, profile, pricing, landing-hero, data-table, kanban-board, chat-interface, file-manager) as a base prompt, layered with custom instructions for faster UI generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNoOverall visual style.modern
templateYesThe base template to use.
projectIdYesThe project ID.
deviceTypeNoTarget device type.DESKTOP
customizationNoCustom instructions to layer on top of the template (e.g., 'use dark theme with purple accents, add a sidebar with user avatar').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry behavioral disclosure. It explains that templates are a base prompt layered with custom instructions, which is useful, but does not disclose side effects, permissions, or limitations of the generated screen.

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?

Two concise sentences with no redundancy. The purpose is stated first, and the template list is useful. Well-structured for quick consumption.

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 tool with 5 parameters and 3 enums, the description is reasonably complete but lacks usage guidance and behavioral context. It explains the core concept well, but an agent would need to infer when to use it versus alternatives.

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 baseline is 3. The description adds context by listing the 10 templates and explaining the customization param, but does not significantly extend beyond the schema's own property descriptions.

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 clearly states the tool 'Generates a screen from a predefined UI template with user customizations,' giving a specific verb and resource. It distinguishes from text-based generation by explicitly mentioning templates, but does not name alternatives like generate_screen_from_text.

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?

No guidance on when to use this tool versus siblings such as generate_screen_from_text or batch_generate_screens. It implies usage for faster generation but does not state conditions or exclusions.

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