Skip to main content
Glama

aave_borrow

Build an unsigned AAVE V3 borrow transaction against supplied collateral at a variable rate for a specified chain, asset, and amount.

Instructions

Build transaction to borrow an asset from AAVE V3 against supplied collateral. Uses variable rate.

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_borrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesToken address to borrow
chainYesTarget chain
amountYesAmount in human-readable units (e.g. "1000.5") or "max" for maximum
senderYesAddress that will send the transaction
onBehalfOfNoAddress that will incur the debt (defaults to sender, requires credit delegation if different)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 burden. It does add two useful facts — this builds an unsigned transaction rather than executing a borrow, and the rate mode is variable — but omits prerequisites (approval, existing collateral), liquidation/health-factor consequences, and whether the returned transaction must be signed and submitted separately.

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 sentences, front-loaded with the action and resource, and the rate-mode detail is placed last. No filler or restatement of the tool name.

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

Completeness4/5

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

For a 5-parameter transaction-builder with no output schema, the definition covers what is being built and the rate mode, and the schema covers all parameters. The main gap is the absence of any prerequisite or risk framing, which matters for a borrowing operation.

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 five parameters, including onBehalfOf credit delegation and amount's 'max' option, are already documented in the schema. The description adds only the collateral/rate context, so 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?

States a specific verb and resource: 'Build transaction to borrow an asset from AAVE V3 against supplied collateral.' That distinguishes it from read siblings such as aave_get_user_reserve_data, and 'asset' plus variable rate separates it somewhat from aave_borrow_gho/aave_borrow_native, but it never names those alternatives explicitly.

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?

Usage is only implied: 'against supplied collateral' hints that collateral must already be in place and that this is a V3 variable-rate borrow. There is no explicit when-to-use, when-not-to-use, or routing to aave_borrow_gho / aave_borrow_native for special assets.

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