Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_leaderboard_rank

Retrieve a user's ranking on the MonkeyType leaderboard for specific language, mode, and duration parameters.

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 function that calls the MonkeyType API /leaderboards/rank endpoint with provided language, mode, and mode2 parameters for the authenticated user.
    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 input parameters: language, mode, 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 handler, specifying name, description, and inputSchema.
    { 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