Archive unused category
archive_categoryArchive a category that nothing uses, e.g. a starter category the organization does not need. Refused, with nothing written, while anything still uses it: items (drafts too), sub-categories, item models, fields defined on it, a maintenance plan that selects it, or an item kit that lists it; the answer names what. An archived category leaves every list and picker, and the app has no way to bring it back. Repeating the call on an archived category answers alreadyArchived and writes nothing. Requires the manager role.
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": {
"categoryId": "<categoryId>"
},
"name": "archive_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categoryId | Yes | Category id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Category name | |
| note | No | Counting caveat | |
| inUse | No | On a refusal, what still uses it: items, drafts, subCategories, models, fields, maintenancePlans, kits (counts) | |
| archived | No | True = archived; false = refused, nothing written | |
| categoryId | No | The category's id | |
| instruction | No | Why the call was refused | |
| alreadyArchived | No | It was archived before this call | |
| readLimitReached | No | Areas this check could not read in full — refused for safety, nothing written |