Skip to main content
Glama

Update WordPress

wp_update_core
Destructive

Update WordPress core site-wide to the first version offered by WordPress's core updater. A preview with a confirm_token is returned first so nothing changes until you confirm.

Instructions

Update WordPress core itself (not plugins or themes) to the first version WordPress offers, with WordPress's own core updater; it checks for offers first, and wp_get_update_status shows them. Already current: updated false with a message; otherwise updated true and new_version, or the updater's error. Needs update_core; refused when DISALLOW_FILE_MODS is set. Replaces core files site-wide. Unlike wp_update_plugin, AlphaBridge runs no test requests and puts nothing back; no undo point is recorded. Runs in two steps: a call without confirm_token changes nothing and returns a preview with a confirm_token, and the same call with that token runs it. This guards against a call nobody meant; it does not make the change reversible.

Input Schema

NameRequiredDescriptionDefault
confirm_tokenNoConfirmation from the preview: a call without it changes nothing and answers with a preview and a confirm_token, and the same arguments with that token run the tool. A token is valid for 10 minutes and only while what it covers is unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.10.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=false, but the description adds materially: core files are replaced site-wide, there is no undo point and no test request, and the confirm token guards intent but not reversibility. It also enumerates the three response shapes (already current, success with new_version, updater error). Slightly short of 5 only because it doesn't describe partial-failure or per-file behavior after a mid-run failure.

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?

Purpose is front-loaded in the first clause, followed by preconditions, side effects, and the call protocol in a sensible order, with zero filler sentences. It is dense — the confirm-token flow is stated twice in close succession — but nothing is expendable given the risk profile.

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?

There is no output schema, and the description compensates fully by describing return values, the already-current case, and error propagation. Combined with capability requirements, DISALLOW_FILE_MODS refusal, and irreversible site-wide file replacement, an agent has everything needed to decide and to call correctly.

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% for the single confirm_token parameter, so the schema carries the syntax burden. The description still adds behavioral meaning beyond it: the token must come from a prior preview call, and the same arguments with that token are what executes the action — reinforcing the two-step contract in the tool's own voice.

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?

Names a specific verb and resource ('Update WordPress core itself') and immediately excludes siblings with '(not plugins or themes)'. It further anchors scope by naming wp_get_update_status as the place offers come from, so an agent can distinguish this from wp_update_plugin/wp_update_theme without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the prerequisite capability (update_core), the blocking condition (DISALLOW_FILE_MODS), and the informational alternative (wp_get_update_status shows offers). The mandatory preview-then-confirm invocation sequence is spelled out, so the agent knows exactly how to call it rather than guessing.

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