user_create
Create new users for the Pickaxe platform with customizable access to products and studio environments.
Instructions
Create a new user with optional product access.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| Yes | User's email address (required) | ||
| name | No | User's display name | |
| password | No | User's password (optional - they can reset) | |
| products | No | Array of product IDs to grant access to | |
| isEmailVerified | No | Mark email as verified. Default: false |
Implementation Reference
- src/index.ts:533-542 (handler)The handler function for the 'user_create' tool. It constructs a POST request to the Pickaxe API endpoint '/studio/user/create' using the provided arguments and returns the JSON response.case "user_create": { const result = await pickaxeRequest("/studio/user/create", "POST", { email: args.email, name: args.name, password: args.password, products: args.products, isEmailVerified: args.isEmailVerified ?? false, }, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:296-323 (schema)Input schema definition for the 'user_create' tool, specifying parameters such as studio, email (required), name, password, products, and isEmailVerified.inputSchema: { type: "object", properties: { studio: studioParam, email: { type: "string", description: "User's email address (required)", }, name: { type: "string", description: "User's display name", }, password: { type: "string", description: "User's password (optional - they can reset)", }, products: { type: "array", items: { type: "string" }, description: "Array of product IDs to grant access to", }, isEmailVerified: { type: "boolean", description: "Mark email as verified. Default: false", }, }, required: ["email"], },
- src/index.ts:293-324 (registration)Tool registration in the tools array, defining the name, description, and input schema for 'user_create'. This is returned by the ListTools handler.{ name: "user_create", description: "Create a new user with optional product access.", inputSchema: { type: "object", properties: { studio: studioParam, email: { type: "string", description: "User's email address (required)", }, name: { type: "string", description: "User's display name", }, password: { type: "string", description: "User's password (optional - they can reset)", }, products: { type: "array", items: { type: "string" }, description: "Array of product IDs to grant access to", }, isEmailVerified: { type: "boolean", description: "Mark email as verified. Default: false", }, }, required: ["email"], }, },