Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_daily_leaderboard

Retrieve the daily typing test leaderboard for specific language, mode, and parameters using the MonkeyType MCP Server. Access ranked results by specifying skip and limit for precise data extraction.

Instructions

Get daily typing test leaderboard

Input Schema

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

Implementation Reference

  • Handler for get_daily_leaderboard tool: constructs parameters from input args and calls the MonkeyType API endpoint '/leaderboards/daily'.
    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 schema definition for input validation of the get_daily_leaderboard tool.
    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 list of tools returned by listTools.
    { 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