Get Role Capabilities
Returns the capabilities assigned to a specific role, given the role slug. Read-only. See mosmcp/list-roles for valid slugs.
| Property | Value |
|---|---|
| Ability slug | mosmcp/get-role-capabilities |
| Wire tool name | mosmcp__get-role-capabilities |
| 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 |
|---|---|---|---|---|
| role | string | Yes | — | The role slug to look up (required). |
Output schema
| Field | Type | Required |
|---|---|---|
| role | string | Yes |
| capabilities | string[] | Yes |
Example
Sample prompt
What exactly can the Author role do on my site?
Example request (json)
{
"jsonrpc": "2.0",
"id": 179,
"method": "tools/call",
"params": {
"name": "mosmcp__get-role-capabilities",
"arguments": {
"input": {
"role": "author"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 179,
"result": {
"isError": false,
"structuredContent": {
"role": "author",
"capabilities": [
"upload_files",
"edit_posts",
"edit_published_posts",
"publish_posts",
"delete_posts",
"read"
]
}
}
}
Edge cases / errors
- role not registered → mosmcp_invalid_role error ("That role does not exist.").
- Only granted (true) capabilities are returned; role is normalised to its lowercase slug.
| << Previous | Next >> |
|---|---|
| Get Editable Roles | Get User by Email |
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.