Skip to main content
Glama
circuitry-dev

Circuitry MCP Server

Official

html.create

Generate HTML components with scoped CSS for Circuitry workflows, supporting canvas prototypes and web nodes while following mobile UI standards and preventing layout bugs.

Instructions

Create HTML content in Circuitry.

DESIGNER MODE: Use layout.createSection instead! For Designer screens, ALWAYS use layout.createSection to create HTML with proper layout structure. It creates both a layout container AND HTML component together, ensuring correct stacking and preview export.

Only use html.create directly in Designer for adding content to existing layout grid cells.

WORKFLOW context - TWO options (ASK USER if unclear):

  • target: "drawing" - Quick prototypes on canvas drawing layer (default)

  • target: "node" - Web Node with inputs from other nodes

CRITICAL CSS STRUCTURE - Prevents zoom scaling bugs: NEVER put visual styles (background, border-radius, padding, box-shadow) on :host - causes border-radius to scale incorrectly when zooming. Use :host { display: block; } only, and put all visual styles on an inner container element.

MOBILE UI SIZING:

  • Headers: 64px height

  • Bottom nav: 84px height

  • iPhone 15: 393x852

After editing components: Use layout.analyze with autoFix to detect and fix layout issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name (e.g., "Login Form", "Nav Menu")
htmlNoFull HTML structure (use this OR htmlFile, not both)
cssNoScoped CSS for the component (use this OR cssFile, not both)
htmlFileNoAbsolute path to HTML file (alternative to inline html param - MCP server reads file)
cssFileNoAbsolute path to CSS file (alternative to inline css param - MCP server reads file)
jsNoOptional JavaScript for interactivity
targetNoWhere to create: "drawing" (canvas layer, default) or "node" (Web Node). In workflow, ASK USER if not specified.
screenIdNoTarget screen ID or name (Designer mode only). If not specified, uses selected screen.
containerNoSemantic container type (Designer mode): "header" (top), "footer" (bottom), "content" (main area), "nav" (navigation). Auto-positions based on type and groups for preview structure.
positionNoPosition { x, y } relative to screen/canvas. If container is set, auto-calculated based on semantic meaning.
dimensionsNoSize { width, height } in pixels (default: 320x200)
isolatedNoCSS isolation: true = Shadow DOM (default), false = inherits global CSS
hrefNoLink URL or screen target. Use "#screen:ScreenName" for navigation between screens in preview (e.g., "#screen:Home", "#screen:Dashboard"). External URLs also supported.
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and excels by adding rich context beyond basic functionality. It details critical behavioral traits such as CSS structure rules to prevent bugs, mobile UI sizing guidelines, and post-creation steps like using 'layout.analyze' for fixes. This provides comprehensive insights into how the tool behaves and should be used.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections like DESIGNER MODE, WORKFLOW context, and CRITICAL CSS STRUCTURE, but it is lengthy and includes some information that might be excessive (e.g., specific pixel sizes for iPhone 15). While informative, it could be more concise by focusing only on essential guidance without overloading details.

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

Completeness5/5

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

Given the tool's complexity (13 parameters, no annotations, no output schema), the description is highly complete. It covers purpose, usage guidelines, behavioral traits, parameter semantics, and post-invocation steps. It addresses multiple contexts (Designer vs. Workflow) and provides practical advice, making it sufficient for an agent to understand and use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the baseline is 3, but the description adds meaningful semantic context beyond the schema. For example, it explains the 'target' parameter's workflow context and advises to 'ASK USER if unclear,' and it clarifies the 'container' parameter's semantic meaning in Designer mode. However, it doesn't cover all parameters in depth, keeping it from a perfect score.

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?

The description clearly states the tool's purpose: 'Create HTML content in Circuitry.' It specifies the verb ('Create') and resource ('HTML content') and distinguishes it from sibling tools like 'layout.createSection' by explaining when to use each, making the purpose specific and well-differentiated.

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?

The description provides explicit usage guidelines, including when to use this tool versus alternatives (e.g., 'Use `layout.createSection` instead!' for Designer screens), context for two target options ('drawing' or 'node'), and prerequisites like asking the user if unclear. It clearly outlines when and how to apply the tool in different scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/circuitry-dev/circuitry-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server