Admin: recover jobs
admin_recover_jobsAdmin only. With no ids, runs the stuck-job sweep now: stale running jobs are recovered from partial output or marked failed, recent failed compositions are retried (new provider spend), stuck flow jobs are marked failed, failed or expired Kie jobs are refunded, and alert emails go out; returns counts and details. With userId AND compositionId, recovers that one composition without checking its status: if no output exists yet it is marked failed, even while still running. Passing only one of the two ids runs the full sweep.
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": {
"context": "<context>"
},
"name": "admin_recover_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | With compositionId: the owner of the one job to recover. | |
| context | Yes | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| compositionId | No | With userId: the one composition to recover. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |