add_user
Add a new user to the inventory system by supplying username, password, email, phone, address, and role. Grants access based on user type such as admin, stocker, or cashier.
Instructions
Adds a new user to the inventory management system.
Args:
username: The username of the new user.
password: The password for the new user.
email: The email address of the new user.
phone: The phone number of the new user.
address: The address of the new user.
type: The type of user (e.g., Admin, Stocker, Cashier).
Returns:
A confirmation message or an error message in json format if the request fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>",
"password": "<password>",
"email": "<email>",
"phone": "<phone>",
"address": "<address>",
"type": "<type>"
},
"name": "add_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| Yes | |||
| phone | Yes | ||
| address | Yes | ||
| password | Yes | ||
| username | Yes |