Skip to main content
Glama

royal-mcp__wp_update_theme_mod

Destructive

Update a single theme customizer setting. Requires the "Allow AI to modify theme appearance" admin toggle AND the mod name must be in the allowlist (extend via the royal_mcp_writable_theme_mods filter). (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.

Input Schema

NameRequiredDescriptionDefault
valueYesNew value (any JSON type compatible with set_theme_mod)
site_idNoSite to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com)
mod_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-idempotent, and the description adds context the annotations cannot: changes are queued for human approval in Royally and nothing on the site changes until a person approves. It also discloses the two hard gating conditions (admin toggle, allowlist) that determine whether the call succeeds.

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 the action, then prerequisites, then the approval behavior. The parenthetical site string is boilerplate duplication of site_id but the rest is dense with no wasted clauses.

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 destructive mutation with no output schema, it covers the safety model (approval gate), access gating (toggle + allowlist) and target site. The remaining gap is what a successful enqueue returns and how to enumerate permissible mod 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 coverage is 67%; value and the single-enum site_id are already documented. The description adds real semantics for the otherwise undocumented mod_name (it must pass an allowlist, extendable via filter), but gives no hint on discovering valid mod names or the expected shape per mod, so it only partially compensates.

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 ("Update a single theme customizer setting") and scopes it to one mod, which cleanly separates it from the read-side sibling wp_get_theme_mods. An agent knows exactly what is being mutated.

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?

Explicitly lists the preconditions for use: the "Allow AI to modify theme appearance" admin toggle must be on and the mod name must be on the allowlist, with the royal_mcp_writable_theme_mods filter named as the extension path. It does not name a sibling alternative for reading current values (wp_get_theme_mods), so it stops short of full when-to-use-vs-alternative routing.

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