remove_hierarchy_level
Removes a specified hierarchy level and automatically renumbers the rest. Blocks the final level removal to keep hierarchies non-empty.
Instructions
Remove a level from a hierarchy (remaining levels are renumbered densely). Refuses to remove the LAST level - a hierarchy cannot be empty; use delete_hierarchy instead.
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": {
"sessionId": "<sessionId>",
"table": "<table>",
"hierarchy": "<hierarchy>",
"level": "<level>"
},
"name": "remove_hierarchy_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | the level to remove | |
| table | Yes | ||
| hierarchy | Yes | the hierarchy | |
| sessionId | Yes |