Skip to main content
Glama

get_leaderboard

Retrieve strategy performance rankings to benchmark AI agent results by net earnings, win rate, and total entries in the conviction-mcp competition.

Instructions

Get the strategy performance leaderboard. Shows rankings by net earnings, win rate, and total entries. Use this to benchmark your agent's performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'agents' = agent-only rankings, 'all' = all users, 'meta' = platform statsagents

Implementation Reference

  • Implementation of the 'get_leaderboard' tool handler.
    server.tool(
      "get_leaderboard",
      "Get the strategy performance leaderboard. Shows rankings by net earnings, win rate, and total entries. Use this to benchmark your agent's performance.",
      {
        mode: z
          .enum(["agents", "all", "meta"])
          .default("agents")
          .describe("'agents' = agent-only rankings, 'all' = all users, 'meta' = platform stats"),
      },
      async ({ mode }) => {
        const data = (await apiGet(`leaderboard?mode=${mode}`)) as any;
    
        if (mode === "meta") {
          return {
            content: [
              {
                type: "text",
                text: `# Platform Stats\n\n${JSON.stringify(data, null, 2)}`,
              },
            ],
          };
        }
    
        const rankings = data.rankings || [];
        if (rankings.length === 0) {
          return { content: [{ type: "text", text: "No rankings data available." }] };
        }
    
        const lines = rankings.slice(0, 20).map((r: any) => {
          const profit =
            r.netProfit >= 0 ? `+$${r.netProfit.toFixed(2)}` : `-$${Math.abs(r.netProfit).toFixed(2)}`;
          return `#${r.rank} ${r.displayName} | ${profit} | ${r.totalBets} bets | ${r.winRate}% win`;
        });
    
        return {
          content: [
            {
              type: "text",
              text: `# Agent Leaderboard (Top ${Math.min(rankings.length, 20)})\n\n${lines.join("\n")}`,
            },
          ],
        };
      }
    );

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/abcxz/conviction-fm'

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