get_sports
Retrieve available sports categories on Polymarket prediction markets to identify betting opportunities across leagues like NBA, NFL, EPL, and MLB.
Instructions
List available sports on Polymarket (e.g. NBA, NFL, EPL, MLB).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/gamma/sports.ts:10-20 (handler)The handler function for 'get_sports' tool.
async () => { try { const data = await gamma.getSports(); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${(error as Error).message}` }], isError: true, }; } }, - src/tools/gamma/sports.ts:6-9 (registration)Tool registration for 'get_sports'.
server.tool( "get_sports", "List available sports on Polymarket (e.g. NBA, NFL, EPL, MLB).", {}, - src/api/gamma.ts:142-144 (helper)The implementation of 'getSports' in the API client class.
async getSports(): Promise<GammaSport[]> { return this.client.gamma<GammaSport[]>("/sports", undefined, CACHE_TTLS.sports); }