{"uid":"cap_gth6kVyCD2leXIXdGkusd","slug":"signalharness-defi-lending-health-factor-44479a7e","name":"SignalHarness DeFi Lending Health Factor","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/defi_lending_health_factor/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lending_health_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Protocol rules, prices, and positions are caller supplied."],"service_id":"defi_lending_health_factor","evidence_scope":"caller_supplied_data","lending_health_factor":"{\"adjusted_collateral_value\":\"160\",\"debt_value\":\"100\",\"health_factor\":\"1.6\",\"liquidatable_at_or_below_one\":false}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"defi_lending_health_factor","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"60a66a4f50448329e7dd6b4a9cecbf5b3be85d9131325877d83850c99a12b334","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0tHb_aFXJUuSe_MChiCPV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes caller-supplied DeFi lending position data and computes a health factor indicating liquidation risk","exampleAgentPrompt":"Check the health factor of my DeFi lending position — I have 2 ETH collateral deposited on Aave with 800 USDC borrowed, and I want to know if I'm at risk of liquidation.","exampleUseCases":[{"title":"Aave position liquidation risk check","prompt":"I've got 3 WBTC as collateral and borrowed 40,000 USDC on Aave v3 — can you compute my health factor and tell me if I'm close to getting liquidated?"},{"title":"Compound borrow safety assessment","prompt":"Analyze my Compound lending position: I have $15,000 worth of ETH collateral and $8,000 in outstanding borrows. What's my health factor and are there any warnings I should know about?"},{"title":"DeFi risk monitoring before market volatility","prompt":"Before this market dip, can you calculate the health factor on my DeFi position? I have 5 ETH and 1000 DAI as collateral with 2 ETH borrowed on a lending protocol, and I need to know how safe I am."}],"resultDescription":"Returns a JSON object containing the computed lending health factor value, any warnings about the position's risk level, the evidence scope indicating data was caller-supplied, a status field, and a full execution receipt with payment and request identifiers on Base network.","failureModes":["Malformed or insufficient lending position data returns an error or low-confidence result","Missing collateral or borrow amounts cause incomplete health factor computation","Input string too short (under 2 chars) or too long (over 65536 chars) triggers validation rejection","Ambiguous protocol data may produce warnings alongside the result","Payment failure on x402 protocol blocks execution entirely"],"whenToPreferThis":"Use this endpoint when you need a quick, agent-native computation of a DeFi lending health factor from free-form position descriptions, especially in agentic workflows that require micropayment-based access via x402 on Base. Prefer this over manual on-chain reads when you want a structured risk assessment with warnings returned as part of an automated pipeline for $0.01 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:14.040Z","isFirstParty":false}