Skip to main content
Glama

Prepare a Loan Repayment

prepare_repay_loan_calldata

Builds an unsigned transaction blueprint for repaying a Gavel loan, including the prerequisite approval for the repayment amount.

Validates that the loan is live and that you are its borrower. Repay before maturity or the lender may claim your collateral.

The repayment is transferred directly to the current holder of the lender position. On a USDC loan it reverts if USDC refuses that holder or is paused (known issue KI-3); the blueprint then carries a warning saying so.

Returns an unsigned transaction blueprint for the requested intent. The user is responsible for reviewing, signing, and broadcasting via their own wallet. Aletheia does not hold keys or dispatch transactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loan_idYesThe loan to repay. See get_user_positions.
networkNoNetwork. Default 'arbitrum-one' (mainnet, real funds).arbitrum-one
borrower_addressYesYour address — must match the loan's borrower.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.