set_priority
Set or update a thread's dispatch priority so urgent work is claimed sooner while aging prevents long-waiting tasks from starving.
Instructions
Set (upsert) a thread's dispatch priority (G3 fair dispatch). Higher = more urgent (default 0). claim_next orders by an effective rank = this priority aged up the longer the thread waits, so priority jumps the queue without starving long-waiting tasks. Requires thread:transition.
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": {
"thread_id": "<thread_id>",
"priority": "<priority>"
},
"name": "set_priority"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priority | Yes | higher = more urgent; default 0 | |
| thread_id | Yes |