get_credit_remaining
Check remaining USDC credit before deciding whether to make a paid call. Returns spendable balance and borrowing headroom to prevent declined transactions.
Instructions
Return how much USDC credit the calling agent has left. Use BEFORE deciding whether to make a paid call. Two distinct numbers: available (= spendable USDC right now — what the proxy actually gates on) and headroomToAutoBorrow (= operator-delegation borrowing capacity — how much MORE the agent could draw from its credit line). These differ when the agent has delegation capacity but no facility loan opened yet: headroomToAutoBorrow > 0 does NOT imply available > 0. Use available for the spend gate. Requires an agent key (floe_...).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_credit_remaining"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||