vaultix_create_product
Add new products to your catalog by specifying name, price in cents, description, stock quantity, and SKU code.
Instructions
Create a new product in the catalog. Price is in cents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name | |
| price | Yes | Price in cents | |
| description | No | Product description | |
| stock_quantity | No | Stock quantity | |
| sku | No | SKU code |
Implementation Reference
- src/tools/index.ts:508-515 (handler)The handler implementation for 'vaultix_create_product' tool, which creates a new product by posting the arguments to the '/products' API endpoint using the VaultixClient.case 'vaultix_create_product': return client.post('/products', { name: args.name, price: args.price, description: args.description, stock_quantity: args.stock_quantity, sku: args.sku, })
- src/tools/index.ts:192-202 (schema)The input schema defining the parameters for the 'vaultix_create_product' tool, including required fields name and price.inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Product name' }, price: { type: 'number', description: 'Price in cents' }, description: { type: 'string', description: 'Product description' }, stock_quantity: { type: 'number', description: 'Stock quantity' }, sku: { type: 'string', description: 'SKU code' }, }, required: ['name', 'price'], },
- src/tools/index.ts:190-202 (registration)The tool registration object added to the exported 'tools' array, defining name, description, and input schema for MCP.name: 'vaultix_create_product', description: 'Create a new product in the catalog. Price is in cents.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Product name' }, price: { type: 'number', description: 'Price in cents' }, description: { type: 'string', description: 'Product description' }, stock_quantity: { type: 'number', description: 'Stock quantity' }, sku: { type: 'string', description: 'SKU code' }, }, required: ['name', 'price'], },