Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_daily_leaderboard

Retrieve the daily typing test leaderboard from MonkeyType to view top performers by language, mode, and time period for competitive analysis.

Instructions

Get daily typing test leaderboard

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage for the leaderboard
modeNoMode for the leaderboard (time, words, quote, zen)
mode2NoSecondary mode parameter (e.g., 15, 60, etc.)
skipNoNumber of entries to skip
limitNoNumber of entries to return

Implementation Reference

  • Handler implementation for the 'get_daily_leaderboard' tool. Builds query parameters from input arguments and calls the MonkeyType API endpoint '/leaderboards/daily' to fetch the daily leaderboard data.
    case "get_daily_leaderboard": { const params = {}; if (args.language) params.language = args.language; if (args.mode) params.mode = args.mode; if (args.mode2) params.mode2 = args.mode2; if (args.skip) params.skip = args.skip; if (args.limit) params.limit = args.limit; const result = await callMonkeyTypeApi('/leaderboards/daily', 'GET', apiKey, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
  • Zod input schema definition for the 'get_daily_leaderboard' tool, extending BaseApiSchema with optional parameters for language, mode, mode2, skip, and limit.
    const GetDailyLeaderboardSchema = BaseApiSchema.extend({ language: z.string().optional().describe("Language for the leaderboard"), mode: z.string().optional().describe("Mode for the leaderboard (time, words, quote, zen)"), mode2: z.string().optional().describe("Secondary mode parameter (e.g., 15, 60, etc.)"), skip: z.number().optional().describe("Number of entries to skip"), limit: z.number().optional().describe("Number of entries to return") });
  • server.js:244-248 (registration)
    Registration of the 'get_daily_leaderboard' tool in the ListToolsRequestHandler response, including name, description, and input schema.
    { name: "get_daily_leaderboard", description: "Get daily typing test leaderboard", inputSchema: zodToJsonSchema(GetDailyLeaderboardSchema), },

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/CodeDreamer06/MonkeytypeMCP'

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