get_queue_depth
Count a channel's open task threads as open, ready, assigned, blocked, or unclaimable to decide whether to add or remove workers.
Instructions
Count one channel's open task threads as {open, ready, assigned, blocked, unclaimable}, to decide whether to add or remove workers. The counts partition open: ready is what claim_next_thread could hand out now, assigned is held by an assignee with a live lease, blocked is stalled on an explicit block, an unfinished dependency, a pending approval gate or a footprint conflict, and unclaimable is withheld until someone acts (parked, at its budget, or already holding a result). Use get_workspace_queue_depth for every channel of the workspace, and get_channel_occupancy for the same channel when you need held work split into claimed and working. Counts only threads you may read; on the DM channel, your own DMs. Requires workspace:read.
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": {
"channel_id": "<channel_id>"
},
"name": "get_queue_depth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | UUID of the channel to count. You must be able to read it. |