create_category
Creates a category for a bilingual codename inventory, enforcing unique sibling slugs and a three-level depth cap; pass a parent ID to add a child category.
Instructions
Create a new category. Depth is capped at 3; sibling slugs must be unique. Pass parent_category_id to create a child, or omit for a top-level category.
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": {
"slug": "<slug>",
"name_en": "<name_en>",
"name_zh": "<name_zh>"
},
"name": "create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| name_en | Yes | ||
| name_zh | Yes | ||
| operator | No | system | |
| sort_order | No | ||
| parent_category_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||