get_server_topology
Inspect live Discord channels, categories, roles with delegation-safety flags, custom emojis, and bot permission health.
Overview
Fetches real-time structural metadata for a Discord server directly from Discord REST API v10 using the Taicket bot token.
Annotates every role with delegation-safety status (isSafeForDelegation) so AI clients avoid recommending @everyone, managed bot roles, roles above Taicket highest role, or roles with dangerous administrative permissions.
Permissions
- Required Scopes
- mcp:read
- Discord Role Access
- Real Admin, active Temp Admin, or module-delegated staff role on the target server.
- Server-Side Guard
- getGuildPermissionProfile.hasAnyAccess + allowedGuildIds
- Subscription Tier
- Available on Free, Pro, and Enterprise.
Input Schema
JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.
{
"type": "object",
"properties": {
"guildId": {
"type": "string",
"pattern": "^\\d{17,22}$",
"description": "Discord server (guild) snowflake ID."
},
"includeEmojis": {
"type": "boolean",
"default": false,
"description": "Include custom guild emojis in the topology snapshot."
},
"includePermissionAudit": {
"type": "boolean",
"default": true,
"description": "Check Taicket bot role position and critical Discord permissions."
}
},
"required": [
"guildId"
],
"additionalProperties": false
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| guildId | string | Required | Discord server (guild) snowflake ID. |
| includeEmojis | boolean | Optional (false) | Include custom guild emojis in the topology snapshot. |
| includePermissionAudit | boolean | Optional (true) | Check Taicket bot role position and critical Discord permissions. |
Example
Retrieve channels, categories, roles, and bot permission health for a server.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_server_topology",
"arguments": {
"guildId": "1200000000000000000",
"includeEmojis": false,
"includePermissionAudit": true
}
}
}Response
Live channels, categories, annotated roles, and bot permission audit.
{
"guildId": "1200000000000000000",
"categories": [
{
"id": "1200000000000000001",
"name": "Support Tickets",
"position": 2
}
],
"channels": [
{
"id": "1200000000000000010",
"name": "open-a-ticket",
"type": 0,
"parentId": "1200000000000000001"
}
],
"roles": [
{
"id": "1300000000000000001",
"name": "Support Team",
"position": 8,
"isSafeForDelegation": true
},
{
"id": "1300000000000000002",
"name": "Administrator",
"position": 15,
"isSafeForDelegation": false,
"unsafeReason": "DANGEROUS_PERMISSIONS"
}
],
"botHealth": {
"highestRolePosition": 14,
"hasAdministrator": true,
"missingRecommendedPermissions": []
}
}Errors
| Error Code | Condition | Resolution |
|---|---|---|
| UNAUTHORIZED | Missing, expired, or revoked Bearer access token or scoped Personal Access Token. | Re-authenticate through OAuth 2.1 or create a fresh token in https://mcp.taicket.xyz/account. |
| FORBIDDEN | Token lacks the required OAuth scope, the guild is outside allowedGuildIds, or caller lacks live Discord RBAC permissions. | Grant the required scope during consent or confirm your Discord server role permissions. |
| RATE_LIMITED | Caller exceeded the per-user sliding-window request limit. | Wait for the Retry-After window before issuing another request. |
| VALIDATION_ERROR | Input arguments failed Zod schema validation or contained invalid Discord snowflakes. | Inspect the parameter schema and supply valid Discord snowflake IDs and field types. |
| CROSS_GUILD_RESOURCE | A referenced channel, category, or role does not belong to the specified guildId. | Call get_server_topology for the target server and reference only resources returned for that guild. |
| DISCORD_API_ERROR | Discord REST API returned an error or the Taicket bot is not in the target server. | Confirm Taicket is installed in the server via get_discord_servers and retry. |
Behavior
- Queries live Discord API v10 so channel and role IDs are verified before mutations.
- Evaluates every role using the exact same isRoleSafeForDelegation rules applied across Verification, Greeting, Leveling, Economy, Reaction Roles, and Component Builder.
- Does not return private message content, member email addresses, or Discord audit log entries.
Related Tools