members_get_ban
Retrieve a user's ban entry by guild and user ID to confirm if they are banned and why. Returns the user ID, username, and reason; returns 404 if the user is not banned.
Instructions
Purpose: Look up a single ban entry by user ID.
When to use: - Confirm whether a user is currently banned and why.
Returns: {user_id, username, reason}. Discord returns 404 if not banned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"user_id": "<user_id>"
},
"name": "members_get_ban"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User to look up | |
| guild_id | Yes | Guild to inspect |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||