get_results
Fetch typing test results from MonkeyType MCP Server, allowing users to retrieve data based on timestamp, offset, and limit parameters for precise querying.
Instructions
Get user's typing test results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit results to the given amount | |
| offset | No | Offset of the item at which to begin the response | |
| timestamp | No | Timestamp of the earliest result to fetch |
Implementation Reference
- server.js:384-394 (handler)Handler for the 'get_results' tool. Builds query parameters from input (timestamp, offset, limit) and calls the MonkeyType API endpoint '/results' via the shared helper.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 schema definition for 'get_results' tool input validation, defining optional timestamp, offset, and limit parameters.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)Registration of the 'get_results' tool in the listTools response, including name, description, and input schema.{ name: "get_results", description: "Get user's typing test results", inputSchema: zodToJsonSchema(GetResultsSchema), },