Skip to main content
Glama

Update theme

update_theme
DestructiveIdempotent

Partially updates a theme by id. Requires the Scale 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

A4.3/5.0
Behavior4/5

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

Annotations already provide destructiveHint=true and idempotentHint=true, so the description does not need to restate those. It adds the Scale plan requirement and clarifies that this is a partial update, which is useful behavioral context beyond the annotations. No contradiction exists.

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 a single sentence that front-loads the action and scope, then adds the plan requirement. There is no filler or redundant repetition of schema information.

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?

Given the rich schema, output schema, and annotations, the description is complete enough for an agent to invoke the tool correctly. It includes the plan requirement, and the schema covers parameter semantics and replacement behavior. The only missing element, explicit alternatives, is already evident from sibling tool names.

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%, and the schema thoroughly documents id, tokens replacement semantics, and customFonts replacement. The description adds no parameter-level detail beyond 'by id', so the baseline of 3 applies.

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 states a specific verb ('updates'), a resource ('theme'), and a scope ('by id', 'partially'), which clearly distinguishes it from create_theme, delete_theme, get_theme, and list_themes. The plan requirement adds useful context without obscuring the core purpose.

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?

The phrase 'partially updates a theme by id' makes clear this is for modifying an existing theme, not creating, deleting, or reading one. It does not explicitly name alternatives or exclusions, but the context is strong enough for an agent to select it appropriately.

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