Skip to main content
Glama

wp_update_user

Update an existing WordPress user by changing only specified fields—such as email, name, roles, locale, or password—while leaving other profile data unchanged.

Instructions

Update an existing user (only the given fields change)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "id": "<id>"
    },
    "name": "wp_update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUser ID
urlNoWebsite URL
metaNoRegistered user meta fields (show_in_rest) as key/value
nameNoDisplay name
siteYesSite id (see list_sites)
slugNoURL slug (user_nicename)
emailNoEmail address
rolesNoRoles, e.g. ['editor'] (replaces the current roles)
localeNoLocale, e.g. de_DE ('' = site default); must be an installed language
nicknameNoNickname
passwordNoNew password (write-only, never returned)
last_nameNoLast name
first_nameNoFirst name
descriptionNoBiographical info

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv3.14.0
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "Biographical info",
      +  "type": "string"
      +}
    • addedInput schema / properties / first_name
      Added value: +{
      +  "description": "First name",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / last_name
      Added value: +{
      +  "description": "Last name",
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Locale, e.g. de_DE ('' = site default); must be an installed language",
      +  "type": "string"
      +}
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered user meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • addedInput schema / properties / nickname
      Added value: +{
      +  "description": "Nickname",
      +  "type": "string"
      +}
    • changedInput schema / properties / password / description
      Previous value: -"New password"New value: +"New password (write-only, never returned)"
    • changedInput schema / properties / roles / description
      Previous value: -"Roles"New value: +"Roles, e.g. ['editor'] (replaces the current roles)"
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "URL slug (user_nicename)",
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Website URL",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does contribute one useful fact — that this is a partial update rather than a replace — but says nothing about required capabilities, the fact that roles are replaced wholesale, that passwords are write-only, or what happens on invalid IDs.

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?

A single short sentence with the most important qualifier front-loaded in parentheses; there is no filler. It is efficient but borders on under-specified for a 14-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter mutation tool with a nested meta object, no annotations, and no output schema, one sentence is thin. An agent still lacks auth expectations, error behavior, and any signal about the destructive effect of fields like roles and password.

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?

Schema description coverage is 100%, so every parameter including the nested meta object is already documented in the schema, including the notable "replaces the current roles" note on roles. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

The description names a specific verb and resource ("Update an existing user"), which is enough for an agent to identify the operation. It does not differentiate this tool from the similarly named sibling mcp_update_user or explain why one would pick this WordPress-flavored update over that one.

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

Usage Guidelines2/5

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

The only guidance is the parenthetical "only the given fields change," which describes semantics rather than when to use the tool. There is no mention of when to prefer sibling tools such as mcp_update_user, mcp_update_user_meta, or mcp_change_user_role, and no prerequisites or permission requirements are stated.

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