Skip to main content
Glama

Update theme

update_theme
DestructiveIdempotent

Partially updates a theme by id. tokens and customFonts each replace the stored value wholesale — send the full object, not just the changed keys. Requires the Build plan or higher.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe theme id, as returned by list_themes or create_theme.
nameNoNew theme name. Omit to leave it unchanged.
tokensNoReplaces the theme's whole tokens object, so send every token you want to keep. Omit to leave the design unchanged.
customFontsNoReplaces the theme's list of self-hosted fonts ({ name, url } each). Omit to leave it unchanged.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
tokensYesThe theme's design tokens: concept, palette, colours, fonts, radii, spacing.
createdAtYes
updatedAtYes
customFontsYes
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description explains the mechanism behind the destruction: tokens and customFonts are replaced wholesale, so omitting keys discards them. That is high-value operational context beyond the flags, plus the plan-level auth requirement.

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?

Two tightly packed sentences with no filler. The update semantics come first, then the destructive replacement caveat, then the plan gate, in descending order of operational importance.

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?

An output schema exists, so return values need no explanation. The description covers patch behavior, the destructive replacement gotcha, and the plan prerequisite. Given annotations carry the safety profile, the only minor omission is any reference to sibling tools for navigation.

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 the schema already documents id, name, tokens, and customFonts, including their own replacement notes. The description's 'send the full object, not just the changed keys' reinforces the same behavior rather than adding new parameter meaning, so the baseline applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'Partially updates a theme by id.' An agent can identify the operation and its patch semantics unambiguously. It does not explicitly differentiate from other update_* siblings (update_screen, update_course), but the resource noun is decisive.

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

Usage Guidelines3/5

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

The word 'partially' implies when to use patch-style updates, and the plan requirement ('Requires the Build plan or higher') is a real gating precondition. However, there is no explicit routing to alternatives such as create_theme, get_theme, or delete_theme, leaving selection partly to inference.

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