Skip to main content
Glama

Create theme

create_theme

Create a new visual theme. Supply the complete tokens map (primary, font, radius, shadow, canvas, surface, chart1-10, etc.) — tokens are the single source of truth for every visual property. A theme also picks the report cover-page and thank-you-page background images (other text/colour overlays come from defaults). Set is_default=true to make this the account default — any existing default is cleared atomically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTheme name
tokensYesComplete token map for all visual properties: primary, primary_foreground, accent, accent_foreground, canvas, surface, surface_muted, text, text_muted, border, header_surface, header_text, header_border, chart1–chart10, font, radius, shadow.
cover_pageNoCover-page configuration: background image URL plus title and subtitle overlays (variable-substituted at render time).
is_defaultNoMark as the account default theme — one per account, cascade target for new reports
thank_you_pageNoThank-you-page configuration: background image + title + subtitle.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoThe new theme — id, name, tokens and page config. Pass the id as theme_id on a report.
successYesTrue when the call succeeded. A failure comes back as an error result instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": {},
      +      "description": "The new theme — id, name, tokens and page config. Pass the id as theme_id on a report.",
      +      "type": "object"
      +    },
      +    "success": {
      +      "description": "True when the call succeeded. A failure comes back as an error result instead.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already indicate this is a mutation, and the description adds important behavioral context beyond that: tokens are the single source of truth, and setting is_default=true atomically clears any existing default. This is a meaningful side-effect disclosure that helps an agent anticipate the consequences of the call.

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 three tight sentences with no filler. It front-loads the core action, then provides the critical token requirement and the notable default side effect. Every sentence contributes operational information.

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?

For a create tool with five parameters, nested objects, and an output schema, the description covers the essential inputs and behaviors. A minor gap is that it does not explicitly acknowledge the optional title/subtitle overlays allowed by the schema, though the schema itself documents those, and the overlays comment is slightly ambiguous.

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?

The input schema already provides 100% parameter coverage with detailed descriptions, so the baseline applies. The description adds value by emphasizing that the tokens map must be complete, and by explaining the atomic default-clearing behavior of is_default. It also clarifies the role of cover_page and thank_you_page as selecting background images.

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 clearly states a specific action and resource: 'Create a new visual theme.' It further defines what a theme includes (tokens, cover-page and thank-you-page background images), making it easy to distinguish from siblings like update_theme, archive_theme, get_theme, and list_themes.

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?

It gives clear guidance on when to call this tool: when creating a new theme, providing a complete tokens map, and optionally setting it as the account default. It does not explicitly enumerate alternatives like 'use update_theme to modify an existing theme,' but the 'new' framing and sibling names supply adequate context.

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