wp_get_user
Retrieve a single WordPress user by ID to fetch account details; target a specific site when managing multiple WordPress installations.
Instructions
Retrieves a single user by their ID.
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": {
"id": "<id>"
},
"name": "wp_get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier for the user. | |
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |