get_game
Retrieve detailed information about a specific Twitch game by providing its name. This tool accesses the Twitch API to fetch game data for analysis or integration purposes.
Instructions
特定のゲームの情報を取得します
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": {
"name": "<name>"
},
"name": "get_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ゲーム名 |
Implementation Reference
- src/tools/handlers/game.ts:17-28 (handler)Handler function that implements the get_game tool by fetching game details from Twitch API using the game name.
export async function handleGetGame(apiClient: ApiClient, args: { name: string }) { const game = await apiClient.games.getGameByName(args.name); if (!game) { throw new McpError(ErrorCode.InvalidParams, `Game "${args.name}" not found`); } return formatResponse({ id: game.id, name: game.name, boxArtUrl: game.boxArtUrl, }); } - src/tools/definitions.ts:47-60 (schema)Tool schema definition for get_game, specifying input as object with required 'name' string.
{ name: 'get_game', description: '特定のゲームの情報を取得します', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'ゲーム名', }, }, required: ['name'], }, }, - src/index.ts:101-104 (registration)Registration of the get_game tool handler in the switch statement for CallToolRequest.
case 'get_game': return await handleGetGame(this.apiClient, { name: args.name as string });