ensure_resources
Provision TRON resources declaratively by checking current energy and bandwidth levels and purchasing only missing amounts. Prevents over-provisioning through aggregated provider routing to meet specified minimums.
Instructions
Declarative resource provisioning. Checks current resources on target address and purchases only what is missing. Auth required.
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": {
"target_address": "<target_address>"
},
"name": "ensure_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_address | Yes | TRON address to provision resources for. | |
| energy_minimum | No | Minimum energy the address should have. | |
| bandwidth_minimum | No | Minimum bandwidth the address should have. | |
| duration_sec | No | Rental duration in seconds (default: 3600). |