Skip to main content
Glama

Based Loans

Server Details

Borrow USDC against Base tokens with no liquidations, or lend USDC. Quotes, risk data, unsigned txs.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
0xVarius/basedloans-agents
GitHub Stars
0
ChatGPT
–
Claude
–

TDQS

A3.8/5.0

Scored across 19 tools

Disambiguation4/5

Each tool targets a distinct resource or action (build_* for unsigned txs, get_* for reads, plus quote/explain/simulate helpers). The only mild overlaps are get_market vs list_markets (single token vs all tokens) and get_loan vs get_borrower_loans (one loan vs a wallet's loans), but the descriptions make the boundaries clear. build_borrow vs quote_borrow is also well differentiated (build tx vs pure math quote).

Naming Consistency5/5

Every tool follows a strict verb_noun convention: build_*, get_*, list_*, quote_*, explain_*, request_*, simulate_*. Snake_case throughout with no camelCase or style mixing. The verb prefix also encodes the tool's role (build = unsigned tx), making the set highly predictable.

Tool Count4/5

19 tools is on the heavy side but each corresponds to a real lending workflow operation (borrow, buyback, deposit, withdraw, limits, auto-redeploy, claims) plus supporting reads/helpers. Nothing feels trivial or redundant, though the surface is at the upper edge of what an agent can comfortably navigate.

Completeness5/5

The set covers the full lifecycle: quoting, building, and simulating transactions for both borrowers (borrow, buyback, claim collateral) and lenders (deposit, withdraw, limits, auto-redeploy, claim proceeds), plus per-loan/per-wallet/per-market reads, protocol params, risk, and token listing. No obvious operational gaps remain.

Available Tools

19 tools
build_borrowPrepare a loanA
Read-onlyIdempotent
Inspect

Returns the unsigned transactions to open a loan: an approval (only if needed) then openLoan. Includes the quote and warnings. The user's wallet must sign and send each step in order.

Inputs: term (required), asset (required), borrower (required), collateral_amount (required), +2 more.

build_buybackPrepare a buybackA
Read-onlyIdempotent
Inspect

Returns the unsigned transactions to pay back a loan and get collateral back: a USDC approval (only if needed) then buyback. Omit payment_usdc to pay the full remaining amount.

Inputs: loan_id (required), borrower (required), payment_usdc.

build_claim_collateralPrepare a collateral claimA
Read-onlyIdempotent
Inspect

Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.

Inputs: loan_ids (required).

build_claim_proceedsPrepare a proceeds claimA
Read-onlyIdempotent
Inspect

Returns the unsigned transaction to claim repaid USDC from loans you funded (mode withdraw) or put it straight back into lending (mode redeploy). Get loan IDs from get_lender_position.

Inputs: loan_ids (required), mode.

build_depositPrepare a lending depositA
Read-onlyIdempotent
Inspect

Returns the unsigned transactions to deposit USDC for lending, optionally setting per-token lending limits in the same transaction (needed before a first deposit can be lent). Check get_risk_report for each token first.

Inputs: lender (required), amount_usdc (required), limits.

build_set_auto_redeployPrepare auto re-lend settingA
Read-onlyIdempotent
Inspect

Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.

Inputs: enabled (required).

build_set_limitsPrepare per-token lending limitsA
Read-onlyIdempotent
Inspect

Returns the unsigned transaction to add, change or remove per-token lending limits. A limit cannot be set below what is already in active loans for that token.

Inputs: lender (required), limits (required).

build_withdrawPrepare a withdrawalA
Read-onlyIdempotent
Inspect

Returns the unsigned transaction to withdraw USDC that is not in active loans. Use "max" for everything available. as_musdc receives vault shares and skips the 0.25% withdrawal fee.

Inputs: lender (required), amount_usdc (required), as_musdc.

explain_collateral_typesCollateral types explainedA
Read-onlyIdempotent
Inspect

How Based Loans prices different kinds of collateral (regular tokens, two-hop priced tokens, staked and share tokens, escrowed tokens), with examples, and what each means for borrowers and lenders.

Inputs: no named parameters.

get_borrower_loansBorrower's loansB
Read-onlyIdempotent
Inspect

Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.

Inputs: borrower (required).

get_lender_positionLender positionB
Read-onlyIdempotent
Inspect

A lender's deposit, USDC in active loans, USDC available to withdraw, per-token limits, and every loan they funded with any repaid USDC or defaulted collateral they can claim.

Inputs: lender (required).

get_loanGet a loanB
Read-onlyIdempotent
Inspect

Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.

Inputs: loan_id (required).

get_marketGet one collateral tokenA
Read-onlyIdempotent
Inspect

Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.

Inputs: asset (required).

get_protocol_infoProtocol infoA
Read-onlyIdempotent
Inspect

Live protocol parameters: loan fee, the three loan terms with their durations and buyback costs, minimum loan and deposit sizes, per-token lending limit bounds, and whether the protocol is paused.

Inputs: no named parameters.

get_risk_reportToken risk reportA
Read-onlyIdempotent
Inspect

Live risk data for lending against (or borrowing with) a token: how many price sources it has and whether they cross-check each other, how far back its pool price history goes, how much trading it would take to move its pool price 2x and 10x, USDC available to borrow against it, its active loan limit, and plain-language explanations of every flag. Use this before setting a lending limit on a token.

Inputs: asset (required), skip_depth.

list_marketsList collateral tokensA
Read-onlyIdempotent
Inspect

Every token currently accepted as collateral, with price, max loan-to-value, USDC available to borrow against it, active loans, and how it is priced. Set only_with_funds to see only tokens lenders are currently backing.

Inputs: only_with_funds.

quote_borrowQuote a loanA
Read-onlyIdempotent
Inspect

Exact loan quote using the same math the contract runs: USDC you receive after the fee, buyback cost, due date, and how much collateral is used. It replays the lender queue, so the funded amount matches what the loan would really get, and warns (with a suggested amount) when a loan would be funded short.

Inputs: term (required), asset (required), collateral_amount (required), loan_amount_usdc.

request_token_listingRequest a new tokenA
Read-onlyIdempotent
Inspect

Check whether a token is accepted as collateral. If it is not, returns a pre-filled link to the Based Loans request form for the user to open and submit. Nothing is submitted automatically.

Inputs: token (required).

simulate_transactionSimulate a transactionA
Read-onlyIdempotent
Inspect

Dry-runs one prepared transaction from a wallet against the latest block and explains the failure in plain language if it would revert. Steps that depend on an earlier approval only pass after that approval is mined.

Inputs: to (required), data (required), from (required), value.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Undercollateralized credit lines for autonomous agents based on trust scoring, enabling on-chain credit scoring, agent-to-agent loans, and USDC settlement on Base L2.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes JSON-RPC 2.0 tools that let AI agents scan Base L2 lending positions approaching liquidation, simulate flash-loan-backed debt rescue plans, and generate the calldata needed to repay Morpho Blue and Aave v3 debt while avoiding the 5% penalty. Agents and builders can also attach a referral wallet to collect an instant 0.05% USDC revenue share paid atomically in the same block.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      P2P Crypto and Flashloans. Lets AI agents browse, quote and (optionally) transact with the FlashBank contracts — the P2P term-loan escrow and the flash-loan router — on Ethereum, Base, Arbitrum and the Sepolia playground.
      15
      78 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.