Skip to main content
Glama

Server Details

Borrow USDC against Base tokens with no liquidations, or lend USDC for fixed-term returns. Live quotes, token risk data and ready-to-sign transactions. No login, never holds keys.

Ownership verified
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.9/5.0

Scored across 19 tools

Disambiguation4/5

Each tool has a clearly stated resource+action, and near-neighbors are explicitly differentiated (quote_borrow vs build_borrow, get_loan vs get_borrower_loans, build_claim_proceeds vs build_claim_collateral). The main soft spots are get_market / list_markets / get_risk_report, which all return token-level data, and build_deposit overlapping with build_set_limits (deposit can set limits too); descriptions mitigate but don't remove the ambiguity. request_token_listing is also slightly misnamed relative to its read-only behaviour, though the description makes that clear.

Naming Consistency5/5

Consistent snake_case verb_noun throughout, with a predictable family split: build_* for transaction builders, get_*/list_* for reads (list_ for collections, get_ for singletons), plus quote_/simulate_/explain_/request_ for the remaining distinct verbs. No camelCase mixing or vague bare verbs.

Tool Count4/5

19 tools sits at the upper end but each maps to a distinct borrower or lender operation (8 build_*, 7 reads, quote/simulate/explain/listing helpers). Nothing looks redundant, though the surface is broad enough that a shorter combined deposit+limits builder could have trimmed a tool or two.

Completeness5/5

Full lifecycle is covered: quoting and borrowing, buyback/repay, lender deposit/withdraw/limits/auto-redeploy, plus both claim paths for repaid USDC and defaulted collateral. Reads span single loan, borrower loans, lender position, market, market list, risk and protocol params, and simulate_transaction plus request_token_listing close the pre-flight and onboarding gaps.

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 settingB
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
      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
      57 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Broker-only credit/lending discovery shim for AI agents, surfacing real lending markets from licensed/established third-party protocols and routing applications.
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.