ledger_task_status
Check dispatch, retry, and verdict status for a task before dispatching a subagent to enforce retry limits.
Instructions
Look up dispatch/retry/verdict status for a given task string.
Use this BEFORE dispatching a subagent to check whether the same task has already been retried too many times (budget enforcement).
Args: task (str): The exact task string used with ledger_log_dispatch.
Returns: dict: { "dispatch_count": int, # total dispatches recorded for this task "retry_count": int, # dispatch_count - 1, floored at 0 "last_verdict": str | None, # verdict of most recent dispatch, or null "over_retry_limit": bool # true when retry_count >= 2 }
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": {
"task": "<task>"
},
"name": "ledger_task_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||