Count Users
Returns the total number of registered users on this site. Read-only. For a per-role breakdown use mosmcp/count-users-by-role.
| Property | Value |
|---|---|
| Ability slug | mosmcp/count-users |
| Wire tool name | mosmcp__count-users |
| Category | Users & Roles (mosmcp-users) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | list_users |
| Minimum default role | Administrator (Shop manager too when WooCommerce is active) |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
Takes no input. Send "input": {} (or omit input).
Output schema
| Field | Type | Required |
|---|---|---|
| total | integer | Yes |
Example
Sample prompt
How many registered users does my site have?
Example request (json)
{
"jsonrpc": "2.0",
"id": 173,
"method": "tools/call",
"params": {
"name": "mosmcp__count-users",
"arguments": {
"input": {}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 173,
"result": {
"isError": false,
"structuredContent": {
"total": 1284
}
}
}
Edge cases / errors
- Takes no input; any extra properties are rejected by the schema.
- Counts every account regardless of role; use mosmcp/count-users-by-role for a single role.
| << Previous | Next >> |
|---|---|
| Check Username Availability | Count Users by Role |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.