Skip to main content
Glama

wp_set_setting

Update a single WordPress site setting (title, description, timezone, posts per page, homepage) with dry-run preview and verified writes.

Instructions

Change ONE site setting (see wp_get_settings for the current values).

key must be one of: title, description, timezone (e.g. 'America/Denver'), posts_per_page (int), show_on_front ('posts' or 'page'), page_on_front (page id), page_for_posts (page id). Any other key is refused - the site URL and admin email are not editable here by design. page_on_front is NOT checked against the site's pages: a wrong id blanks the homepage, so read it back with wp_get_settings and look at the site. DEFAULTS TO dry_run=true (returns a preview; writes nothing). Pass dry_run=false to apply - the write is verified against what the site reports back, and the result carries the site's ACTUAL stored value next to what you requested (WordPress escapes text as it stores it, so a title with '&' or an apostrophe comes back encoded - that is the site behaving normally). Requires the REST transport and an administrator app password. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
valueYes
dry_runNo
installYes
allow_prodNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Discloses important behaviors: dry_run defaults to true, value verification against actual stored value, and the encoding of special characters. No annotations are present, so the description carries the full burden and handles it well.

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?

The description is dense but well-organized, using line breaks and backticks for clarity. Each sentence adds meaningful information without redundancy.

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?

Covers the essential edge cases (dry-run, production safety, encoding, invalid keys) and the write verification behavior. No output schema is provided, but the description hints at the response shape by mentioning the actual stored value is returned.

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?

The description explains the semantics of key, value, dry_run, and allow_prod in detail. However, the 'install' parameter is never mentioned in the description, leaving a gap for that required parameter.

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?

Clearly states it changes one site setting, distinguishing from wp_get_settings. The specific verb 'Change' is appropriate and the resource is clear.

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 describes accepted keys, the dry_run default behavior, and the allow_prod requirement for production writes. Sibling tools like wp_get_settings are implied context, though not directly named as alternatives.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ad02/wp-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server