Skip to main content
Glama

aave_flash_loan_simple

Build a single-asset AAVE V3 flash loan transaction without opening debt or fee waivers. Specify chain, receiver contract, token, and amount to get unsigned calldata.

Instructions

Build a single-asset flash loan transaction. Simpler than multi-asset: no debt opening, no fee waiver.

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

Input Schema

NameRequiredDescriptionDefault
assetYesToken address to borrow
chainYesTarget chain
amountYesAmount in human-readable units
paramsNoArbitrary bytes to pass to the receiver callback (hex-encoded)0x
receiverAddressYesContract that will receive the flash loan and execute the callback

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?

With no annotations, the description carries the full burden. It usefully discloses that the tool only BUILDS a transaction (rather than executing it) and that this variant omits debt opening and fee waivers, but it says nothing about the flash-loan premium being charged, repayment expectations, receiver-callback requirements, or approvals needed in the receiver contract. These are material omissions for a financial transaction-building tool, but the build-vs-execute distinction is real added value.

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?

Two short sentences with the core purpose front-loaded and zero filler. The comparative second sentence is compact, though it spends words on a relative comparison rather than absolute behavior.

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?

There is no output schema, so the description should ideally say what the caller receives (an unsigned transaction, presumably), and it does not. Still, for a five-parameter builder whose schema is fully documented, the description covers the essential identity and scope; the missing return-shape note is the main gap.

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 are already documented in the schema, including chain enum, address patterns, and the callback params bytes. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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+resource: "Build a single-asset flash loan transaction." The second sentence draws a distinction against a multi-asset variant ("no debt opening, no fee waiver"), so the agent can tell which flash-loan builder to pick, though the sibling is described generically rather than by name.

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 implied by the single-asset framing and the contrast with the multi-asset path, but there is no explicit "use this when" statement, no prerequisites (e.g., the asset must be approved to the pool), and no condition that would rule it out beyond asset count.

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