joules_deficit
Can you afford the next call? Give a planned cost; returns {needed, have, shortfall, tool_to_call_next}. Free. Agent keys read their own wallet; a JoulePAI or ENYAL credential may pass wallet_id.
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": {
"cost": "<cost>"
},
"name": "joules_deficit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | The joules the next call will cost (its joules_all_in from billing_quote). | |
| wallet_id | No | Wallet to read (UUID); omit to use your own. Not used with a GreenlandAI agent key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| have | No | ||
| needed | No | ||
| shortfall | No | ||
| tool_to_call_next | No |