get_games

Pack: nba · Endpoint: https://gateway.pipeworx.io/nba/mcp

Get NBA games for a season (e.g., 2023, 2024). Returns game date, status, matchup teams, and final or live scores.

Parameters

NameTypeRequiredDescription
seasonnumberyesSeason start year (e.g., 2024 for the 2024-25 season)
limitnumbernoNumber of results to return (default: 25, max: 100)

Example call

Arguments

{
  "season": 2024
}

curl

curl -X POST https://gateway.pipeworx.io/nba/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_games","arguments":{"season":2024}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_games', {
  "season": 2024
});

More examples

{
  "season": 2023,
  "limit": 50
}

Response shape

Always returns: season, total, returned, games

FieldTypeDescription
seasonnumberSeason start year
totalnumberTotal games in season
returnednumberNumber of games returned in this response
gamesarrayList of games
Full JSON Schema
{
  "type": "object",
  "properties": {
    "season": {
      "type": "number",
      "description": "Season start year"
    },
    "total": {
      "type": "number",
      "description": "Total games in season"
    },
    "returned": {
      "type": "number",
      "description": "Number of games returned in this response"
    },
    "games": {
      "type": "array",
      "description": "List of games",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Game ID"
          },
          "date": {
            "type": "string",
            "description": "Game date"
          },
          "season": {
            "type": "number",
            "description": "Season year"
          },
          "status": {
            "type": "string",
            "description": "Game status (Final, In Progress, etc.)"
          },
          "period": {
            "type": [
              "number",
              "null"
            ],
            "description": "Current period/quarter"
          },
          "time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Game time"
          },
          "postseason": {
            "type": "boolean",
            "description": "Whether game is in postseason"
          },
          "home_team": {
            "type": "string",
            "description": "Home team full name"
          },
          "home_score": {
            "type": "number",
            "description": "Home team score"
          },
          "visitor_team": {
            "type": "string",
            "description": "Visiting team full name"
          },
          "visitor_score": {
            "type": "number",
            "description": "Visiting team score"
          }
        }
      }
    }
  },
  "required": [
    "season",
    "total",
    "returned",
    "games"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "nba": {
      "url": "https://gateway.pipeworx.io/nba/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026