get_results
Retrieve typing test results from MonkeyType to analyze performance metrics, track progress, and review past typing sessions.
Instructions
Get user's typing test results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | No | Timestamp of the earliest result to fetch | |
| offset | No | Offset of the item at which to begin the response | |
| limit | No | Limit results to the given amount |
Implementation Reference
- server.js:384-394 (handler)The switch case handler for the 'get_results' tool, which constructs query parameters from input (timestamp, offset, limit) and calls the shared callMonkeyTypeApi function to fetch typing test results from the '/results' endpoint.case "get_results": { const params = {}; if (args.timestamp) params.timestamp = args.timestamp; if (args.offset) params.offset = args.offset; if (args.limit) params.limit = args.limit; const result = await callMonkeyTypeApi('/results', 'GET', apiKey, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
- server.js:46-50 (schema)Zod input schema for the 'get_results' tool, defining optional parameters: timestamp, offset, and limit.const GetResultsSchema = BaseApiSchema.extend({ timestamp: z.number().optional().describe("Timestamp of the earliest result to fetch"), offset: z.number().optional().describe("Offset of the item at which to begin the response"), limit: z.number().optional().describe("Limit results to the given amount") });
- server.js:205-209 (registration)Tool registration in the ListToolsRequestHandler response, specifying name, description, and converted JSON schema.{ name: "get_results", description: "Get user's typing test results", inputSchema: zodToJsonSchema(GetResultsSchema), },