Skip to main content
Glama

Create colors

create_colors
Destructive

Add colour swatches to a Playbook folder — the building blocks of a palette or a brand's colour spec. Send two or more codes and Playbook merges them into a palette (a group asset), returned as group; send one and group comes back null. A colour is a hex code ("#FF0000", "#F00"), CMYK ("CMYK(0%, 100%, 100%, 0%)"), a two-stop gradient ("#FF0000\u2192#0000FF"), or a Pantone name written WITHOUT the "PANTONE " prefix, exactly as it appears in Playbook's Pantone list — "185 C", not "PANTONE 185 C". Anything else is rejected with 406. Returns the finished swatches immediately (nothing is uploaded, so there is no polling step). Requires a token with the write scope. Tip: validate collection_token with get_folder first — an unknown token silently falls back to an anonymous default folder.

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": {
      "color_codes": "<color_codes>"
    },
    "name": "create_colors"
  }
}

Input Schema

NameRequiredDescriptionDefault
titlesNoOptional titles, positionally aligned with color_codes. A null entry falls back to the code itself.
color_codesYes1-100 colours per call. Each is a hex code ("#FF0000", "#F00"), CMYK ("CMYK(0%, 100%, 100%, 0%)"), a two-stop gradient of two hex codes joined by → ("#FF0000\u2192#0000FF"), or a Pantone name with no "PANTONE " prefix and exact casing ("185 C", "185 CP", "20-0001 TPM"). An unrecognized value fails the whole call with 406 — nothing is created.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
parent_tokenNoMerge the new swatches into this existing asset or group instead of letting them form a palette of their own.
collection_tokenNoDestination folder token. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / collection_token / description
      Previous value: -"Destination board token. If omitted or unknown, Playbook silently routes to a default anonymous board — call get_board first to validate."New value: +"Destination folder token. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate."
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "color_codes",
      -  "context"
      -]New value: +[
      +  "color_codes"
      +]
  4. First observed

TDQS

A4.4/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, destructive, non-idempotent write; the description goes far beyond by disclosing the write-scope auth requirement, that one code yields group=null while two or more yields a palette group, that bad input rejects the entire call with 406, that there is no polling step because nothing is uploaded, and that an unknown collection_token silently falls back to an anonymous folder. That silent-fallback warning is exactly the kind of non-obvious behavior an agent needs.

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?

Front-loaded with purpose and behavior, then formats, then returns, then auth, then the get_folder tip — a logical order with no filler sentences. It is long for a single paragraph and repeats some format details already in the schema, costing a point.

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?

With no output schema, the description carries the return-value burden and does so: swatches come back immediately, group is populated or null depending on count, and failures are 406. Combined with the auth and fallback notes, nothing material is missing for a five-parameter mutation tool.

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%, so all five parameters are already documented in structured fields. The description's added value is the array-length semantics (1 vs 2+ codes changes the returned group), which the schema does not state; the format list and Pantone-prefix rule largely restate the schema's color_codes description.

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 and resource — 'Add colour swatches to a Playbook folder' — and immediately characterizes the resulting object as 'the building blocks of a palette or a brand's colour spec.' This is clearly distinct from siblings like create_folder or create_asset_version, so an agent can pick it without opening the schema.

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?

Gives concrete routing advice: use get_folder first to validate collection_token, pass organization only when the account has multiple workspaces, and use parent_token to merge into an existing asset instead of forming a new palette. It stops short of any explicit 'when not to use this / use sibling X instead' exclusion, so it falls just under the top bar.

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