Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

get_speed_histogram

Retrieve typing speed distribution data for analyzing performance patterns across different languages and test modes.

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

  • Handler for the 'get_speed_histogram' tool that constructs parameters from input arguments and calls the MonkeyType API endpoint '/public/speedHistogram' to retrieve speed histogram data.
    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) }], }; }
  • Zod input schema for the 'get_speed_histogram' tool, defining required parameters: language, mode (enum), and mode2.
    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)
    Registration of the 'get_speed_histogram' tool in the listTools response, including name, description, and input schema reference.
    { name: "get_speed_histogram", description: "Get speed histogram data", inputSchema: zodToJsonSchema(GetSpeedHistogramSchema), },

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