Server definition
- Hash
- sha256:66396a668cd9872dcda5eb81cb7d66abb5a501f236c1e3e3d6a02e381da70cf4
- What it is
- What a remote MCP server returned when asked what it offers: 19 tools
The blob, as servednamed by its sha256
{
"instructions": "Based Loans is a fixed-term lending protocol on Base with no liquidations. A borrower deposits a token as collateral and receives USDC right away. They can buy the collateral back at a fixed price any time before the due date. If they do not, they keep the USDC and the lenders who funded the loan receive the collateral instead. Prices can move as much as they like during the loan; nothing is ever sold off early.\n\nLenders deposit USDC and choose which tokens they are willing to lend against, with a USDC limit per token. No lender is exposed to a token they did not choose.\n\nHow to help a user:\n- To borrow: get_market or list_markets, then quote_borrow, then build_borrow. Always show the buyback cost and due date before they commit.\n- To lend: get_risk_report for every token they are considering, explain the flags in plain words, then build_deposit with limits.\n- To see positions: get_borrower_loans or get_lender_position.\n- If a token is not supported: request_token_listing returns a link for the user to submit. Never claim a request was submitted.\n\nTransaction tools return unsigned transactions in order (approval first when needed). This server never holds keys and never sends anything. The user's wallet signs each step. You can dry-run a step with simulate_transaction.\n\nAll amounts are decimal strings in token units (USDC has 6 decimals). Every number is read live from Base mainnet. Risk reports describe the data; they are not advice.",
"tools": [
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
},
"borrower": {
"description": "Wallet that will sign; used to skip unneeded approvals and check balances",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"collateral_amount": {
"description": "Collateral to offer, in token units, e.g. 0.5. It is a maximum: only what the loan needs is taken",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
"loan_amount_usdc": {
"description": "Loan amount before the fee, in USDC. Omit to borrow the most the collateral allows",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
"max_shortfall_bps": {
"description": "Max gap between requested and funded amount in basis points. Omit for the protocol default.",
"maximum": 10000,
"minimum": 0,
"type": "integer"
},
"term": {
"anyOf": [
{
"enum": [
"short",
"medium",
"long"
],
"type": "string"
},
{
"maximum": 2,
"minimum": 0,
"type": "integer"
}
],
"description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
}
},
"required": [
"asset",
"collateral_amount",
"term",
"borrower"
],
"type": "object"
},
"name": "build_borrow",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"borrower": {
"description": "Borrower wallet that will sign; must be the wallet that opened the loan",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"loan_id": {
"anyOf": [
{
"pattern": "^\\d+$",
"type": "string"
},
{
"minimum": 0,
"type": "integer"
}
],
"description": "Loan ID"
},
"payment_usdc": {
"description": "USDC to pay. Omit to pay everything left and get all collateral back",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
}
},
"required": [
"loan_id",
"borrower"
],
"type": "object"
},
"name": "build_buyback",
"outputSchema": null
},
{
"description": "Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"loan_ids": {
"description": "IDs of past-due loans you funded, from get_lender_position (1 to 50)",
"items": {
"anyOf": [
{
"pattern": "^\\d+$",
"type": "string"
},
{
"minimum": 0,
"type": "integer"
}
],
"description": "Loan ID"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
}
},
"required": [
"loan_ids"
],
"type": "object"
},
"name": "build_claim_collateral",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"loan_ids": {
"description": "IDs of loans you funded, from get_lender_position (1 to 50)",
"items": {
"anyOf": [
{
"pattern": "^\\d+$",
"type": "string"
},
{
"minimum": 0,
"type": "integer"
}
],
"description": "Loan ID"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
},
"mode": {
"description": "withdraw sends the USDC to your wallet (default); redeploy puts it back into lending",
"enum": [
"withdraw",
"redeploy"
],
"type": "string"
}
},
"required": [
"loan_ids"
],
"type": "object"
},
"name": "build_claim_proceeds",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount_usdc": {
"description": "USDC to deposit, e.g. 500",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
"lender": {
"description": "Lender wallet that will sign; used to skip unneeded approvals and check balances",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"limits": {
"description": "Per-token lending limits to set in the same transaction. A first deposit needs at least one to be lent",
"items": {
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
},
"limit_usdc": {
"description": "Max USDC to lend against this token; 0 removes it",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
}
},
"required": [
"asset",
"limit_usdc"
],
"type": "object"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
}
},
"required": [
"amount_usdc",
"lender"
],
"type": "object"
},
"name": "build_deposit",
"outputSchema": null
},
{
"description": "Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"enabled": {
"description": "true to re-lend repaid principal automatically, false to keep it available to withdraw",
"type": "boolean"
}
},
"required": [
"enabled"
],
"type": "object"
},
"name": "build_set_auto_redeploy",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"lender": {
"description": "Lender wallet that will sign",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"limits": {
"description": "Tokens and the max USDC to lend against each",
"items": {
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
},
"limit_usdc": {
"description": "Max USDC to lend against this token; 0 removes it",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
}
},
"required": [
"asset",
"limit_usdc"
],
"type": "object"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
}
},
"required": [
"limits",
"lender"
],
"type": "object"
},
"name": "build_set_limits",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount_usdc": {
"anyOf": [
{
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
{
"const": "max",
"type": "string"
}
],
"description": "USDC to withdraw, or \"max\" for everything not in active loans"
},
"as_musdc": {
"description": "Receive mUSDC vault shares instead of USDC, skipping the 0.25% withdrawal fee",
"type": "boolean"
},
"lender": {
"description": "Lender wallet that will sign",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"amount_usdc",
"lender"
],
"type": "object"
},
"name": "build_withdraw",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "explain_collateral_types",
"outputSchema": null
},
{
"description": "Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"borrower": {
"description": "Borrower wallet address on Base",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"borrower"
],
"type": "object"
},
"name": "get_borrower_loans",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"lender": {
"description": "Lender wallet address on Base",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"lender"
],
"type": "object"
},
"name": "get_lender_position",
"outputSchema": null
},
{
"description": "Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"loan_id": {
"anyOf": [
{
"pattern": "^\\d+$",
"type": "string"
},
{
"minimum": 0,
"type": "integer"
}
],
"description": "Loan ID"
}
},
"required": [
"loan_id"
],
"type": "object"
},
"name": "get_loan",
"outputSchema": null
},
{
"description": "Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
}
},
"required": [
"asset"
],
"type": "object"
},
"name": "get_market",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "get_protocol_info",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
},
"skip_depth": {
"description": "Skip the pool depth calculation (faster)",
"type": "boolean"
}
},
"required": [
"asset"
],
"type": "object"
},
"name": "get_risk_report",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"only_with_funds": {
"description": "Only tokens with USDC available to borrow right now",
"type": "boolean"
}
},
"type": "object"
},
"name": "list_markets",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"asset": {
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB",
"minLength": 1,
"type": "string"
},
"collateral_amount": {
"description": "Collateral to offer, in token units, e.g. 0.5",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
"loan_amount_usdc": {
"description": "Loan amount before the fee. Omit to borrow the most the collateral allows.",
"pattern": "^\\d+(\\.\\d+)?$",
"type": "string"
},
"term": {
"anyOf": [
{
"enum": [
"short",
"medium",
"long"
],
"type": "string"
},
{
"maximum": 2,
"minimum": 0,
"type": "integer"
}
],
"description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
}
},
"required": [
"asset",
"collateral_amount",
"term"
],
"type": "object"
},
"name": "quote_borrow",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"token": {
"description": "Token contract address on Base",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
},
"name": "request_token_listing",
"outputSchema": null
},
{
"description": "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.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"data": {
"description": "The step's calldata, as returned by a build_ tool",
"pattern": "^0x[0-9a-fA-F]*$",
"type": "string"
},
"from": {
"description": "Wallet that would send the transaction",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"to": {
"description": "The step's to address, as returned by a build_ tool",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"value": {
"description": "Native value in wei. Always 0 for Based Loans calls",
"pattern": "^\\d+$",
"type": "string"
}
},
"required": [
"to",
"data",
"from"
],
"type": "object"
},
"name": "simulate_transaction",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:66396a668cd9872dcda5eb81cb7d66abb5a501f236c1e3e3d6a02e381da70cf4 | sha256sum