Health and performance · stop 13 of 13
list_roles
Lists database roles, or one role's memberships and privileges.
Works in read modeTool sets: full
You might ask
“What can the reporting role access?”
Your assistant may call list_roles to answer.
How it works
- Without
role, lists every role and its attributes. With it, shows that role's memberships and table privileges.
Parameters
rolestring- Specific role name to inspect memberships/privileges for. Omit to list all roles.
What your assistant reads
The description nexql-mcp sends with the tool. It's how the assistant decides when to use it.
List PostgreSQL roles (attributes). Pass role to get memberships and table privileges for one role.