List roles
pg_list_rolesLists database roles with login, superuser, createdb, createrole attributes and inherited memberships to answer who has access to a database.
Instructions
List database roles (users and groups) with their login/superuser/createdb/createrole attributes and inherited role memberships. Use this to answer 'who has access to this database?' without needing to read pg_authid directly.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pg_list_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeSystem | No | If true, include built-in `pg_*` roles (pg_read_all_data, pg_monitor, etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes |