Skip to main content
Glama

Set brand kit

set_brand_kit
Idempotent

Save the active workspace's brand kit, replacing the one it has: the palette by role, the heading and body fonts, the logo and mark, the language and locale, the tone and the phrases never to use, and the look (style: radius, density, emphasis, cover and surfaces, each from a small set, read off the site the way the colours are). Build it from what the person gives you (a brand guideline PDF, their website, or answers), show it to them as a table and get a yes BEFORE calling this. Colours are #rrggbb for every role: primary, primaryStrong, secondary, accent, ink, muted, line, surface, surfaceTint, onPrimary, onSecondary, positive, negative (positive and negative, the green and red for a change for the better or the worse, may be left out and get sensible defaults). Fonts are one family name each, a system family or a Google Fonts family name (font_source: "google"; publishing then allows Google Fonts on the site). logo_url and mark_url are https URLs of a PNG, SVG or WebP under 1 MB on a public site (the customer's own website is the usual source): SnapHost fetches and hosts them, so the kit's asset URLs are SnapHost's, never the source. A kit saves without a logo (a guideline PDF rarely gives a file you can reach): its assets.logo is then null, pages set the brand name in type, and the person adds the logo later on the Brand page. A later save keeps the assets the kit has unless given new ones. Relay every warnings entry (low contrast is the usual one) and offer to fix it. Owner or admin only, on Pro. The brand guidelines themselves (a page or PDF) are set apart, with set_brand_guidelines.

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": {
      "name": "<name>",
      "tokens": "<tokens>",
      "heading_font": "<heading_font>",
      "body_font": "<body_font>",
      "font_source": "<font_source>",
      "language": "<language>",
      "locale": "<locale>"
    },
    "name": "set_brand_kit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe brand name, e.g. "Garðabær"
toneNoUp to eight sentences describing how the brand writes
styleNoThe look, read off the site: radius from its buttons and cards, density from its white space, emphasis from its display type (calm or bold headlines), cover from its hero, surfaces from whether it boxes content in tinted panels or separates it with rules. Leave `style` out on a later save to keep the look the kit has; a first save without it takes the neutral look (soft, regular, calm, dark, tinted).
localeYesLocale for numbers and dates, e.g. "is-IS"
tokensYesA #rrggbb colour for every role: primary, primaryStrong, secondary, accent, ink, muted, line, surface, surfaceTint, onPrimary, onSecondary, positive, negative
languageYesLanguage code, e.g. "is"
logo_svgNoThe logo as SVG markup (the <svg>…</svg> drawn inline in the site’s HTML), when no file URL exists; at most 200 KB
logo_urlNohttps URL of the logo (PNG, SVG or WebP)
mark_svgNoThe mark as SVG markup, when no file URL exists
mark_urlNohttps URL of the small mark or emblem; the logo when omitted
body_fontYesThe body family
font_sourceYesWhere the fonts come from
heading_fontYesThe heading family
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).
forbidden_phrasesNoUp to forty words or phrases the brand never uses

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / guidelines_url
      Removed value: -{
      -  "description": "https URL of the brand guidelines, a public web page or PDF; \"\" clears it, omitted keeps it. Owner only.",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • addedInput schema / properties / guidelines_url
      Added value: +{
      +  "description": "https URL of the brand guidelines, a public web page or PDF; \"\" clears it, omitted keeps it. Owner only.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / style
      Added value: +{
      +  "description": "The look, read off the site: radius from its buttons and cards, density from its white space, emphasis from its display type (calm or bold headlines), cover from its hero, surfaces from whether it boxes content in tinted panels or separates it with rules. Leave `style` out on a later save to keep the look the kit has; a first save without it takes the neutral look (soft, regular, calm, dark, tinted).",
      +  "properties": {
      +    "cover": {
      +      "enum": [
      +        "dark",
      +        "light",
      +        "split"
      +      ],
      +      "type": "string"
      +    },
      +    "density": {
      +      "enum": [
      +        "airy",
      +        "regular",
      +        "dense"
      +      ],
      +      "type": "string"
      +    },
      +    "emphasis": {
      +      "enum": [
      +        "calm",
      +        "bold"
      +      ],
      +      "type": "string"
      +    },
      +    "radius": {
      +      "enum": [
      +        "sharp",
      +        "soft",
      +        "round"
      +      ],
      +      "type": "string"
      +    },
      +    "surfaces": {
      +      "enum": [
      +        "tinted",
      +        "ruled"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it adds substantial behavior: replacement semantics, preservation of existing assets on later saves, SnapHost asset hosting, default positive/negative colors, the no-logo fallback, and the need to relay warnings. The annotations already cover safety and idempotency, and the description meaningfully extends them rather than repeating them.

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 dense and largely front-loaded, with the purpose and pre-call workflow early and details following. It is long and somewhat packed into one block, with some repetition of the color roles, but the length is justified by a 15-parameter nested configuration tool.

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 complex tool with nested objects, 15 parameters and no output schema, it covers the preconditions, replacement behavior, defaults, asset handling, warnings and the sibling tool. An agent has enough context to call it correctly without needing to infer major behavior from the schema alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description still adds important meaning beyond the schema: how colors map to roles and defaults, what each style dimension means and where it is read from, how Google Fonts affect publishing, how logo and mark URLs are fetched and hosted, and what happens when no logo is supplied. It also clarifies later-save merge behavior for assets.

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 opens with a specific verb and resource: saving the active workspace's brand kit and replacing the existing one. It enumerates exactly what the kit contains and explicitly distinguishes it from set_brand_guidelines, so an agent can tell the two apart without opening either schema.

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 gives explicit preparation steps before calling: build the kit from a PDF, website or answers, show it as a table, and get a yes first. It also states the access constraint (owner or admin only, on Pro) and names set_brand_guidelines as the separate tool for guideline content.

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.