recent_limit_hits
Lists recent provider usage-limit failures per backend and requested model from persisted task records, helping direct callers inspect limit hits without retrying or switching tasks.
Instructions
Latest provider usage-limit hit per backend and requested model, from persisted task records; direct callers only.
Read-only: nothing is retried, switched or continued. Evidence is a persisted task failure_diagnostic with category usage_limit (never provider_error or prose). There is no pagination: a query sees only the newest 500 hits that match its since, backend and model bounds, so filtering by backend (or backend and model) gives each its own newest-500 window, while an unfiltered query sees only the newest 500 overall. repo and group filter inside that window. model is the requested model; a task on the backend default has requested_model null. since is an inclusive ISO8601 timestamp with timezone. At most 50 backend/model keys are returned. scan.complete is false when older matching hits were left unexamined, the key cap was reached, or the index is still preparing (index_state), so retry while it is preparing. Each hit carries task_id, title, group, observed_at (when the task settled: finished_at, else started_at, named by observed_at_source; not necessarily when the provider rejected the request), diagnostic and reset {raw, at, state}. A numeric reset is epoch seconds. reset.state is future, elapsed or unknown; elapsed only says the stated time has passed and does not say the provider is available again. See docs/usage-limits.md.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "recent_limit_hits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| group | No | ||
| model | No | ||
| since | No | ||
| backend | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||