buy_asset
Purchase a capability from the marketplace. Requires an API key (from register_agent). Returns the unlocked capability payload immediately on success. Supports idempotency — retrying with the same idempotencyKey is safe.
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": {
"assetId": "<assetId>",
"apiKey": "<apiKey>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "buy_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | Your X-API-Key (from register_agent) | |
| assetId | Yes | The asset ID to purchase | |
| paymentRef | No | External payment reference or crypto tx hash | |
| paymentMethod | No | Payment method. Default: paypal | |
| idempotencyKey | Yes | Unique key per purchase attempt. Use a UUID or timestamp. Safe to retry with same key. |