Skip to main content
Glama

Change site settings

wp_update_site_settings
Destructive

Update WordPress site title, tagline, admin email, timezone, and posts per page settings; fields you omit keep their current values.

Instructions

Update the common site settings title, tagline, admin email, timezone and posts per page; fields left out keep their values (wp_get_site_settings reads them). An admin_email that is not a valid address is ignored. Each field is read back: changed lists the fields that took (a value already set counts), adjusted what a filter stored in place of the value sent, failed what did not take. When every field written failed, the call is an error naming that only. undo is the token of an undo point for wp_undo, or null when none could be kept; the writes happen either way. Needs manage_options.

Input Schema

NameRequiredDescriptionDefault
titleNoSite title (option blogname).
taglineNoSite tagline (option blogdescription); an empty string clears it.
timezoneNoPHP timezone identifier stored in timezone_string, e.g. Europe/Zurich. A value WordPress rejects does not take: listed under failed when other fields stored, otherwise the call is an error.
admin_emailNoAdministration email address (option admin_email). Ignored unless it is a valid address.
posts_per_pageNoPosts per page on blog pages (Settings › Reading).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.10.0

TDQS

A4.6/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 behavior that isn't in them: invalid admin_email silently ignored, per-field outcome buckets (changed/adjusted/failed), whole-call error only when every write fails, and an undo token that may be null while the writes still land. That is exactly the mutation context an agent needs before calling.

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 operation and its fields, then the outcome contract, then the undo caveat, then the permission gate — no filler sentences. The clause 'the call is an error naming that only' is compressed to the point of being slightly awkward, which keeps it off a 5.

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?

With no output schema, the description carries the return burden itself and does so: changed/adjusted/failed buckets and the undo token are all defined. Combined with the permission requirement and the all-fail error condition, an agent can call this correctly without further inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description still adds semantics the schema doesn't: omitted fields are preserved, an invalid email is dropped rather than erroring, and timezone rejection surfaces per-field. It doesn't add format examples beyond the schema's own Europe/Zurich note.

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?

Specific verb (update) plus resource (common site settings) and an enumeration of the fields in scope. It explicitly names the counterpart reader wp_get_site_settings, so an agent can separate read from write without opening either 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?

Partial-update semantics are spelled out ('fields left out keep their values') and the read alternative is named, plus the manage_options prerequisite. It doesn't state exclusions (e.g. when to use wp_update_user or wp_seo_set instead), so it stops short of a full routing rule.

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