List or search members
list_membersLists Discord server members with IDs, roles, and join dates; search username or nickname prefixes or filter by role to page through and find members.
Instructions
Lists server members with IDs, roles and join date. With "query", searches usernames and nicknames that start with the text (no special intent needed). Without a query it pages through all members, which needs the Server Members intent. "role" keeps only members with that role. Use get_member for one member.
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 |
|---|---|---|---|
| role | No | Only members with this role (ID, mention or name). | |
| guild | No | Server ID or name. Optional if DISCORD_GUILD_ID is set or the bot is in one server. | |
| limit | No | Max items to return (1-100, default 50). | |
| query | No | Username or nickname prefix to search for. | |
| cursor | No | The next_cursor value from a previous call. |