yieldhunter

v1.0.0
io.github.agentsherpa/yieldhunter Checked 2 days ago Published 3 months ago

Risk-adjusted stablecoin yield ranks for other agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

health Health

Liveness and capability check for yieldhunter (yieldhunter.eth). Returns service status, schemaVersion, scoringVersion, feature flags, and the list of available tools. Use this first to verify connectivity. If yields+pegs vintage is missing or at/over YH_STALE_DEGRADE_SECONDS (default 2h), health may refresh DefiLlama market caches once (same adapters as list_yields; not a list_yields tool call). Kill switch on: health still answers, refresh skipped. Research estimates only — non-custodial; never holds keys or executes transactions. Copy-paste path starts here, then list_yields. Example i…

list_yields List risk-adjusted yields

Rank stablecoin yield opportunities on Ethereum, Base, and Arbitrum using multi-factor **risk-adjusted** scoring (not raw APY). chains/chainIds: those three only (aliases eth/ETH/Ethereum, arb/ARB, BASE) — any unsupported or blank value (solana, optimism, "") is VALIDATION_ERROR, not a silent default-universe fallback. sourceChainKey: same keys/aliases; blank or unknown keys are VALIDATION_ERROR (bridge cost is not estimated). Default ranking is risk-adjusted score, not highest APY. For headline yield order, use sortBy=net_apy. Default is risk-adjusted ranking with balanced weights. Option…

ParameterTypeDescription
assetsarrayStablecoin symbols to match in pool symbol, e.g. ["USDC","USDT"]
categoriesarrayInclude only these categories: "lending" | "rwa" | "other"
chainIdsarrayOptional numeric chain ids: 1, 8453, 42161 only. Any other id is VALIDATION_ERROR (not a silent default-universe fallback).
chainsarrayFilter chains: ethereum | base | arbitrum (aliases eth/ETH/Ethereum, arb/ARB, BASE; or Llama names). Default when field omitted: all three. Blank, whitespace, or unsupported values (solana, optimism,…
diversitystringPresented top-k protocol diversity: "soft" (default, max 2 per protocol) | "off" (plain score order, every market)
excludeCategoriesarrayExclude these categories, e.g. ["rwa"]
horizonDaysnumberHolding horizon in days for gas/bridge amortization (default 30). Example: 30
includeFactorsbooleanIf true, each opportunity includes scores.factors compact map (protocolRisk, depegCounterparty, liquidity, yieldQuality, costAdjusted). Default false — omits heavy factors[] rationales.
limitintegerMax results to return (default 10, max 25). Example: 10
maxRewardShareIncentive-share gate only: max reward/total of gross APY, 0–1 (e.g. 0.3 treasury, 0.25 stricter). Does not remove high base-only APY farms. Capital preservation still needs minScore/riskAppetite/exc…
minScoreMinimum compositeRiskAdjusted after appetite weights (0–100). Omitted = no filter
minTvlUsdnumberMinimum TVL in USD (default 1000000). Example: 5000000
notionalUsdnumberNotional USD size for net-yield cost amortization and exitRisk TVL multiples (default 10000). Example: 10000
protocolsarrayOptional protocol slugs, e.g. ["aave-v3","morpho-blue"]. Blank entries are VALIDATION_ERROR (not treated as all protocols).
riskAppetitestringScoring weight profile: "balanced" (default/v1.1) | "conservative" | "aggressive"
sortBystringSort key: "risk_adjusted" (default) | "net_apy" | "gross_apy" | "tvl"
sortOrderstringSort direction: "desc" (default) | "asc"
sourceChainKeystringAgent's current chain for bridge cost estimate: ethereum | base | arbitrum (aliases: eth, ETH, Ethereum, arb, ARB, BASE). Blank/whitespace is VALIDATION_ERROR (omit the field to default). Unknown keys…

score_opportunity Score opportunity

Compute the full multi-factor risk-adjusted score for a single opportunity from list_yields. Chain: pass list_yields opportunities[].id as poolId, opportunityId, or id (same DefiLlama pool UUID; id is the canonical list field). Returns APY breakdown (base/reward/total), factor scores with rationales, net yield after gas/bridge, exitRisk heuristic (TVL vs notional + liq conf only; medium ≠ small pool; not queues/caps/transfer whitelist/eligibility/on-chain withdraw; do not treat low as free exit when knownIssues mention transfer/eligibility), warnings, and sources. sourceChainKey is ethereu…

ParameterTypeDescription
horizonDaysnumberHolding horizon in days for gas/bridge amortization (default 30). Example: 30
idstringSame as list_yields opportunities[].id (canonical response field name).
notionalUsdnumberNotional USD size for net-yield cost amortization and exitRisk TVL multiples (default 10000). Example: 10000
opportunityIdstringAlias for list_yields opportunities[].id (same pool key as poolId / id).
poolIdstringAlias for list_yields opportunities[].id (historical tool field). Same DefiLlama pool UUID. Example: "43641cf5-a92e-416b-bce9-27113d3c0db6"
sourceChainKeystringAgent's current chain for bridge cost estimate: ethereum | base | arbitrum (aliases: eth, ETH, Ethereum, arb, ARB, BASE). Blank/whitespace is VALIDATION_ERROR (omit the field to default). Unknown keys…

compare_opportunities Compare opportunities

Side-by-side comparison of 2–5 opportunities by risk-adjusted score. Pass list_yields opportunities[].id values as poolIds or opportunityIds. Returns ranked list, compact comparison table fields (including protocolSlug for get_protocol_risk), winnerId, and rationale bullets (including when raw APY leader differs from risk-adjusted winner). sourceChainKey is ethereum|base|arbitrum only (unknown → VALIDATION_ERROR; no invented bridge fee). Research only — non-custodial. Example: { "poolIds": ["pool-id-a", "pool-id-b", "pool-id-c"], "horizonDays": 30 }

ParameterTypeDescription
horizonDaysnumberHolding horizon in days for gas/bridge amortization (default 30). Example: 30
notionalUsdnumberNotional USD size for net-yield cost amortization and exitRisk TVL multiples (default 10000). Example: 10000
opportunityIdsarrayAlias for poolIds — same list_yields opportunities[].id values.
poolIdsarray2–5 list_yields opportunities[].id values. Example: ["id-a","id-b"]. Alias: opportunityIds.
sourceChainKeystringAgent's current chain for bridge cost estimate: ethereum | base | arbitrum (aliases: eth, ETH, Ethereum, arb, ARB, BASE). Blank/whitespace is VALIDATION_ERROR (omit the field to default). Unknown keys…

explain_score Explain score

Agent-readable explanation of why an opportunity received its risk-adjusted score. Chain: pass list_yields opportunities[].id as poolId, opportunityId, or id (aliases for the same key). Returns a summary paragraph, factor bullets with weighted contributions, net-yield notes, an exitRisk heuristic line (liquidity-only — not on-chain withdraw or transfer/eligibility; medium often confidence-driven, not pool size; extra bullet when knownIssues note transfer restrictions), plus id and protocolSlug (same as list_yields; pass protocolSlug to get_protocol_risk). sourceChainKey is ethereum|base|ar…

ParameterTypeDescription
horizonDaysnumberHolding horizon in days for gas/bridge amortization (default 30). Example: 30
idstringSame as list_yields opportunities[].id (canonical response field name).
notionalUsdnumberNotional USD size for net-yield cost amortization and exitRisk TVL multiples (default 10000). Example: 10000
opportunityIdstringAlias for list_yields opportunities[].id (same pool key as poolId / id).
poolIdstringAlias for list_yields opportunities[].id (historical tool field). Same DefiLlama pool UUID. Example: "43641cf5-a92e-416b-bce9-27113d3c0db6"
sourceChainKeystringAgent's current chain for bridge cost estimate: ethereum | base | arbitrum (aliases: eth, ETH, Ethereum, arb, ARB, BASE). Blank/whitespace is VALIDATION_ERROR (omit the field to default). Unknown keys…

get_protocol_risk Get protocol risk

Protocol-level risk card (age, audit signals, curated known issues, category, score 0–100). Chain: pass list_yields opportunities[].protocolSlug as protocol or protocolSlug. Display names also resolve case- and space-insensitively via DefiLlama protocol metadata (e.g. "Compound V3" → compound-v3, "Curve" → curve-dex, "Euler V2" → euler-v2). Unknown names return NOT_FOUND naming the field, with example {"protocolSlug":"aave-v3"} and up to 3 closest slugs. Higher score = lower protocol risk. Uses curated priors plus DefiLlama metadata when available. Research only — non-custodial.…

ParameterTypeDescription
protocolstringProtocol slug (DefiLlama project id) or display name, e.g. "aave-v3" or "Compound V3". Prefer list_yields opportunities[].protocolSlug.
protocolSlugstringAlias for protocol — list_yields opportunities[].protocolSlug (display names also resolve).