get_next_events

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

Get the next 15 upcoming events/matches for a team. Returns event name, date, home team, away team, and league.

Parameters

NameTypeRequiredDescription
team_idstringyesTheSportsDB team ID (e.g., “133604” for Arsenal)

Example call

Arguments

{
  "team_id": "133604"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_next_events', {
  "team_id": "133604"
});

More examples

{
  "team_id": "133602"
}

Response shape

Always returns: team_id, total, events

FieldTypeDescription
team_idstringTheSportsDB team ID
totalintegerTotal number of upcoming events
eventsarrayNext 15 upcoming events/matches for the team
Full JSON Schema
{
  "type": "object",
  "properties": {
    "team_id": {
      "type": "string",
      "description": "TheSportsDB team ID"
    },
    "total": {
      "type": "integer",
      "description": "Total number of upcoming events"
    },
    "events": {
      "type": "array",
      "description": "Next 15 upcoming events/matches for the team",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Event ID"
          },
          "name": {
            "type": "string",
            "description": "Event name"
          },
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Event date"
          },
          "home_team": {
            "type": [
              "string",
              "null"
            ],
            "description": "Home team name"
          },
          "away_team": {
            "type": [
              "string",
              "null"
            ],
            "description": "Away team name"
          },
          "league": {
            "type": [
              "string",
              "null"
            ],
            "description": "League name"
          }
        },
        "required": [
          "id",
          "name"
        ]
      }
    }
  },
  "required": [
    "team_id",
    "total",
    "events"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026