Inicio - Documentación - POM AI - 23 MCP - Prompt recipes - Recipe: change an allowed POM Theme setting

Recipe: change an allowed POM Theme setting

Most POM Theme settings are readable but not writable through MCP by default. This recipe starts with the live schema and treats a denied field as a terminal result.

Read pom://theme/settings-schema, then call pom_theme_list_settings_schema for
[SETTING GROUP]. Read the current value of [FIELD]. Explain its type, allowed
choices, dependencies, and site-wide effect. Prepare only the requested value
and call pom_theme_update_setting with dry_run true. Show whether the field is
on the MCP write allowlist. If denied, stop and report the supported admin
path; do not try wp_update_option or theme mods. If allowed, wait for my
confirmation, apply it once, read it back, and identify the public views to
check.

The default allowlist includes the documented post archive sidebar layout and post single layout fields, plus supported dynamic template-assignment fields. A server can deliberately extend the allowlist, so the dry run is authoritative for the connected site.

Theme-wide changes require desktop, mobile, populated, and empty-state review. Clear POM Cache only after confirming that the saved value is correct.

Related guides: settings schema pointer, update setting tool, and header-style limitation.