Skip to main content
Glama
CodeDreamer06

MonkeyType MCP Server

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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