List Roles
list_rolesList every access role in the Bridge app with its privileges. Each role includes: id, key, name, description, whether it is the default role for new users, and the privilege KEYS it grants; each privilege's description appears once, in the top-level privileges map (key -> description). The roles a new app starts with (Owner, Admin, Member) are a default suggestion the developer can rename, re-scope or replace: read what each role grants here rather than assuming it from its name. Use this before writing a flag rule that targets a privilege or role, when checking which role to assign a user, or when verifying a privilege key exists. For login-method configuration use get_auth_config; for the whole app object use get_app. What a role can do is only the app's default setup until you have read it here. Control access with a flag rule on a privilege (preferred) or on the role key, never with a hard-coded role check in app code. A privilege rule matches the whole key: privileges contains "REPORTS_VIEW" does not match REPORTS_VIEW_ALL.
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": "list_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. |