Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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,
        };
      }
    },
  • Tool registration for 'get_sports'.
    server.tool(
      "get_sports",
      "List available sports on Polymarket (e.g. NBA, NFL, EPL, MLB).",
      {},
  • The implementation of 'getSports' in the API client class.
    async getSports(): Promise<GammaSport[]> {
      return this.client.gamma<GammaSport[]>("/sports", undefined, CACHE_TTLS.sports);
    }

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/yigitabi5444/yigit_polymarket_mcp'

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