Skip to main content
Glama

Prepare an Aave Vault deposit, mint, withdraw or redeem

prepare_vault_action
Read-only

v3 only. Build an unsigned transaction to move value in or out of an Aave Vault. Non-custodial: the user's wallet signs and submits, so building one commits them to nothing - choose sensible values, build it, and say what you chose rather than stopping to ask. Which unit 'amount' is in depends on the action: 'deposit' and 'withdraw' take ASSETS, 'mint' and 'redeem' take SHARES. Set 'asAToken' true to move the reserve's aToken instead of its underlying token, which skips supplying first when the wallet already holds the aToken. 'recipient' is only for sending the result to a different address than the sender. A deposit or mint needs an allowance: when the result is ApprovalRequired, submit its 'approval' transaction, wait for it to be mined, then submit the 'originalTransaction' beside it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vaultYesVault contract address, 0x-prefixed (40 hex chars).
actionYesWhich side to build: deposit/withdraw in assets, mint/redeem in shares.
amountYesAmount in main units, in the unit the action takes (assets or shares).
senderYesWallet address, 0x-prefixed (40 hex chars).
chainIdYesChain the vault is on, e.g. 1 for Ethereum.
versionNoOptional, and only 'v3': this tool exists on v3 only.
asATokenNoMove the reserve's aToken rather than its underlying token (default false).
recipientNoOptional address to receive the shares or the assets. Omit the argument entirely to use the sender.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the tool is known to be non-mutating. The description goes well beyond this: it reveals that the unsigned transaction commits the user to nothing, explains the approval requirement and the exact sequence (submit approval, wait, then submit originalTransaction), and clarifies that 'recipient' is only for relaying. It also exposes the dependency of unit on action. This is rich behavioral disclosure with no contradictions.

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?

The description is compact yet dense, with every sentence adding distinct value. It leads with the key constraint ('v3 only') and the core operation, then methodically covers the crucial edge cases (units, asAToken, recipient, approval flow). No fluff or repetition of schema fields; it's an ideal length for an agent to parse quickly.

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

Completeness5/5

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

Given the tool's complexity (8 params, 5 required, no output schema), the description covers all critical aspects an agent needs to call it correctly: version restriction, non-custodial nature, unit semantics, approval handling, and even hints at the response shape (ApprovalRequired, approval, originalTransaction). There's no missing information that would cause an agent to mis-invoke the tool.

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

Parameters5/5

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

Although schema coverage is 100% (all parameters have descriptions), the tool description adds substantial semantic meaning: it clarifies the ambiguous 'amount' by tying it to action type (assets vs shares), explains the effect of asAToken (skips supplying when wallet holds aToken), and states that omitting recipient defaults to sender. This elevates the parameter understanding beyond the schema alone.

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's purpose: 'v3 only. Build an unsigned transaction to move value in or out of an Aave Vault.' It identifies the specific resource (Aave Vault), the verb (build), and the exact set of actions (deposit, mint, withdraw, redeem). This distinguishes it from sibling prepare_* tools like prepare_order or prepare_liquidation, which operate on different instruments.

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?

The description provides strong usage context: it's v3 only, non-custodial (so the agent should proceed without asking), and explains the unit handling (assets vs shares) and asAToken behavior. It also describes the approval flow when needed. However, it does not explicitly name alternative tools or state when to use this instead of them, though the abundance of other prepare_* siblings makes that somewhat implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources