Skip to main content
Glama

wp_list_users

Retrieves WordPress users for a specified site and filters results by role, capability, author status, search term, slug, or user ID, with sorting and pagination controls.

Instructions

List WordPress users

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>"
    },
    "name": "wp_list_users"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNo'authors' = only users considered authors
pageNoPage number
siteYesSite id (see list_sites)
slugNoLimit to these slugs
orderNoSort directionasc
rolesNoLimit to users with at least one of these roles
offsetNoSkip this many users (overrides page)
searchNoSearch term
excludeNoExclude these user IDs
includeNoLimit to these user IDs
orderbyNoSort fieldname
per_pageNoUsers per page (max 100)
capabilitiesNoLimit to users with at least one of these capabilities
search_columnsNoColumns to search
has_published_postsNotrue = only users with published posts, or a list of post types

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv3.14.0
    • addedInput schema / properties / capabilities
      Added value: +{
      +  "description": "Limit to users with at least one of these capabilities",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Exclude these user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / has_published_posts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "true = only users with published posts, or a list of post types"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Limit to these user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many users (overrides page)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / order
      Added value: +{
      +  "default": "asc",
      +  "description": "Sort direction",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / orderby
      Added value: +{
      +  "default": "name",
      +  "description": "Sort field",
      +  "enum": [
      +    "id",
      +    "include",
      +    "name",
      +    "registered_date",
      +    "slug",
      +    "include_slugs",
      +    "email",
      +    "url"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / roles / description
      Previous value: -"Filter by role(s), comma-separated"New value: +"Limit to users with at least one of these roles"
    • addedInput schema / properties / roles / items
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / roles / type
      Previous value: -"string"New value: +"array"
    • changedInput schema / properties / search / description
      Previous value: -"Search by name or email"New value: +"Search term"
    • addedInput schema / properties / search_columns
      Added value: +{
      +  "description": "Columns to search",
      +  "items": {
      +    "enum": [
      +      "email",
      +      "name",
      +      "id",
      +      "username",
      +      "slug"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Limit to these slugs",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / who
      Added value: +{
      +  "description": "'authors' = only users considered authors",
      +  "enum": [
      +    "authors"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and delivers almost nothing: it does not state that this is a read-only operation, what permissions are required to enumerate users, or that returned records may contain sensitive fields such as email addresses. Pagination mechanics are only visible in the schema (per_page default 20, max 100), not explained in the description.

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

Conciseness3/5

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

The description is three words with zero waste and is trivially front-loaded, but that brevity reflects under-specification rather than disciplined editing. Nothing is structured to help the agent decide when or how to call it.

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 15-parameter tool with no annotations and no output schema, a bare three-word phrase leaves too much unstated, particularly around permissions, return shape, and what the many filters are meant to accomplish together. The rich schema partially compensates for parameter questions but not for behavioral ones.

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%, with all 15 parameters — filters like roles, capabilities, search_columns, and has_published_posts — documented inline, so the baseline of 3 applies. The description adds no meaning beyond the schema, such as how include/orderby interact or the effect of offset overriding page.

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 specific verb and resource ("List WordPress users"), which is enough for an agent to know this returns user records rather than posts, terms, or sites. It offers no differentiation from the closely named sibling mcp_list_users, so an agent cannot tell from the text alone which one to prefer.

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 when-to-use guidance, no prerequisites, and no reference to alternatives such as mcp_list_users or mcp_list_roles for role-oriented queries. The agent must infer everything about applicability from the name and schema alone.

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