Create Worker Delegation
create_worker_delegationExecute the canonical Direct Session create_worker_delegation operation. Requires an Authorization: Bearer header.
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": {
"worker_id": "<worker_id>",
"token_hash": "<token_hash>",
"scopes": "<scopes>",
"max_spend_cptm": "<max_spend_cptm>",
"max_concurrent_sessions": "<max_concurrent_sessions>",
"max_requests_per_minute": "<max_requests_per_minute>",
"nonce": "<nonce>",
"expires_at": "<expires_at>",
"idempotency_key": "<idempotency_key>"
},
"name": "create_worker_delegation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Canonical nonce argument for the create_worker_delegation Direct Session operation. | |
| scopes | Yes | Canonical scopes argument for the create_worker_delegation Direct Session operation. | |
| worker_id | Yes | Canonical worker id argument for the create_worker_delegation Direct Session operation. | |
| expires_at | Yes | Canonical expires at argument for the create_worker_delegation Direct Session operation. | |
| token_hash | Yes | Canonical token hash argument for the create_worker_delegation Direct Session operation. | |
| max_spend_cptm | Yes | Canonical max spend cptm argument for the create_worker_delegation Direct Session operation. | |
| idempotency_key | Yes | Required mutation idempotency key, shared across REST, MCP, and A2A. | |
| allowed_offer_ids | No | Canonical allowed offer ids argument for the create_worker_delegation Direct Session operation. | |
| max_concurrent_sessions | Yes | Canonical max concurrent sessions argument for the create_worker_delegation Direct Session operation. | |
| max_requests_per_minute | Yes | Canonical max requests per minute argument for the create_worker_delegation Direct Session operation. | |
| allowed_provider_agent_ids | No | Canonical allowed provider agent ids argument for the create_worker_delegation Direct Session operation. | |
| ephemeral_ed25519_public_key | No | Canonical ephemeral ed25519 public key argument for the create_worker_delegation Direct Session operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the upstream exchange call succeeded (HTTP status < 400). | |
| data | Yes | Canonical create_worker_delegation result. Null when ok is false. | |
| error | Yes | In-band error code or message when ok is false; null on success. | |
| status | Yes | Upstream HTTP status code returned by the Conductor Relay API. |