Skip to main content
Glama

Generate a design-token set (palette / motion / layout)

riv_design_tokens

Generate OKLCH-harmonized design tokens—palette with WCAG contrast, gradients, motion durations, spacing and type scales—before calling riv_create, so scene specs use consistent values instead of raw hex colors.

Instructions

Deterministically generate professional design tokens for a scene BEFORE calling riv_create: an OKLCH-harmonized palette (with WCAG contrast ratios), gradient pairs, Material-Motion-derived durations & easing roles, spacing/radius/stroke scales and a type scale. Call this first, then use ONLY the returned values in the scene spec — never invent raw hex colors or ad-hoc durations. Inputs: optional seed color, mood (calm|playful|elegant|tech|warm|natural), scheme (dark|light).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "riv_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
moodNoSets the default hue when seed is absent (default calm)
seedNoBrand/seed color #RRGGBB (optional; mood default hue otherwise)
schemeNoDefault dark

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.0
    • addedInput schema / properties / mood / description
      Added value: +"Sets the default hue when seed is absent (default calm)"
  2. First observedv0.5.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses determinism, what each generated group contains (OKLCH palette with WCAG ratios, gradient pairs, motion roles, scales), and the strict usage contract. It does not explicitly state side effects or permissions, but the generative read-only nature is strongly implied.

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 dense but front-loaded: first sentence states what is generated, second states the critical usage contract, third summarizes inputs. Every clause earns its place and no filler is present.

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?

There is no output schema, so the description must explain return values, and it does so at the category level (palette, gradients, motion, scales, type). It lacks exact output shape or pagination-style details, but is complete enough for an agent to know what to expect and how to use the result.

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%, and the schema already documents mood, seed, and scheme with defaults. The description lists the same inputs and the mood enum, adding only minor framing ('optional seed color') beyond the structured schema, so baseline 3 is appropriate.

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?

States a specific verb (generate) and resource (design tokens) with clear scope: palette, gradients, motion, spacing, type. It explicitly distinguishes itself from sibling riv_create by saying it must be called before scene creation.

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?

Explicitly says to call this first, then to use ONLY the returned values and never invent raw hex colors or ad-hoc durations. It also names the downstream sibling riv_create, leaving no ambiguity about ordering or alternatives.

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