Skip to main content
Glama

prepare_aave_borrow

DestructiveIdempotent

Prepare an unsigned Aave V3 variable-rate borrow transaction. Requires sufficient collateral already supplied.

Instructions

Build an unsigned Aave V3 borrow transaction (variable rate — stable rate is deprecated and reverts on production markets). The borrower must already have sufficient collateral supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYes
chainNoethereum
assetYes
amountYesHuman-readable decimal amount of `asset`, NOT raw wei/base units. Example: "1.5" for 1.5 USDC, "0.01" for 0.01 ETH. Pass "max" for full-balance withdraw/repay.
Behavior4/5

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

Annotations show destructiveHint=true and idempotentHint=true, but the description adds critical behavioral context: stable rate borrows revert on production markets, and the borrower must have collateral. This goes beyond annotations by disclosing a deprecated functionality that could cause failures.

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 concise sentences: the first explains the core action and a critical caveat, the second adds a prerequisite. No redundant information, every sentence adds value.

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?

The description does not specify the output format (e.g., unsigned transaction payload details) and has low parameter coverage. However, for a transaction preparation tool with clear sibling context, it is adequately complete for basic usage, though missing output description is a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only the 'amount' parameter has a description). The description repeats the 'max' option already in the schema but does not explain 'wallet', 'asset', or 'chain' parameters beyond what the schema provides. This fails to compensate for low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool builds an unsigned Aave V3 borrow transaction, specifies variable rate, and notes stable rate is deprecated. This distinguishes it from sibling tools like prepare_aave_repay or prepare_aave_supply.

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 description mentions a prerequisite (sufficient collateral) but does not explicitly state when to use this tool versus other borrow preparation tools (e.g., prepare_compound_borrow) or provide criteria for exclusion. Usage context is implied but not comprehensive.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/recon-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server