Skip to main content
Glama

pm_movements

Track recent buys, sells, and position size changes by whale wallets on Polymarket prediction markets using on-chain data.

Instructions

Get recent position changes by whale wallets on Polymarket. Shows buys, sells, and position size changes across prediction markets. Cost: $0.01 per query. Source: Polymarket on-chain data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_idNoFilter by market ID
walletNoFilter by wallet address
hoursNoLookback period in hours (default 24)
limitNoMaximum results (default 25)

Implementation Reference

  • The handler for pm_movements which fetches position change data from the /api/v1/pm/movements endpoint.
      async ({ market_id, wallet, hours, limit }) => {
        const res = await apiGet<PmQueryResponse>("/api/v1/pm/movements", {
          market_id,
          wallet,
          hours: hours ?? 24,
          limit: limit ?? 25,
        });
    
        if (!res.ok) {
          return {
            content: [
              {
                type: "text" as const,
                text: `API error (${res.status}): ${JSON.stringify(res.data)}`,
              },
            ],
            isError: true,
          };
        }
    
        const { count, data } = res.data;
        const warn = stalenessWarning(res);
        const summary = `${warn}Found ${count} position movement(s).`;
        const json = JSON.stringify(data, null, 2);
    
        return {
          content: [{ type: "text" as const, text: `${summary}\n\n${json}` }],
        };
      },
    );
  • The input schema definition for the pm_movements tool.
    {
      title: "Polymarket Position Movements",
      description:
        "Get recent position changes by whale wallets on Polymarket. Shows buys, sells, " +
        "and position size changes across prediction markets. " +
        "Cost: $0.01 per query. Source: Polymarket on-chain data.",
      inputSchema: {
        market_id: z
          .string()
          .optional()
          .describe("Filter by market ID"),
        wallet: z
          .string()
          .optional()
          .describe("Filter by wallet address"),
        hours: z
          .number()
          .int()
          .min(1)
          .max(168)
          .optional()
          .describe("Lookback period in hours (default 24)"),
        limit: z
          .number()
          .int()
          .min(1)
          .max(100)
          .optional()
          .describe("Maximum results (default 25)"),
      },
    },
  • The registration of the pm_movements tool.
    server.registerTool(
      "pm_movements",

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/carrierone/verilexdata-mcp'

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