agent_lease_lock
agent_lease_lockDistributed lock / lease lock (mutex) for AI agents: acquire, renew, release a named lock with TTL and a monotonic fencing token so only one agent runs a job at a time. Idempotent, shared by namespace, no Redis needed. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_lease_lock).
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": {
"namespace": "<namespace>",
"action": "<action>",
"lock_name": "<lock_name>",
"idempotency_key": "<idempotency_key>"
},
"name": "agent_lease_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_s | No | ||
| action | Yes | ||
| source | No | ||
| caller_id | No | demo_caller | |
| holder_id | No | ||
| lock_name | Yes | ||
| namespace | Yes | ||
| idempotency_key | Yes |