fail_lease
Release a held lease as failed. With requeue=true (default) and attempts remaining, the card is re-queued behind a backoff window; once attempts are exhausted it dead-letters in place. Returns the released lease. Mirrors POST /v1/leases/{lease_id}:fail. Present the lease_token receipt from the claim; a stale token is refused with 409 lease_lost. Idempotent: a second fail with the same token on an already-failed lease is a no-op. reason is stashed on the lease row for the audit trail.
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": {
"lease_id": "<lease_id>",
"lease_token": "<lease_token>"
},
"name": "fail_lease"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| requeue | No | ||
| lease_id | Yes | ||
| lease_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||