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
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes | Target language for the speed histogram (e.g., 'english') | |
| mode | Yes | Typing mode (e.g., 'time', 'words') | |
| mode2 | Yes | Secondary mode parameter (e.g., '60' for time mode) |
Implementation Reference
- server.js:411-422 (handler)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) }], }; }
- server.js:59-63 (schema)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), },