Syenite provides two workflows for lending and strategy: continuous health-factor monitoring with alerts, and screening for positive-carry (self-funding) strategies across protocols. Both use MCP tools so an agent can watch positions and discover the best borrow-to-yield opportunities.
Register an address for monitoring; when its health factor drops below a threshold, alerts are generated. Poll for alerts and act (e.g. add collateral or reduce debt) before liquidation.
Registers a lending position for monitoring. Parameters:
address (string): EVM address with the position. Required.protocol (optional): e.g. "aave-v3", "morpho", "spark", "all".chain (optional): "ethereum", "arbitrum", "base", "all".healthFactorThreshold (optional): default 1.5. Alerts when health factor goes below this.Returns a watch object with an ID. Use that ID in alerts.check and alerts.remove.
Polls for active alerts. Optionally filter by watchId and set acknowledge: true to clear alerts for that watch. Returns alert count, critical vs warning, and per-alert details (type, severity, message, data). Call this on a schedule or after user actions.
alerts.list returns all active watches (address, threshold, last check). alerts.remove takes a watch ID and stops monitoring that position.
1. Call alerts.watch with the user's address and optional protocol/chain. 2. Periodically call alerts.check. 3. If alerts exist, present them (e.g. "Health factor below 1.5 on 0x...") and suggest actions. 4. Optionally call lending.position.monitor for full position details. 5. To stop watching, call alerts.remove with the watch ID.
strategy.carry.screen scans lending markets for positive carry: supply APY on collateral exceeds borrow APY, so the net cost is negative (you are paid to be leveraged). Results are ranked by carry and include liquidation parameters and liquidity.
Parameters:
collateral (optional): "all", "BTC", "ETH", or a specific asset.borrowAsset (optional): default "USDC".chain (optional): "ethereum", "arbitrum", "base", "all".minCarry (optional): minimum net carry % (e.g. 0 for positive-only).positionSizeUSD (optional): default 100000; used for annual return estimates.Returns strategies with protocol, chain, market, supply APY, borrow APY, net carry, max LTV, leveraged carry, liquidation penalty, and liquidity. Use it to find the best self-funding strategies before opening a position; then use lending.risk.assess for a specific market.
"Screen for positive carry on ETH collateral, USDC borrow, on Ethereum." Agent calls strategy.carry.screen with collateral: "ETH", borrowAsset: "USDC", chain: "ethereum". Results show markets ranked by net carry. User picks one; agent can call lending.risk.assess and lending.rates.query for execution details.
Compare DeFi lending rates and assess risk. Build a DeFi lending agent. Tool list.