Skip to main content
Glama

Write a design brief and design system

handmade_design_brief
Idempotent

Generates a complete UI brief from a request, including fonts, palette, spacing, layout rules, and a self-check before code is written.

Instructions

Before building a new UI, turn the user's request into a full design brief. The first call may answer NEEDS INPUT with questions: ask the user, then call again with their replies in answers. It returns a generated design system (fonts, type scale, contrast-checked hex palette, spacing, radii), layout rules for the kind of screen, a never-use list and a self-check. Follow the returned brief exactly when writing the code. Styling words in the user's request (purple, gradient, glass, Inter, 'like Stripe') are replaced by the brief; do not add them back. Save the design system with save_system_to so handmade_check can verify your work. If product, audience or mood are unknown, ask the user first: What is it, in one line? Name the product and what it does. | Who uses it and where? (for example: county health officers on office laptops) | Which mood fits? Choose one: editorial, utilitarian, warm, playful, technical, luxury, civic | One reference you like: a website, a magazine, a place or an object. (optional) | One thing people should remember about this screen. (optional)

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": {
      "request": "<request>"
    },
    "name": "handmade_design_brief"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoType of screen. Detected if omitted.
moodNoOverall feel.
allowNoComma-separated deliberate brand choices the rules should keep, for example 'purple'. Only when the user confirms it is their brand.
freshNoIgnore a saved handmade.system.json in project_path and start over.
answersNoThe user's answers to questions this tool asked, keyed by the question key. Only answers the user actually gave. Never fill these in yourself.
proceedNoWrite the brief even though facts are missing. Only when the user chose to skip the questions. Missing facts are then listed for you to leave as marked slots.
productNoWhat the product is, in one line.
requestYesThe user's UI request, in their words.
variantNoPick an alternative generated design system.
audienceNoWho uses it and where.
referenceNoA site, magazine, place or object the user likes.
signatureNoThe one thing people should remember about the screen.
project_pathNoAbsolute path of an existing project to reuse its fonts and colors.
save_system_toNoAbsolute path to write handmade.system.json (usually the project root). handmade_check reads it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, idempotent, non-destructive call; the description goes well beyond that by disclosing the NEEDS INPUT question protocol, what the return payload contains, and the rule that styling words in the request are replaced by the brief and must not be re-added. That is behavior an agent could not learn from the annotations or schema.

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?

Purpose and turn-taking protocol are front-loaded, and the inline question list is dense but functional since the agent must read it aloud. Some redundancy appears where the 'if product, audience or mood are unknown, ask the user first' rule restates the earlier NEEDS INPUT flow.

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 14-parameter tool with a nested object and no output schema, the description carries the missing burden: it describes the returned brief's components, the clarification loop, and the handoff to save_system_to. An agent can run the full flow from this text alone.

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?

Schema coverage is 100%, so baseline is 3; the description adds real meaning by mapping the asked questions onto the product/audience/mood/reference/signature parameters and by stating that `answers` must contain only what the user actually said. It does not add much for variant, fresh, or proceed, which remain schema-only.

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 opening sentence names a specific verb and resource — turn a user request into a full design brief before building a UI — and the return contents (design system, layout rules, never-use list, self-check) are spelled out. It also distinguishes itself from the sibling verification tool by naming save_system_to and handmade_check.

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?

It states the trigger clearly ('Before building a new UI') and gives an explicit multi-turn protocol: the first call may answer NEEDS INPUT, ask the user, then call again with replies in `answers`. It also names the downstream step (save with save_system_to so handmade_check can verify) rather than leaving routing to inference.

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