Skip to main content
Glama
MobileBlueprint MCP

MobileBlueprint MCP

generate_ui_snippet

Read-onlyIdempotent

Generates static, illustrative Flutter or React Native screen starter snippets by pattern, state, theme, width, and locale for UI design without execution or real interactions.

Instructions

Generate a static illustrative Flutter or React Native screen starter. No execution, network, persistence or real interactions.

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": {
      "pattern": "<pattern>",
      "framework": "<framework>"
    },
    "name": "generate_ui_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoData state. State-only patterns use their own state.default
themeNolight
widthNoLogical viewport width
localeNoEnglish or Arabic sample copyen
patternYesScreen pattern to design
frameworkYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds one genuinely useful behavioral constraint — the output is illustrative only, with no real interactions or persistence — but says nothing about the shape or format of what is returned. With annotations carrying most of the weight, this is adequate but thin.

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 short sentences, zero filler, with the core purpose front-loaded and the constraints immediately following. Nothing here could be cut without losing information.

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 six-parameter code generator with no output schema, the definition never says what the caller receives (snippet string, file path, preview markup) or how the pattern/state/theme combination affects the result. The framework constraint and no-execution caveat are covered, but the return shape remains a real gap.

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 coverage is 67% and account for five enum-typed parameters; the description only reinforces the framework choice. It adds no meaning about pattern, state, theme, width or locale beyond what the schema already encodes, so the 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 ('Generate a static illustrative ... screen starter') and names the two target frameworks, matching the framework enum. It does not distinguish itself from create_screen_spec, so the agent cannot rule out overlap from the text alone.

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?

'static illustrative ... No execution, network, persistence or real interactions' implies this is for mockups/visual starters rather than production screens, which is an implicit when-to-use cue. There is no explicit statement about when to prefer create_screen_spec or list_mobile_patterns instead.

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