Skip to main content
Glama

aave_repay

Build AAVE V3 repayment transactions for borrowed assets; set amount to "max" to repay the entire debt.

Instructions

Build transaction(s) to repay borrowed assets on AAVE V3. Use amount "max" to repay entire debt.

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": {
      "chain": "<chain>",
      "sender": "<sender>",
      "asset": "<asset>",
      "amount": "<amount>"
    },
    "name": "aave_repay"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesToken address to repay
chainYesTarget chain
amountYesAmount in human-readable units (e.g. "1000.5") or "max" for maximum
senderYesAddress that will send the transaction
onBehalfOfNoAddress whose debt to repay (defaults to sender)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose the key trait that this builds transaction(s) rather than submitting them, and that 'max' repays the full debt, but it omits approval requirements, who signs/sends, and why the output may be plural 'transaction(s)'.

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?

Two short sentences, front-loaded with the purpose, with no filler. The second sentence is somewhat redundant with the schema, which keeps it from a 5.

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

Completeness3/5

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

For a 4-required-parameter transaction-builder with no annotations and no output schema, the description is thin: it never says what is returned (unsigned tx data vs. executed result), whether a separate approval step is needed, or how onBehalfOf interacts with the sender's debt.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains asset, chain, sender, onBehalfOf and the 'max'/'human-readable units' semantics of amount. The description's max note therefore repeats structured data rather than adding meaning; baseline 3 is appropriate.

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

Purpose4/5

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

Specific verb ('Build transaction(s)') plus resource ('repay borrowed assets on AAVE V3'), so an agent knows this constructs a repayment transaction rather than executing one. It does not distinguish itself from the nearby repayment variants (aave_repay_gho, aave_repay_native, aave_repay_with_atokens), leaving the generic-vs-specialized choice implicit.

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

Usage Guidelines2/5

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

The only guidance is a parameter tip ('Use amount "max" to repay entire debt'), which is already in the schema. There is no when-to-use, no prerequisite mention (e.g. token approval or existing debt), and no pointer to the GHO/native/with-atokens alternatives that a sibling catalog clearly offers.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.