Skip to main content
Glama

mimic_generate_design_md

Read-onlyIdempotent

Generate a DESIGN.md file that compiles design system tokens and usage patterns into a machine-readable and human-readable format, compatible with generative UI tools and AI coding agents.

Instructions

Generate a DESIGN.md file from the current DS knowledge. Compiles DS variables, text styles, components, and Mimic's learned usage patterns into the open DESIGN.md format (compatible with Google Stitch, generative UI tools, and AI coding agents). The YAML frontmatter contains machine-readable tokens (colors, typography, spacing, radius, components). The markdown prose sections contain human-readable usage guidelines generated from build patterns. Optionally saves to a file path. Returns the full DESIGN.md content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dsNameYesName for the design system (used in the DESIGN.md header).
descriptionNoOptional one-line description of the design system.
savePathNoOptional file path to save the DESIGN.md. If omitted, content is returned but not saved.
Behavior4/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, indicating no state mutation and safe re-invocation. The description adds behavioral detail: it compiles DS variables, text styles, components, and learned patterns, and optionally saves to a file. This enriches understanding beyond annotations, though the file-saving could be seen as an external side effect.

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?

The description is a single well-structured paragraph: purpose first, then compiled elements, format details, optional save, and return value. It is concise without fluff, though not separated into bullet points. Front-loading is effective.

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?

For a tool generating a DESIGN.md file with no output schema, the description adequately explains what is produced (YAML frontmatter with tokens, markdown prose with guidelines), the optional save behavior, and that the full content is returned. It also notes compatibility with other tools, making it self-contained.

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 100%, with descriptions for all parameters (dsName, description, savePath). The description does not significantly expand on these—it merely restates their roles. Baseline 3 is appropriate as the schema already provides necessary semantics.

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 specifies 'Generate a DESIGN.md file' from the current DS knowledge, which is a unique and distinct purpose among sibling tools like mimic_discover_ds or mimic_generate_build_report. The verb 'generate' and resource 'DESIGN.md' are explicitly stated, leaving no ambiguity.

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?

No explicit guidance is provided on when to use this tool versus alternatives. The description implies its use for generating DESIGN.md files, but does not mention exclusions or comparisons to other generation tools (e.g., mimic_generate_build_report). Agents must infer based on purpose alone.

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/miapre/mimic-ai'

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