Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_leaderboard_rank

Retrieves a user's rank on the MonkeyType leaderboard based on specified language, mode, and secondary parameters to track performance in typing tests.

Instructions

Get user's rank on the leaderboard

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageYesLanguage for the leaderboard
modeYesMode for the leaderboard (time, words, quote, zen)
mode2YesSecondary mode parameter (e.g., 15, 60, etc.)

Implementation Reference

  • Handler for the get_leaderboard_rank tool. Constructs parameters from input arguments and calls the MonkeyType API endpoint '/leaderboards/rank' to retrieve the user's rank.
    case "get_leaderboard_rank": { const params = { language: args.language, mode: args.mode, mode2: args.mode2 }; const result = await callMonkeyTypeApi('/leaderboards/rank', 'GET', apiKey, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
  • Zod schema defining the input parameters for the get_leaderboard_rank tool: language, mode, and mode2.
    const GetLeaderboardRankSchema = BaseApiSchema.extend({ language: z.string().describe("Language for the leaderboard"), mode: z.string().describe("Mode for the leaderboard (time, words, quote, zen)"), mode2: z.string().describe("Secondary mode parameter (e.g., 15, 60, etc.)") });
  • server.js:239-243 (registration)
    Tool registration in the listTools response, specifying name, description, and input schema.
    { name: "get_leaderboard_rank", description: "Get user's rank on the leaderboard", inputSchema: zodToJsonSchema(GetLeaderboardRankSchema), },

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