list_members
Lists Discord server members and their roles, optionally filtered by role. Enable the Server Members Intent in the Developer Portal so the bot can return member data.
Instructions
List server members with their roles. Needs the Server Members Intent enabled for the bot in the Developer Portal (Bot tab).
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_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| role | No | Only members with this role | |
| limit | No | ||
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |