Skip to main content
Glama

aave_supply

Builds approval and supply transaction calldata to deposit an ERC20 token into AAVE V3 on supported chains.

Instructions

Build transaction(s) to supply (deposit) an ERC20 token into AAVE V3. Returns approval + supply calldata.

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

Input Schema

NameRequiredDescriptionDefault
assetYesToken address to supply
chainYesTarget chain
amountYesAmount in human-readable units (e.g. "1000.5") or "max" for maximum
senderYesAddress that will send the transaction
onBehalfOfNoAddress to receive aTokens (defaults to sender)

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, and it does disclose the most important trait: this builds transaction calldata rather than executing a deposit, returning an approval plus a supply call. It does not explain that the returned calls must be signed and submitted by the caller, in what order they must be executed, or what happens if allowance already exists.

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, front-loaded with the action and followed immediately by the return contract. Nothing is wasted and no caveats are buried.

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?

For a five-parameter transaction-builder with no annotations and no output schema, the description covers the action and the return type but leaves gaps: the structure of the returned calldata, the required approval-then-supply ordering, and caller-side signing/submission duties are all unstated.

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 (asset, chain, sender, amount, onBehalfOf) are already documented in the schema, making 3 the baseline. The description adds no semantics of its own, notably staying silent on the 'max' sentinel for amount and on how onBehalfOf affects where aTokens are minted.

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?

The description states a concrete verb ('supply (deposit)') plus the resource ('an ERC20 token') and target protocol/version ('AAVE V3'), and it names the return payload ('approval + supply calldata'). Specifying ERC20 implicitly separates it from a native-asset sibling, though the alternative is never named outright.

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: an agent can infer 'call this to deposit an ERC20 into Aave V3' and that native tokens are out of scope because of the word ERC20. There is no explicit when-to-use/when-not statement, no mention of prerequisites such as an existing allowance, and no pointer to a sibling for the native case.

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