Get User's Email Address


Returns only the email address for one user, given their user ID (a narrow, PII-gated read, separate from the fuller mosmcp/get-user-by-id profile). Read-only.

Property Value
Ability slug mosmcp/get-user-email
Wire tool name mosmcp__get-user-email
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

Field Type Required Default Description
id integer (min 1) Yes — The user ID to look up (required).

 

Output schema

Field Type Required
id integer Yes
email string Yes

 

Example

Sample prompt
What's the email address for user #42?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 187,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__get-user-email",
    "arguments": {
      "input": {
        "id": 42
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 187,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 42,
      "email": "jane@example.com"
    }
  }
}

 

Edge cases / errors

  • No user with that id → mosmcp_user_not_found error.
  • Returns only the email; use mosmcp/get-user-by-id for the full profile.

 


<< Previous Next >>
Get User's Avatar URL Get User's Post Count

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.