get_stats
Retrieve detailed typing statistics for users with the get_stats tool in the MonkeyType MCP Server, enabling access to performance metrics and insights through natural language interactions.
Instructions
Get user's typing statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:321-326 (handler)The handler function for the 'get_stats' tool. It calls the MonkeyType API endpoint '/users/stats' using the shared callMonkeyTypeApi helper and returns the JSON response.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 the 'get_stats' tool input parameters. It extends BaseApiSchema, resulting in an empty object schema (no parameters required).const GetStatsSchema = BaseApiSchema.extend({});
- server.js:178-182 (registration)Registration of the 'get_stats' tool in the server's tool list, including name, description, and input schema.{ name: "get_stats", description: "Get user's typing statistics", inputSchema: zodToJsonSchema(GetStatsSchema), },