Skip to main content
Glama

Update theme

update_theme
DestructiveIdempotent

Create or update a brand theme. Themes store colors, fonts, logos, a markdown notes field (voice, audience, tone, do's and don'ts), a reference image and any brand elements used for consistent media generation.

Two modes:

  • interactive (interactive: true) opens the visual editor in the chat for the user to set colors, fonts and logos and press save. Use this for "edit my theme" or "help me set up a brand" requests. The user saves in the editor; do not call update_theme again for it. Clients that cannot show the editor get a note saying so.

  • direct: pass data, images and/or set_default. data shallow-merges by default; pass override: true to replace it entirely. images is always replaced, and the first image becomes the thumbnail. Creates a new theme if the name doesn't exist. The first theme automatically becomes the default.

Examples:

  • update_theme({ interactive: true })

  • update_theme({ name: "Acme", interactive: true })

  • update_theme({ name: "Acme", data: { colors: [{ name: "Brand", hex: "#FF0000" }] } })

  • update_theme({ name: "Acme", images: ["https://cdn.example.com/hero1.png"] })

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": "update_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoTheme data: colors, fonts, logos, etc. Merged with existing data by default.
nameNoTheme name. Creates the theme if it doesn't exist. Required unless interactive is true.
imagesNoBrand reference images for this theme. Replaces the entire images array when provided. The first image is saved as the thumbnail.
overrideNoIf true, replaces the entire theme data. Default false: top-level keys are replaced and missing keys are preserved. Only applies to data.
interactiveNoWhen true, open the visual theme editor in the chat instead of saving. The user fills in the form and saves there; name is optional. Use this whenever the user says "edit my theme", "create a theme" or "help me set up a brand".
set_defaultNoIf true, makes this theme the default.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the agent knows this mutates and overwrites. The description adds genuinely useful behavior beyond that: shallow-merge default vs full replacement with override, images always being replaced with the first becoming the thumbnail, auto-creation when the name is missing, and the first theme auto-becoming default. It does not contradict the annotations, but this content largely restates the schema's own parameter descriptions rather than adding new operational context (no auth/permission or error behavior).

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-loads the definition, then mode selection, then merge semantics, then concrete call examples — a logical order with no filler. The size is justified by the two-mode split, though the examples and the restated merge rules overlap slightly with the schema text.

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?

Handles the hard parts for a 7-parameter mutation tool with a nested free-form object: mode semantics, merge vs replace, default behavior, and what happens in the interactive editor after the call. Missing only detail on the opaque skills_used analytics parameter and on failure/permission behavior for a destructive operation.

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 description coverage is 100%, so baseline is 3, but the description adds cross-parameter relationships the schema states only piecemeal: name is required unless interactive is true, data merges while images always replace, and the first theme becomes default. It does not cover skills_used at all, and the free-form 'data' object is only loosely characterized ('colors, fonts, logos, etc.').

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?

Opens with a specific verb pair and resource ('Create or update a brand theme') and then defines what a theme actually contains (colors, fonts, logos, notes field, reference image, brand elements). An agent can immediately tell this apart from the read-only get_theme sibling without opening any 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?

Explicitly enumerates two modes with selection criteria: 'interactive' for 'edit my theme' / 'help me set up a brand' requests, and 'direct' when passing data, images or set_default. It even states the anti-pattern ('do not call update_theme again for it') and notes the fallback for clients that cannot render the editor.

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.