ep_create_delegation
Authorize an agent to act on your behalf by recording a delegation with defined scope, expiry, and optional constraints.
Instructions
Create a delegation record: a human or principal authorizes an agent to act on their behalf. The delegation is recorded in the EP ledger with scope, expiry, and optional constraints. Every delegated action can reference this delegation to prove authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal_id | Yes | The principal (human/org) granting the delegation | |
| agent_entity_id | Yes | The agent entity being authorized | |
| scope | Yes | List of permitted action types (e.g. ["purchase", "book", "send_email"]) | |
| max_value_usd | No | Maximum transaction value in USD this delegation authorizes (optional) | |
| expires_at | No | ISO8601 expiry timestamp. If omitted, defaults to 24 hours. | |
| constraints | No | Additional constraints (geo, merchant_category, etc.) |