get_stats
Retrieve typing statistics for a user from MonkeyType, including test data, accuracy metrics, and performance insights.
Instructions
Get user's typing statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:321-326 (handler)Handler for the 'get_stats' tool. Calls the MonkeyType API endpoint '/users/stats' with GET method using the provided API key and returns the JSON response as text content.case "get_stats": { const result = await callMonkeyTypeApi('/users/stats', 'GET', apiKey); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
- server.js:31-31 (schema)Zod schema definition for 'get_stats' tool input, extending BaseApiSchema with no additional parameters (empty object).const GetStatsSchema = BaseApiSchema.extend({});
- server.js:178-182 (registration)Registration of the 'get_stats' tool in the tools list provided to ListToolsRequest, including name, description, and input schema.{ name: "get_stats", description: "Get user's typing statistics", inputSchema: zodToJsonSchema(GetStatsSchema), },