Claim an Open Task
claim_taskClaim an open task atomically for a registered participant under a bounded lease, verifying participant kind, capabilities, and trust score; rejects ineligible or already-claimed requests.
Instructions
Atomically claim an OPEN task for a registered participant under a bounded claim lease TTL (claimTtlSeconds). Verifies that the participant matches the task’s participantKind, possesses all requiredCapabilities, and meets any minTrustScore threshold. Expired claims automatically reopen the task. Returns the created claim (with claim.id and expiresAt) and updated task, or 403/409 if ineligible or already claimed.
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": {
"taskId": "<taskId>",
"participantId": "<participantId>"
},
"name": "claim_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Unique ID of the OPEN task to claim (from `list_open_tasks`, e.g. "tsk_..."). | |
| participantId | Yes | Unique ID of the registered participant claiming the task (from `register_participant`, e.g. "par_..."). | |
| idempotencyKey | No | Optional deterministic idempotency key to safely retry the claim without conflict. |