get_playoff_bracket
Retrieve the current NHL playoff bracket with series matchups, results, and standings to track postseason progress and outcomes.
Instructions
Get current playoff bracket with series information, matchups, and results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| season | No | Season year (e.g., 2024), defaults to current season |
Implementation Reference
- src/nhl-api.ts:220-223 (handler)Core handler function that fetches the NHL playoff bracket data from the official API endpoint using the provided season or current year.async getPlayoffBracket(season?: string): Promise<any> { const year = season || new Date().getFullYear().toString(); return this.fetchJSON(`${NHL_API_BASE}/playoff-bracket/${year}`); }
- src/index.ts:143-155 (registration)Tool registration in the MCP server's TOOLS array, defining name, description, and input schema.{ name: 'get_playoff_bracket', description: 'Get current playoff bracket with series information, matchups, and results.', inputSchema: { type: 'object', properties: { season: { type: 'string', description: 'Season year (e.g., 2024), defaults to current season', }, }, }, },
- src/index.ts:568-573 (handler)MCP server request handler that receives tool call parameters, invokes the NHLAPIClient.getPlayoffBracket method, and formats the response as JSON text.case 'get_playoff_bracket': { const bracket = await client.getPlayoffBracket(parameters.season as string | undefined); return { content: [{ type: 'text', text: JSON.stringify(bracket, null, 2) }], }; }
- src/index.ts:146-154 (schema)Input schema defining the optional 'season' parameter for the tool.inputSchema: { type: 'object', properties: { season: { type: 'string', description: 'Season year (e.g., 2024), defaults to current season', }, }, },