data_session_funding_preflight
Requires an agent API key (Authorization: Bearer or X-API-Key). Check whether the session's buyer wallet can fund its escrow before you broadcast. Returns {ready, missing[], actions[]}: missing names each gap (usdc, eth_gas, allowance) and actions holds the exact call that fixes it (a gas shortfall comes back as the faucet call). Reads chain balances only. REST twin: POST /api/v1/data-sessions/{session_id}/funding-package/preflight. Next: data_session_funding_package (self-sign) or data_session_fund.
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": {
"session_id": "<session_id>"
},
"name": "data_session_funding_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | UUID of a data session you opened (from data_session_open). |