Skip to main content
Glama

aave_repay_gho

Build transactions to repay GHO debt on AAVE V3, including approval when required; use "max" to repay the full debt.

Instructions

Build transaction(s) to repay (burn) GHO debt on AAVE V3. Includes approval if needed. Use "max" for full 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": {
      "sender": "<sender>",
      "amount": "<amount>"
    },
    "name": "aave_repay_gho"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of GHO to repay, or "max" for full debt
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.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful traits beyond the name: the operation burns GHO debt, and an approval transaction is bundled in if needed. It does not say that the result is an unsigned transaction the caller must sign and broadcast, nor does it cover failure modes such as repaying more than outstanding debt. That leaves a meaningful gap for a write-path transaction builder.

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, front-loaded with the action and resource, with no filler. The approval note and the max sentinel are each stated once and earn their place.

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?

There is no output schema, so the description should explain what the returned transaction object(s) look like and that they require signing and submission. It gestures at this with "Build transaction(s)" but never states it plainly. For a transaction-construction tool with a write path and no annotations, that is a real omission.

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 all three parameters (amount, sender, onBehalfOf) are already documented, including the "max" sentinel. The description repeats the "max" convention and adds nothing about onBehalfOf semantics or whether sender must hold the GHO. Baseline 3 applies since the schema does the heavy lifting.

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?

The description states a specific verb and resource: "Build transaction(s) to repay (burn) GHO debt on AAVE V3." Naming GHO explicitly distinguishes it from the sibling repay variants (aave_repay, aave_repay_native, aave_repay_with_atokens) without needing to enumerate them. It stops short of explicitly stating which sibling to use for non-GHO assets, but the scoping is unambiguous.

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?

There is no when-to-use guidance relative to alternatives; the agent must infer from the tool name alone that aave_repay handles non-GHO debt and that this tool is GHO-only. The only usage-ish note, "Use 'max' for full debt," concerns a parameter value rather than tool selection. No prerequisite conditions (GHO balance, existing debt) are mentioned.

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