superset_user_get_roles
Retrieve all roles assigned to the current user in Apache Superset to determine access permissions and capabilities.
Instructions
Get roles for the current user
Makes a request to the /api/v1/me/roles/ endpoint to retrieve all roles assigned to the current user.
Returns: A dictionary with user role information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:1485-1498 (handler)The handler function implementing the 'superset_user_get_roles' tool. It is decorated with @mcp.tool() for registration and executes a GET request to the Superset API /api/v1/me/roles/ to retrieve the current user's roles.@mcp.tool() @requires_auth @handle_api_errors async def superset_user_get_roles(ctx: Context) -> Dict[str, Any]: """ Get roles for the current user Makes a request to the /api/v1/me/roles/ endpoint to retrieve all roles assigned to the current user. Returns: A dictionary with user role information """ return await make_api_request(ctx, "get", "/api/v1/me/roles/")