Skip to main content
Glama

Where to borrow against a token

borrow_markets
Read-only

Where a holder can borrow against a token: every lending market that takes it as collateral (Euler vaults, Morpho markets, Aave, Spark, Venus and other pooled lenders), with the LTV (the most you can borrow, in % of the collateral), the liquidation LTV, the borrow APY and what the market can lend now. Give amount_usd, the USD value of the tokens to post, to see what that position could borrow in each market and split across markets, so a position larger than the markets can absorb is answered honestly. Ranked by what can be borrowed, then the rate. Updated hourly; market data, not a quote. Free data from AlphaGrowth (alphagrowth.io).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "token": "<token>"
    },
    "name": "borrow_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 50 routes per page.
chainNoOnly markets on this chain: its slug or name (base, Ethereum, unichain).
tokenYesThe token to post as collateral: a symbol (ONDO), a name (Ondo Finance), a project slug or a contract address.
borrowNoWhat to borrow: stablecoins, or a token symbol (DAI, WETH). Leave out for anything.
amount_usdNoThe USD value of the tokens to post, to size what they could borrow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint true, destructiveHint false, openWorldHint false), so the description earns credit for the extra disclosure it adds: hourly refresh cadence, the ranking order (borrow capacity then rate), the honest-answering behavior for oversized positions, and the caveat that results are reference data, not executable quotes. It stops short of describing pagination behavior despite a page 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?

The rationale is front-loaded with the what/where, followed by the return fields, then the parameter guidance and provenance. It is a single dense block with some run-on parentheticals, but nearly every clause carries information an agent would otherwise have to infer.

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

Completeness5/5

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

There is no output schema, and the description compensates by enumerating the returned metrics and their ordering, plus freshness and sourcing. For a read-only single-resource query with five well-documented parameters, an agent has everything needed to call it and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description goes beyond by explaining the intent of amount_usd - it sizes borrow capacity per market and across a split, and drives the honest edge-case handling. It adds no extra gloss for chain, borrow, or page, but it does not need to since the schema documents each.

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

Purpose5/5

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

The description states a specific capability - finding every lending market that accepts a given token as collateral - and enumerates the exact return fields (LTV, liquidation LTV, borrow APY, available liquidity). It also names the protocol families (Euler, Morpho, Aave, Spark, Venus), which makes it unmistakable against siblings like token_prices or project_tvl_history.

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

Usage Guidelines4/5

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

Usage is clear: pass token to see markets, and pass amount_usd to size a position and see per-market and split allocation. It also sets the boundary that this is market data rather than a live quote. There is no explicit exclusion naming a sibling alternative, but the intent and preconditions are unambiguous.

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