Skip to main content
Glama
argotdev

NHL MCP Server

by argotdev

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
NameRequiredDescriptionDefault
seasonNoSeason year (e.g., 2024), defaults to current season

Implementation Reference

  • 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', }, }, }, },
  • 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) }], }; }
  • 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', }, }, },

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/argotdev/nhl-mcp-ts'

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