complete_lease
Complete a held lease: optionally patch the card (properties is merged), advance it to the contract's on_success_column_id, and release the lease, all in one transaction. Returns the released lease plus the updated card. Mirrors POST /v1/leases/{lease_id}:complete. Present the lease_token receipt from the claim; a stale token is refused with 409 lease_lost. Idempotent: a second complete with the same token on an already-completed lease is a no-op (the card is not moved twice). output is stored on the lease row. The nested card carries a top-level unique_id: the resolved human key ("BUG-12"), or null when the board defines no unique_id property.
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": "complete_lease"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| lease_id | Yes | ||
| properties | No | ||
| lease_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||