Get a user
get_userFetch a WordPress user by ID, or use "me" for the authenticated account, to return their roles and notable capabilities.
Instructions
Fetch one user by ID, or the authenticated user with id: "me". Includes roles and a summary of notable capabilities when permitted.
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": "get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user ID, or "me" for the account this server authenticates as. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |