Skip to main content
Glama

FinTech Hodl Base DeFi risk intel

get_lending_rates

Lending rates on Base: supply APY for every tracked money market and lending vault (Aave, Morpho, Compound, Moonwell and others), quoted next to the APY lenders actually earned over 7 and 30 days, read on-chain, with a risk score. Useful for choosing where to lend USDC, ETH or stablecoins. Ids work with every other route. 404 for unknown paths and 400 for invalid arguments, before any payment; 503 while data refreshes; charged only for a 200. Price: $0.05 USDC on Base (x402), charged only for a successful answer.

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_lending_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOrder: risk_adjusted (default) ranks by opportunity score; realized_apy by the 30-day realized APY; sustainable_apy by the APY expected once incentives fade.
assetNoToken symbol, e.g. USDC or WETH.
limitNoHow many items (default 20).
min_apyNoMinimum quoted APY, percent.
risk_maxNoMaximum risk score (0-100, lower is lower modelled risk).
stable_onlyNoOnly stablecoin principal.
realized_onlyNoOnly opportunities with a realized on-chain APY.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does substantial work: it discloses that data is read on-chain, that 404/400 are returned before any payment, that 503 occurs during refresh, and that billing is $0.05 USDC on Base via x402 charged only on a 200. It does not cover pagination or max result-set behavior beyond the limit parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what the tool returns, then usage, then error/payment semantics. Slightly wasteful redundancy between "charged only for a 200" and "charged only for a successful answer," plus the irrelevant Ids sentence, but overall dense and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only listing tool with no output schema, no annotations and seven optional filters, the description supplies purpose, returned fields, error semantics and payment cost. The main remaining gap is the response shape and pagination, but the field-level summary largely compensates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter including the sort enum is already documented in the schema, establishing a baseline of 3. The description adds no per-parameter meaning (nothing on min_apy, risk_max or realized_only) and the line "Ids work with every other route" refers to identifiers this tool does not accept.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (lending rates on Base) with concrete returned data: quoted supply APY, realized 7/30-day APY, and a risk score across named protocols (Aave, Morpho, Compound, Moonwell). The lending/vault scope is clear, but it never differentiates itself from overlapping siblings like get_yields or get_yield_farming, so an agent must guess which route fits.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Useful for choosing where to lend USDC, ETH or stablecoins" gives an implied use case but no explicit when-to-use/when-not criteria and names no alternative route. Given that get_yields and get_yield_farming appear in the sibling set, the absence of routing guidance leaves real ambiguity unresolved.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources