Skip to main content
Glama

legal_put_theme

Set a site's banner theme preset and CSS custom properties in one all-or-nothing request; any invalid name or value rejects the entire update.

Instructions

Set the banner theme preset and/or individual CSS custom properties. All or nothing: one invalid name or value rejects the whole request (400, names in data.invalid). Returns { saved: true }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>"
    },
    "name": "legal_put_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
varsNo--cvrt-consent-* overrides (bg, fg, accent, radius, font, shadow, link, title, backdrop). REPLACES the stored overrides as a whole: send every override you want to keep, {} clears them. Values are plain CSS (no ; { } < \ or comments, max 200 chars).
presetNoTheme preset; an unknown preset renders as default

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.14.0
    • changedInput schema / properties / preset / description
      Previous value: -"default or dark"New value: +"Theme preset; an unknown preset renders as default"
    • addedInput schema / properties / preset / enum
      Added value: +[
      +  "default",
      +  "dark"
      +]
    • addedInput schema / properties / vars / additionalProperties / maxLength
      Added value: +200
    • changedInput schema / properties / vars / description
      Previous value: -"--cvrt-consent-* overrides"New value: +"--cvrt-consent-* overrides (bg, fg, accent, radius, font, shadow, link, title, backdrop). REPLACES the stored overrides as a whole: send every override you want to keep, {} clears them. Values are plain CSS (no ; { } < \\ or comments, max 200 chars)."
    • addedInput schema / properties / vars / propertyNames
      Added value: +{
      +  "pattern": "^--cvrt-consent-[a-z-]+$"
      +}
  2. Addedv3.4.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses transactional semantics ('All or nothing: one invalid name or value rejects the whole request'), the failure mode and its payload (400, names in data.invalid), and the success return ({ saved: true }). It omits permission/auth requirements, which is the main remaining gap.

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?

Three short sentences, front-loaded with the action, then the atomicity/error contract, then the return shape. No filler and nothing buried.

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 3-parameter nested-object mutation with no output schema, the description covers the action, the all-or-nothing behavior, the error format, and the return value. Preconditions such as required capability or whether unset fields are preserved are the only notable omissions, and the schema covers the replacement semantics.

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%, including an explicit note that vars REPLACES stored overrides and must be sent in full. The description adds nothing beyond that except the 'and/or' framing implying preset and vars are independently optional; baseline 3 applies when the schema does the heavy lifting.

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: 'Set the banner theme preset and/or individual CSS custom properties,' which tells an agent exactly what is written. It does not distinguish itself from the read counterpart legal_get_theme or other put_* siblings, so sibling differentiation is missing.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to call this versus alternatives (e.g. legal_get_theme to inspect current values first, or the other legal_put_* config tools). Usage is only implied by the verb 'Set' and the presence of the required site parameter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools