get_scores

Pack: odds-api · Endpoint: https://gateway.pipeworx.io/odds-api/mcp

Live + recent final scores. Costs 2 requests per call.

Parameters

NameTypeRequiredDescription
sport_keystringyes
days_fromnumberno1-3 days from now (default 1)

Example call

Arguments

{
  "sport_key": "americanfootball_nfl"
}

curl

curl -X POST https://gateway.pipeworx.io/odds-api/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_scores","arguments":{"sport_key":"americanfootball_nfl"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_scores', {
  "sport_key": "americanfootball_nfl"
});

More examples

{
  "sport_key": "basketball_nba",
  "days_from": 3
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarray
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Event ID"
          },
          "sport_key": {
            "type": "string",
            "description": "Sport key"
          },
          "sport_title": {
            "type": "string",
            "description": "Sport title"
          },
          "commence_time": {
            "type": "string",
            "description": "Event start time"
          },
          "completed": {
            "type": "boolean",
            "description": "Whether event has completed"
          },
          "home_team": {
            "type": "string",
            "description": "Home team name"
          },
          "away_team": {
            "type": "string",
            "description": "Away team name"
          },
          "scores": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Team name"
                },
                "score": {
                  "type": "number",
                  "description": "Team score"
                }
              }
            }
          },
          "last_update": {
            "type": "string",
            "description": "Last score update time"
          }
        }
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

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

{
  "mcpServers": {
    "odds-api": {
      "url": "https://gateway.pipeworx.io/odds-api/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026