Skip to main content
Glama

wp_update_user

Change a WordPress user's editable fields (name, email, roles, password, URL, description) with a dry-run preview, then apply only when confirmed.

Instructions

Change an existing user's fields.

fields is an object; the editable keys are name, email, roles, password, url, description - ANY OTHER KEY IS REFUSED (WordPress silently ignores unknown fields, which would report a change that never happened). username is not editable. Setting roles REPLACES the user's roles, so passing ['subscriber'] on an administrator demotes them. A password here is a real password reset: the user's old password stops working immediately, and the new one is masked in the preview exactly as in wp_create_user. An empty fields is refused rather than reported as a successful no-op. DEFAULTS TO dry_run=true (returns a preview; writes nothing). Pass dry_run=false to apply. Requires the REST transport and an administrator app password. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYes
dry_runNo
installYes
user_idYes
allow_prodNo

Schema Changelog

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

  1. First observedv1.4.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden and does well: it discloses side effects (role replacement, password invalidation), refusal of unknown or empty fields, and dry-run vs. apply behavior. This gives the agent an accurate model of what will happen.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence adds critical operational detail. There is no redundant or irrelevant content, and the information is well-structured.

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?

The description covers behavioral expectations, defaults, permissions, and production safeguards. It does not describe the return value or error conditions, but since there is no output schema, some output guidance would have been helpful for full completeness.

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?

The schema has zero descriptions, but the tool description compensates for fields, dry_run, and allow_prod. install and user_id are not explicitly explained, though their names are strongly self-explanatory and user_id is clearly the target user. Overall, key parameters are sufficiently covered.

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?

The description clearly states the tool changes an existing user's fields, which distinguishes it from create/delete/list user sibling tools. The verb and target resource are unambiguous.

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?

It provides concrete usage constraints: field allowlist, username non-editable, roles replacement, password reset behavior, empty-fields refusal, dry_run default, and allow_prod requirement for production writes. It does not explicitly contrast with wp_create_user, but the intent is clear from the wording.

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