Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

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
NameRequiredDescriptionDefault
timestampNoTimestamp of the earliest result to fetch
offsetNoOffset of the item at which to begin the response
limitNoLimit results to the given amount

Implementation Reference

  • 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) }], }; }
  • 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), },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeDreamer06/MonkeytypeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server