analyze_treasury_health
Analyze an agent wallet's GBLIN, USDC, and ETH balances to verify ETH covers exit gas, track redemption cooldown, and use optional daily burn to calculate USDC runway and GBLIN surplus.
Instructions
Analyzes an agent wallet's treasury: GBLIN, USDC and ETH balances, whether the ETH covers an exit at the live gas price, and the redemption cooldown. When daily_burn_usd is given it adds days of USDC runway and a split that keeps seven days of spend in USDC and treats only the surplus as a candidate for GBLIN. Free by default; a 0.003 USDC charge applies only when the server operator sets MCP_PAYWALL=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _payment | No | Base64-encoded x402 PaymentProof JSON. Omit on first call to receive the 402 payment manifest. | |
| daily_burn_usd | No | Optional. Average daily spend in USD (e.g. 1.5). | |
| wallet_address | Yes | Agent's 0x address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratios | No | ||
| wallet | Yes | ||
| balances | Yes | ||
| cooldown | Yes | Whether the redemption cooldown is active and for how long. | |
| gas_health | Yes | Whether the wallet holds enough ETH for the next transactions. | |
| recommendation | Yes | hold, rebalance_to_gblin or rebalance_to_usdc, with the reason. |