Skip to main content
Glama

get_global_emotes

Retrieve the list of global emotes available on Twitch for use in chat and content creation.

Instructions

グローバルエモートのリストを取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_global_emotes' tool. Fetches global emotes using the Twitch API client and formats the response with emote ID, name, and image URLs at 1x, 2x, and 4x scales.
    export async function handleGetGlobalEmotes(apiClient: ApiClient) { const emotes = await apiClient.chat.getGlobalEmotes(); return formatResponse( emotes.map(emote => ({ id: emote.id, name: emote.name, urls: { url1x: emote.getImageUrl(1), url2x: emote.getImageUrl(2), url4x: emote.getImageUrl(4), }, })) ); }
  • Tool definition including the schema for 'get_global_emotes', which has no required input parameters.
    { name: 'get_global_emotes', description: 'グローバルエモートのリストを取得します', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:125-126 (registration)
    Registers and dispatches the 'get_global_emotes' tool handler in the MCP CallToolRequestSchema switch statement.
    case 'get_global_emotes': return await handleGetGlobalEmotes(this.apiClient);
  • src/index.ts:77-79 (registration)
    Registers the tool list including 'get_global_emotes' via toolDefinitions for ListToolsRequestSchema.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: toolDefinitions, }));
  • src/index.ts:19-19 (registration)
    Imports the handler function for 'get_global_emotes'.
    import { handleGetGlobalEmotes, handleGetGlobalBadges } from './tools/handlers/chat.js';

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/mtane0412/twitch-mcp-server'

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