Skip to main content
Glama

aave_repay_native

Build a transaction to repay an AAVE V3 debt using the native token through WrappedTokenGateway, sending the native token value with the transaction.

Instructions

Build transaction to repay debt with native token via the WrappedTokenGateway. The native token value is sent with the transaction.

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>",
      "amount": "<amount>",
      "onBehalfOf": "<onBehalfOf>"
    },
    "name": "aave_repay_native"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget chain
amountYesAmount in native token units (e.g. "1.5" for 1.5 ETH)
onBehalfOfYesAddress whose debt to repay

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It does disclose two important behaviors beyond the schema: the output is an unsigned transaction to be built/signed rather than an executed repayment, and the native value travels as msg.value with the transaction. It omits what happens on over-repayment, whether the tx reverts for under-collateralized positions, and what the returned object looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the core action front-loaded and the native-value mechanism as a follow-up clarification. Nothing redundant with the name and nothing that could be cut without losing meaning.

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 3-parameter mutation-building tool with no annotations and no output schema, the description covers the essential mechanism but leaves gaps: it does not say the returned transaction must be signed and broadcast, nor describe error/precondition behavior. Adequate but not complete.

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 chain, amount units, and onBehalfOf. The description's note that the native value is sent with the transaction reinforces the amount semantics (it is msg.value, not an ERC-20 pull), but adds no new per-parameter constraints such as minimums or whether onBehalfOf may differ from the caller.

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?

States a specific verb and resource ('repay debt with native token') plus the mechanism ('via the WrappedTokenGateway'), which is enough to distinguish it from the ERC-20 and aToken repayment siblings without naming them. It stops short of an explicit sibling comparison, so it lands at a strong 4 rather than 5.

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

Usage Guidelines3/5

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

The 'native token' qualifier implies you use this when the debt should be repaid with ETH/MATIC/etc. rather than an ERC-20, which is enough to route an agent at a basic level. There is no explicit when-not guidance, no mention of prerequisites (e.g. that the caller must hold enough native balance for amount plus gas), and no named alternative.

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