Skip to main content
Glama

Design a direction

create_direction

Start here. Turns what the user wants into a design direction for the app: a palette built from their colours or mood, type, radius, motion and layout. Returns a direction_id for the other tools and a theme CSS file of tokens to save in the project.

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": {
      "app": "<app>"
    },
    "name": "create_direction"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesWhat the app is and does, in a sentence or two.
ctaNoThe call to action label.
moodNoHow it should feel, in the user's words: "calm and premium", "loud and sporty", "playful", "editorial"...
avoidNoThings the user does not want, for example "playful".
brandNoBrand or product name.
themeNoForce a dark or light theme. Leave out to let the mood decide.
colorsNoBrand colours as hex ("#ff5a1f") or names ("teal"), most important first. Leave out to let the designer choose.
sublineNoOne supporting sentence.
audienceNoWho it is for.
headlineNoThe main headline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-destructive, closed-world operation. The description adds useful behavioral context by explaining what is produced: a direction_id and a theme CSS file of design tokens to save in the project. It does not describe persistence side effects or permissions, but it adds meaningful output and workflow information beyond the annotations.

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?

The description is three short sentences with no wasted wording. It is front-loaded with 'Start here,' then states the transformation and returns, which is an effective structure for an agent.

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

Completeness4/5

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

For a ten-parameter creation tool with no output schema, the description is largely complete: it explains what is created, the return values, and the tool's role as a starting point. It could do slightly more to distinguish creating a new direction from modifying an existing one, but no critical information is missing.

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 all ten parameters are already documented in the schema. The description links colors and mood to palette generation and implies theme selection, but it adds little parameter-level detail beyond what the schema already provides. A baseline 3 is appropriate when the schema carries the parameter 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 states a specific verb and resource: it turns user intent into a design direction for the app. It also lists the concrete outputs — palette, type, radius, motion, layout, direction_id, and a theme CSS token file — making it distinguishable from sibling tools like adjust_direction or update_direction. 'Start here' further clarifies that this is the creation entry point.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Start here' gives clear context for when to use this tool, and 'Returns a direction_id for the other tools' explains its role in the workflow. It does not explicitly name alternatives or state when not to use it, such as when a direction already exists and should be adjusted instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources