Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_speed_histogram

Analyze and visualize speed distribution for typing tests on MonkeyType by specifying language, mode, and parameters using a histogram generator.

Instructions

Get speed histogram data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageYesTarget language for the speed histogram (e.g., 'english')
modeYesTyping mode (e.g., 'time', 'words')
mode2YesSecondary mode parameter (e.g., '60' for time mode)

Implementation Reference

  • Zod schema definition for input validation of get_speed_histogram tool.
    const GetSpeedHistogramSchema = BaseApiSchema.extend({ language: z.string().describe("Target language for the speed histogram (e.g., 'english')"), mode: z.enum(["time", "words", "quote", "custom", "zen"]).describe("Typing mode (e.g., 'time', 'words')"), mode2: z.string().describe("Secondary mode parameter (e.g., '60' for time mode)") });
  • server.js:222-226 (registration)
    Tool registration in the list of tools returned by ListToolsRequestSchema handler.
    { name: "get_speed_histogram", description: "Get speed histogram data", inputSchema: zodToJsonSchema(GetSpeedHistogramSchema), },
  • Switch case handler that calls the MonkeyType API endpoint /public/speedHistogram with provided parameters.
    case "get_speed_histogram": { const params = { language: args.language, mode: args.mode, mode2: args.mode2 }; const result = await callMonkeyTypeApi('/public/speedHistogram', 'GET', apiKey, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }

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