agent_key_create
Creates a key for one agent, with its own scopes, an optional spend cap and an optional expiry. The key can never exceed the scopes of the member minting it, and a key holding may_administer cannot mint another key holding may_administer, which is what makes revoking one mean something. The secret is shown once and never again.
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": {
"name": "<name>"
},
"name": "agent_key_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What this agent is for. Shown in the audit trail. | |
| scopes | No | Intersected with your own scopes. Asking for more than you hold narrows rather than fails. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| budget_usd | No | Hard monthly cap. Cost-impacting calls are refused once reached, with code budget_exceeded. | |
| product_id | No | Confine the key to one Product. Omit for the whole organisation. A key cannot choose its own Product at call time, by design. | |
| capabilities | No | ||
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. | |
| expires_in_hours | No | Key stops working after this. Prefer a short life and re-mint. |