get_channel_occupancy
Break down a channel's open task threads into open, queued, claimed, working, and blocked counts to reveal stalled claimed work and measure occupancy.
Instructions
Split one channel's open task threads into {open, queued, claimed, working, blocked} by what the holder is doing: claimed is held but not yet acknowledged with acknowledge_claim, and working is held and acknowledged, so a claimed count that stays high exposes an agent that took work and never started it. queued equals the ready count of get_queue_depth, and blocked is that tool's blocked plus unclaimable; the four buckets add up to open. Use get_queue_depth for the pool-sizing counts of the same channel, get_workspace_occupancy for the same split across the whole workspace, and get_run_occupancy for the threads of one producer run. Counts only threads you may read. 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_channel_occupancy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | UUID of the channel to count. You must be able to read it. |