agent_semaphore
agent_semaphoreCounting semaphore / concurrency limit for AI agents: at most N agents hold a slot at once (rate limit parallel workers), TTL permits with fencing tokens, auto-expire on crash. Idempotent, shared by namespace. 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_semaphore).
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>",
"semaphore": "<semaphore>",
"action": "<action>",
"idempotency_key": "<idempotency_key>"
},
"name": "agent_semaphore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_s | No | ||
| action | Yes | ||
| source | No | ||
| caller_id | No | demo_caller | |
| holder_id | No | ||
| max_slots | No | ||
| namespace | Yes | ||
| permit_id | No | ||
| semaphore | Yes | ||
| idempotency_key | Yes |