Skip to main content
Glama

get_user_info

Fetch detailed information about a specific Discord user by providing their user ID to retrieve profile data and account details.

Instructions

Fetch information about a specific Discord user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes

Implementation Reference

  • The main handler function that fetches a Discord user by ID and returns formatted information including username, display name, ID, bot status, account creation date, and avatar URL.
    @staticmethod async def handle_get_user_info(discord_client, arguments: Dict[str, Any]) -> List[TextContent]: """Get user information""" user = await discord_client.fetch_user(int(arguments["user_id"])) info = f""" **User Information for {user.display_name}** **Basic Info:** - Username: {user.name} - Display Name: {user.display_name} - ID: {user.id} - Bot: {"Yes" if user.bot else "No"} - Account Created: {user.created_at.strftime('%Y-%m-%d %H:%M:%S')} **Avatar:** {user.display_avatar.url if user.display_avatar else "No avatar"} """.strip() return [TextContent(type="text", text=info)]
  • Registers the 'get_user_info' tool in the MCP server, defining its name, description, and input schema which requires a 'user_id' string.
    Tool( name="get_user_info", description="Get detailed information about a Discord user", inputSchema={ "type": "object", "properties": { "user_id": { "type": "string", "description": "Discord user ID" } }, "required": ["user_id"] } ),
  • Defines the input schema for the 'get_user_info' tool, specifying that it requires a single 'user_id' parameter of type string.
    Tool( name="get_user_info", description="Get detailed information about a Discord user", inputSchema={ "type": "object", "properties": { "user_id": { "type": "string", "description": "Discord user ID" } }, "required": ["user_id"] } ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wowjinxy/mcp-discord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server