Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

get_sampling_simplified_markets

Retrieve a simplified overview of sampled Polymarket prediction markets to quickly analyze current events and market signals without authentication.

Instructions

Get simplified view of currently sampled Polymarket markets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool registration and handler for 'get_sampling_simplified_markets'
    server.tool(
      "get_sampling_simplified_markets",
      "Get simplified view of currently sampled Polymarket markets.",
      {},
      async () => {
        try {
          const data = await clob.getSamplingSimplifiedMarkets();
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          return {
            content: [{ type: "text", text: `Error: ${(error as Error).message}` }],
            isError: true,
          };
        }
      },
    );
  • Actual implementation of 'getSamplingSimplifiedMarkets' in the API client class.
    async getSamplingSimplifiedMarkets(): Promise<ClobMarket[]> {
      return this.client.clob<ClobMarket[]>(
        "/sampling-simplified-markets",
        undefined,
        CACHE_TTLS.samplingMarkets,
      );
    }

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