Skip to main content
Glama

aave_repay_with_atokens

Builds an Aave transaction that repays debt by burning aTokens, so you don't need underlying tokens. Specify chain, asset, and amount to get unsigned calldata.

Instructions

Build transaction to repay debt by burning aTokens directly (no need for underlying tokens).

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>",
      "asset": "<asset>",
      "amount": "<amount>"
    },
    "name": "aave_repay_with_atokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesUnderlying token address of the debt to repay
chainYesTarget chain
amountYesAmount in human-readable units (e.g. "1000.5") or "max" for maximum

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does signal that the tool builds rather than executes a transaction and that repayment happens via aToken burn, but it says nothing about approvals, what happens if the amount exceeds the aToken balance, whether the burn is irreversible, gas implications, or what the returned transaction contains.

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?

A single sentence with the distinguishing mechanism front-loaded and zero redundant wording. It is efficient, though the parenthetical is doing load-bearing work that could be stated more directly.

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 three-parameter, fully-required transaction-builder with no annotations and no output schema, the description covers the core mechanism but omits the approval prerequisite and the fact that the caller receives an unsigned transaction to submit. Minimum viable rather than 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%, with asset, chain, and amount each documented in the schema, including the "max" sentinel. The description adds no parameter-level meaning beyond that baseline, so a 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?

"Build transaction to repay debt by burning aTokens directly" gives a specific verb (repay) and a specific mechanism (burn aTokens), which implicitly separates it from the plain aave_repay sibling that would consume underlying tokens. It is clear but stops short of explicitly naming the alternative it contrasts with.

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 parenthetical "(no need for underlying tokens)" implies the condition under which this tool is preferred: the caller holds aTokens rather than the underlying asset. That preference is only implied, with no explicit "use X when / use Y instead" routing and no stated prerequisites such as aToken approvals or delegation.

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