Skip to main content
Glama

HamroLink Business OS MCP Server

site.update_theme

Updates the visual theme and brand design tokens across the entire website (header, footer, homepage, all content pages, and e-commerce product detail pages). Supports Basic Mode (all 16 curated themes: 'light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant', plus Light/Dark mode switch and primary/accent brand colors) and Advanced Mode (granular overrides for buttonTextColor, backgroundColor, cardColor, textColor, mutedTextColor, borderColor, and fontFamily). HAMROLINK HALLMARK UI/UX & ANTI-SLOP GUIDELINES: 1) Strict Contrast (WCAG AA 4.5:1+): Never pair dark textColor with dark backgroundColor/cardColor or light textColor with light surfaces. When switching between Light and Dark mode, prefer setting resetAdvancedOverrides=true unless providing a complete, high-contrast custom surface+text palette. 2) 60-30-10 Color Rule: 60% clean page background, 30% subtle card surface & border, 10% high-intent primary CTA button & accent badge. Avoid clashing neon rainbow colors.

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

Input Schema

NameRequiredDescriptionDefault
scopeNoScope of application ('site', 'all_pages', 'header_only', 'footer_only'). Defaults to 'site' (full site sync).
themeNoCurated theme preset ('light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant').
siteIdNoMongoDB Site ID (optional if user has only one site)
cardColorNoAdvanced: Card, product box & container surface hex color (--card, e.g. '#f8fafc' or '#111827')
textColorNoAdvanced: Main heading & body copy hex color (--foreground, e.g. '#0f172a' or '#f8fafc'). Must have >= 4.5:1 contrast against backgroundColor and cardColor.
themeModeNoAlias for theme name (e.g. 'warm', 'emerald', 'luxury', 'dark', 'light').
fontFamilyNoGlobal typography font family (e.g. "'Inter', sans-serif", "'Plus Jakarta Sans', sans-serif", "'Playfair Display', serif", "'Lora', serif", "'Space Grotesk', sans-serif", "'Outfit', sans-serif")
isDarkModeNoGlobal Light/Dark contrast switch (true = Dark Mode surfaces, false = Light Mode surfaces).
accentColorNoAccent / badge highlight hex color override (--accent, e.g. '#f59e0b', '#10b981')
borderColorNoAdvanced: Card outline & section divider hex color (--border, e.g. '#e2e8f0' or '#1f2937')
primaryColorNoPrimary brand / button background hex color override (--primary, e.g. '#ea580c', '#059669')
mutedTextColorNoAdvanced: Subtitle, caption & muted description hex color (--muted-foreground, e.g. '#475569' or '#94a3b8')
secondaryColorNoOptional secondary brand hex color override
backgroundColorNoAdvanced: Page canvas background hex color (--background, e.g. '#ffffff' or '#090d16')
buttonTextColorNoAdvanced: Text hex color inside primary buttons (--primary-foreground, e.g. '#ffffff')
resetAdvancedOverridesNoSet true to reset custom backgroundColor, cardColor, textColor, mutedTextColor, and borderColor back to the active theme's curated defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is already carried by structured fields. The description adds meaningful behavior beyond that: the change propagates site-wide across enumerated surfaces, advanced overrides reset to curated defaults when resetAdvancedOverrides is set, and a WCAG AA 4.5:1 contrast invariant governs valid text/surface pairings. It does not mention permissions, whether prior theme state is recoverable after a full overwrite, or what the call returns.

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-loaded with purpose and propagation scope before the mode details, and the numbered contrast and 60-30-10 rules are genuinely load-bearing for producing a valid call. It loses a point for redundancy: all 16 theme names are listed even though the schema enum already carries them, and the all-caps 'HAMROLINK HALLMARK UI/UX & ANTI-SLOP GUIDELINES' banner is stylistic noise around otherwise useful content.

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 16-parameter, zero-required mutation with no output schema, the definition covers the decisions that actually matter: which mode to use, how presets and overrides interact, and how to reset safely. Remaining gaps are a stated return value and conflict resolution among overlapping inputs (theme vs themeMode, scope vs preset). Those are minor for a tool whose schema is fully documented.

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 coverage is 100%, so baseline would be 3, but the description earns above baseline by explaining semantics the schema cannot: the preset-vs-override distinction, the interaction between isDarkMode, theme, and resetAdvancedOverrides, and the contrast constraint linking textColor to backgroundColor/cardColor. The enumerated theme list largely duplicates the schema enum, which caps it below 5.

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?

Opens with a specific verb and resource ('Updates the visual theme and brand design tokens') and scopes the blast radius precisely: header, footer, homepage, content pages, and commerce product detail pages. It also separates Basic Mode (curated presets plus mode switch and brand colors) from Advanced Mode (granular token overrides), so an agent understands the two usage shapes. It stops short of 5 because it never names a sibling such as site.update_header or site.update_footer to distinguish theme propagation from content edits in those regions.

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?

Gives actionable conditional guidance: use Basic Mode for curated presets, Advanced Mode for granular overrides, and prefer resetAdvancedOverrides=true when toggling Light/Dark mode without a complete high-contrast palette. That is real when-to-do-what routing. It lacks explicit when-not-to-use guidance (e.g., that header/footer content changes belong to the sibling update_header/update_footer tools) and does not clarify precedence when both 'theme' and 'themeMode' are supplied.

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.