Skip to main content
Glama

pm_signals

Analyze smart money flow signals from Polymarket to identify where top traders are positioning, using aggregated whale wallet activity for directional market insights.

Instructions

Get smart money flow signals showing where top traders are positioning. Aggregates whale wallet activity into directional signals per market. Cost: $0.02 per query. Source: Polymarket on-chain data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_idNoFilter by market ID
min_confidenceNoMinimum signal confidence (0-1, default 0.5)
limitNoMaximum results (default 25)

Implementation Reference

  • src/tools/pm.ts:90-91 (registration)
    Tool registration for pm_signals in src/tools/pm.ts.
    server.registerTool(
      "pm_signals",
  • The handler logic for pm_signals, which fetches data from the API and formats the response.
      async ({ market_id, min_confidence, limit }) => {
        const res = await apiGet<PmQueryResponse>("/api/v1/pm/signals", {
          market_id,
          min_confidence: min_confidence ?? 0.5,
          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} smart money signal(s).`;
        const json = JSON.stringify(data, null, 2);
    
        return {
          content: [{ type: "text" as const, text: `${summary}\n\n${json}` }],
        };
      },
    );

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