Skip to main content
Glama
LamboPoewert

MadeOnSol — Solana memecoin intelligence

madeonsol_kol_leaderboard

Read-onlyIdempotent

Retrieve KOL performance rankings sorted by PnL or win rate. PRO+ users can sort by ROI, profit factor, or early entry.

Instructions

Get KOL performance rankings by PnL and win rate. PRO+ can sort by alternative axes (winrate/roi/profit_factor/early_entry).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoTime period (trade retention is 180d)7d
limitNoNumber of KOLs to return in ranking
sortNoPRO+: sort axis (default 'pnl')
strategyNoPRO+: filter by strategy tag
min_winrateNoPRO+: minimum winrate cutoff (0-100)

Implementation Reference

  • src/index.ts:139-157 (registration)
    Tool registration via server.tool() — registers the 'madeonsol_kol_leaderboard' tool with its name, description, schema, annotations, and handler callback.
    server.tool(
      "madeonsol_kol_leaderboard",
      "Get KOL performance rankings by PnL and win rate. PRO+ can sort by alternative axes (winrate/roi/profit_factor/early_entry).",
      {
        period: z.enum(["today", "7d", "30d", "90d", "180d"]).default("7d").describe("Time period (trade retention is 180d)"),
        limit: z.number().min(1).max(50).default(20).describe("Number of KOLs to return in ranking"),
        sort: z.enum(["pnl", "winrate", "profit_factor", "roi", "early_entry"]).optional().describe("PRO+: sort axis (default 'pnl')"),
        strategy: z.enum(["sniper", "flipper", "swinger", "holder", "mixed"]).optional().describe("PRO+: filter by strategy tag"),
        min_winrate: z.number().optional().describe("PRO+: minimum winrate cutoff (0-100)"),
      },
      readOnlyAnnotations,
      async ({ period, limit, sort, strategy, min_winrate }) => {
        const params: Record<string, string | number> = { period, limit };
        if (sort) params.sort = sort;
        if (strategy) params.strategy = strategy;
        if (min_winrate !== undefined) params.min_winrate = min_winrate;
        return { content: [{ type: "text" as const, text: await query("/api/x402/kol/leaderboard", params) }] };
      }
    );
  • Zod-based input schema for the tool — defines period (today/7d/30d/90d/180d), limit (1-50, default 20), sort (pnl/winrate/profit_factor/roi/early_entry), strategy (sniper/flipper/swinger/holder/mixed), and min_winrate (0-100). The sort, strategy, and min_winrate parameters are marked PRO+ features.
    {
      period: z.enum(["today", "7d", "30d", "90d", "180d"]).default("7d").describe("Time period (trade retention is 180d)"),
      limit: z.number().min(1).max(50).default(20).describe("Number of KOLs to return in ranking"),
      sort: z.enum(["pnl", "winrate", "profit_factor", "roi", "early_entry"]).optional().describe("PRO+: sort axis (default 'pnl')"),
      strategy: z.enum(["sniper", "flipper", "swinger", "holder", "mixed"]).optional().describe("PRO+: filter by strategy tag"),
      min_winrate: z.number().optional().describe("PRO+: minimum winrate cutoff (0-100)"),
    },
  • Handler function that executes the tool logic — builds query params from provided input, delegates to the generic 'query()' helper to make an HTTP call to the external API at /api/x402/kol/leaderboard, and returns the response as formatted JSON text.
    async ({ period, limit, sort, strategy, min_winrate }) => {
      const params: Record<string, string | number> = { period, limit };
      if (sort) params.sort = sort;
      if (strategy) params.strategy = strategy;
      if (min_winrate !== undefined) params.min_winrate = min_winrate;
      return { content: [{ type: "text" as const, text: await query("/api/x402/kol/leaderboard", params) }] };
    }
  • The generic 'query()' helper function used by the leaderboard handler to make authenticated HTTP requests to the external MadeOnSol API. It handles both x402 (micropayment) and API-key-based auth modes, builds URLs with query params, and returns formatted JSON or error text.
    async function query(path: string, params?: Record<string, string | number>) {
      // API key uses /api/v1/ endpoints; x402 uses /api/x402/
      const apiPath = authMode === "x402" || authMode === "none"
        ? path
        : path.replace("/api/x402/", "/api/v1/");
      const url = new URL(apiPath, BASE_URL);
      if (params) {
        for (const [k, v] of Object.entries(params)) {
          if (v !== undefined) url.searchParams.set(k, String(v));
        }
      }
      const headers = apiKeyHeaders();
      const res = authMode === "x402"
        ? await paidFetch(url.toString())
        : await fetch(url.toString(), { headers });
      if (!res.ok) {
        const body = await res.text().catch(() => "");
        return `Error ${res.status}: ${body}`;
      }
      return JSON.stringify(await res.json(), null, 2);
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description adds only PRO+ feature context. No contradictions. The description does not detail side effects or restrictions beyond schema, which is acceptable given safe annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, directly front-loaded with purpose. Every word is necessary and efficient. No redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, so description could explain return format (e.g., list of KOLs with PnL, win rate, rank). It does not, leaving some ambiguity. However, tool name implies leaderboard. Adequate but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear enum descriptions. The description adds that sorting defaults to 'pnl' and that certain parameters are PRO+ features. This adds value beyond the schema, though minor.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves KOL performance rankings by PnL and win rate, with explicit reference to PRO+ sorting options. This distinguishes it from siblings like madeonsol_alpha_leaderboard and other KOL tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for KOL rankings but does not explicitly state when to use vs alternatives (e.g., KOL feed, pnl, etc.). No guidance on when not to use. Adequate but lacks explicit when-to/when-not.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/LamboPoewert/mcp-server-madeonsol'

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