Skip to main content
Glama

aave_liquidation_call

Build an Aave V3 liquidation transaction for an undercollateralized position: repay debt to receive collateral plus bonus; requires debt asset approval.

Instructions

Build transaction to liquidate an undercollateralized position (health factor < 1). Caller repays debt and receives collateral + bonus. Requires debt asset approval.

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>",
      "collateralAsset": "<collateralAsset>",
      "debtAsset": "<debtAsset>",
      "user": "<user>",
      "debtToCover": "<debtToCover>"
    },
    "name": "aave_liquidation_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesAddress of the borrower being liquidated
chainYesTarget chain
senderYesAddress that will execute the liquidation
debtAssetYesToken address of the debt being repaid
debtToCoverYesAmount of debt to repay in human-readable units. Up to 50% of debt (100% if health factor < 0.95). Use "max" for maximum allowed.
receiveATokenNotrue = receive aTokens, false = receive underlying collateral
collateralAssetYesToken address the liquidator will receive as collateral

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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: it usefully discloses that this only builds an unsigned transaction, that the caller repays debt and receives collateral plus a bonus, and that debt asset approval is required. It omits what the built transaction looks like (calldata vs. submitted tx), whether health factor is validated server-side, and any failure behavior for positions that are not liquidatable.

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?

Three short sentences, front-loaded with the action and condition, then mechanics, then prerequisite. No filler or repetition.

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 7-parameter, 6-required mutation tool with no annotations and no output schema, the definition covers purpose, economics, and approval prerequisite but leaves the return shape and execution semantics unstated. An agent knows what it does and roughly when, but not exactly what comes back or how failures surface.

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%, including the non-obvious debtToCover 'max' sentinel and the 50%/100% cap rule, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond what the schema already provides, which is the correct baseline 3.

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 ("Build transaction to liquidate an undercollateralized position") plus the triggering condition (health factor < 1). It is clearly distinguishable from sibling repay/borrow tools, though it never names an alternative explicitly.

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

Usage Guidelines4/5

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

Gives a concrete precondition (health factor < 1) and a prerequisite (debt asset approval) that tells an agent when this tool is applicable and what must happen first. It stops short of naming alternatives such as aave_repay for healthy positions or aave_get_user_account_data for checking health.

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