Skip to main content
Glama

Set a theme's settings

set_theme_settings
Idempotent

On one site of the account, named in site. Writes values for settings the theme's manifest declares (get_theme_settings lists them): values maps keys to a boolean, one of a select's options, a hex colour, a text, an html (one line: bold, italic, a link — anything else is cleaned out), or an image address (an absolute URL or a / path; empty clears it). Live at once — these are rows the site reads, not files — so ask before changing what readers see. A key the manifest does not declare, or a value off its type, is refused whole. Admins only.

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>",
      "theme": "<theme>",
      "values": "<values>"
    },
    "name": "set_theme_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site to work on, as list_sites names it
themeYes
valuesYesSetting key to value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that changes are live immediately ('rows the site reads, not files'), that the write is atomic — an undeclared key or mistyped value refuses the whole request — and that admin rights are required. The 'ask before changing what readers see' warning adds practical risk context consistent with destructiveHint=false (a visibility change, not a deletion).

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?

Dense and information-rich with essentially no filler, but it is one long run-on paragraph that opens with an awkward sentence fragment about the site rather than front-loading the core write action. Slight restructuring would improve scanability without losing content.

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?

For a mutation tool with a nested free-form `values` object, no output schema, and no enums, the description supplies the missing pieces: per-type value semantics, atomic failure behavior, immediacy of effect, and authorization requirements. Nothing an agent needs in order to call this correctly is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 67% and the `values` property is documented merely as 'Setting key to value', so the description carries the real burden — and does: it enumerates the accepted value types (boolean, select option, hex colour, text, html, image address), the html sanitization limits, and that an empty image address clears the value. Only the `theme` parameter is left implicit, which is a minor gap.

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?

States a specific verb and resource ('Writes values for settings the theme's manifest declares') and scopes it to one site named in `site`. It explicitly routes to `get_theme_settings` as the read counterpart, so an agent can distinguish this from `update_theme`, `build_theme`, and `get_theme_settings` without opening any schema.

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?

Clear when-to-use context: settings must be manifest-declared, and `get_theme_settings` is named as the way to discover them. Adds a caution ('ask before changing what readers see') and an admin-only precondition, but gives no explicit when-not guidance relative to siblings like `update_theme` or `write_theme_file`.

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