Skip to main content
Glama

aave_withdraw

Build an unsigned transaction to withdraw a supplied asset from AAVE V3, including the option to withdraw the entire balance by setting the amount to "max".

Instructions

Build transaction to withdraw a supplied asset from AAVE V3. Use amount "max" to withdraw entire balance.

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

Input Schema

NameRequiredDescriptionDefault
toNoRecipient of withdrawn tokens (defaults to sender)
assetYesUnderlying token address to withdraw
chainYesTarget chain
amountYesAmount in human-readable units (e.g. "1000.5") or "max" for maximum
senderYesAddress that will send the transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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, and it does contribute one genuinely important trait: this only *builds* a transaction, it does not execute or submit it. Beyond that it is silent on approvals, whether withdrawal can fail due to health factor or available balance, and what the response object looks like.

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, zero filler, and the core action is front-loaded in the first clause. The second sentence is a single high-value usage rule rather than restating the schema.

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 tool builds a state-changing DeFi transaction with five parameters, no annotations, and no output schema, so the description needs to do more work than it does. It never covers the post-build step (sign/broadcast), approval requirements, or failure conditions like insufficient supplied balance or health-factor violation, which are the main things an agent would get wrong here.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3 and the schema already documents every parameter including the "max" sentinel for amount. The description adds a small amount of value by framing `asset` as the supplied (non-native) underlying token and reinforcing the "max" semantics, though `to` defaulting to sender and the chain enum are left entirely to the schema.

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?

"Build transaction to withdraw a supplied asset from AAVE V3" gives a specific verb (withdraw), a specific resource (a supplied/ERC-20 asset), and the protocol version. The word "supplied" implicitly separates it from the native-asset sibling, but it never names that sibling, so differentiation is inferred rather than stated.

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?

The only guidance is "Use amount 'max' to withdraw entire balance," which is a parameter hint, not tool selection guidance. There is no statement of when to pick this over aave_withdraw_native, no preconditions (existing supply balance, health-factor impact), and no mention of what to do with the built transaction afterwards.

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