Skip to main content
Glama

Update a user

update_user

Update a WordPress user's profile, email, password, or roles to adjust their access and permissions. Changing roles redefines what the user can do on the site.

Instructions

Update a user's profile, email, password or roles. Changing roles changes what that person can do — promoting to administrator grants full site control.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe user ID, or "me".
urlNoWebsite URL.
metaNoCustom fields as key/value pairs, for keys registered with show_in_rest.
nameNoDisplay name.
slugNoAuthor archive slug.
emailNoEmail address.
rolesNoReplace the user's roles.
localeNoUser interface locale, e.g. "en_GB".
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
nicknameNoNickname, used by some themes.
passwordNoNew password. This immediately invalidates the user's existing sessions.
last_nameNoFamily name.
first_nameNoGiven name.
descriptionNoLonger descriptive text.
Behavior4/5

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

The description discloses a meaningful side effect beyond the annotations: 'promoting to administrator grants full site control.' This adds real behavioral context about privilege escalation that annotations do not convey. It does not contradict readOnlyHint=false or destructiveHint=false. The password session-invalidation effect lives in the schema, not the description, but the description's added role warning earns a strong score.

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?

Two sentences with no waste. The first states the action and fields; the second flags the security-relevant consequence. The role warning, while peripheral to the mechanics, earns its place because it is high-stakes behavior an agent must weigh before invoking. Well front-loaded.

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?

For a 14-parameter tool with a nested object and no output schema, the description covers the core purpose and the most consequential behavior (role escalation). Since schema coverage is 100%, the description need not enumerate every param. The one gap is how the update is applied (replace vs merge) for fields like roles — 'Replace the user's roles' is in the schema, not the description, but the description remains sufficient for correct invocation.

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 the baseline is 3. The description maps to key params (profile, email, password, roles) but adds no syntax or format detail beyond the schema. The role escalation note touches on the 'roles' param semantics, but the schema already documents each field, so the description adds marginal value.

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 states a clear verb+resource ('Update a user') and enumerates the mutable fields: 'profile, email, password or roles'. It is distinct from the sibling set (get_user/create_user/delete_user) — 'update' unambiguously targets an existing user — though the differentiation relies on conventional naming rather than an explicit contrast.

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

Usage Guidelines3/5

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

Usage context is implied but not stated. The description does not explicitly say 'use this to modify an existing user, use create_user for a new one', nor does it list when not to use it. The role-change warning hints at caution, but no when/when-not alternatives are named. Adequate but leaves routing to convention.

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

Install Server

Other Tools

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/alokemajumder/wpxmcp'

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