Skip to main content
Glama

mcp_create_user

Creates a new WordPress user with role, email, and optional password, returning the user ID and username while keeping the password private.

Instructions

Create a new WordPress user. Returns { id, username, created }; the password is never echoed.

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>",
      "username": "<username>",
      "email": "<email>"
    },
    "name": "mcp_create_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRole slug (default subscriber)
siteYesSite id (see list_sites)
emailYesEmail address
passwordNoWrite-only password, never echoed (a strong one is generated if omitted). The endpoint sanitizes it as text: tags, %XX sequences and surrounding whitespace are stripped, so avoid them.
usernameYesLogin username
last_nameNoLast name
first_nameNoFirst name
send_notificationNoSend the new-user email with a set-password link (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.14.0
    • addedInput schema / properties / email / format
      Added value: +"email"
    • changedInput schema / properties / password / description
      Previous value: -"Password (auto-generated if omitted)"New value: +"Write-only password, never echoed (a strong one is generated if omitted). The endpoint sanitizes it as text: tags, %XX sequences and surrounding whitespace are stripped, so avoid them."
    • removedInput schema / properties / role / default
      Removed value: -"subscriber"
    • changedInput schema / properties / role / description
      Previous value: -"User role"New value: +"Role slug (default subscriber)"
    • removedInput schema / properties / send_notification / default
      Removed value: -true
    • changedInput schema / properties / send_notification / description
      Previous value: -"Send welcome email"New value: +"Send the new-user email with a set-password link (default true)"
  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: -[
      -  "username",
      -  "email"
      -]New value: +[
      +  "site",
      +  "username",
      +  "email"
      +]
  3. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the return shape and the security-relevant fact that the password is never echoed, but says nothing about failure modes (duplicate username/email), permission requirements, or that a notification email is sent as a side effect.

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?

Two short sentences, front-loaded with the action and followed by the return contract. There is no redundant or filler wording, and the password-handling note is worth its space.

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

Completeness3/5

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

The tool is a mutation with no annotations and no output schema, so the description is the only place behavioral context can live. It covers the return shape and password handling but omits conflict/error behavior, permission needs, and the email side effect that a caller of an 8-parameter creation tool would want to know.

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 is already documented in the schema, including the password sanitization caveat and the send_notification default. The description adds no parameter meaning beyond the schema, so the baseline of 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 ("Create a new WordPress user"), which is unambiguous on its own. It does not differentiate the tool from the sibling wp_create_user, so an agent still has to guess which user-creation endpoint to pick.

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?

There is no guidance on when to use this tool versus wp_create_user, mcp_update_user, or the role-change tool, and no stated prerequisites such as required capabilities. Usage must be inferred entirely from the name and description.

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