check_username
Verify the availability of a username on MonkeyType using the MCP server, enabling users to check if their desired username is already taken.
Instructions
Check if a username is available on MonkeyType
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Username to check for availability |
Implementation Reference
- server.js:293-299 (handler)Handler for the 'check_username' tool. Parses input arguments, calls the MonkeyType API endpoint '/users/checkname' with the username, and returns the result as a formatted text response.case "check_username": { const params = { name: args.name }; const result = await callMonkeyTypeApi(`/users/checkname`, 'GET', apiKey, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
- server.js:20-22 (schema)Zod input schema for the 'check_username' tool, defining a required 'name' string parameter.const CheckNameSchema = BaseApiSchema.extend({ name: z.string().describe("Username to check for availability") });
- server.js:163-167 (registration)Registration of the 'check_username' tool in the ListTools response, including name, description, and input schema.{ name: "check_username", description: "Check if a username is available on MonkeyType", inputSchema: zodToJsonSchema(CheckNameSchema), },