Skip to main content
Glama

aave_approve_delegation

Build a transaction to approve credit delegation on a variable debt token, enabling a delegatee to borrow up to a specified amount on the delegator's behalf.

Instructions

Build transaction to approve credit delegation on a variable debt token. Allows the delegatee to borrow up to the specified amount on behalf of the delegator.

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>",
      "variableDebtToken": "<variableDebtToken>",
      "delegatee": "<delegatee>",
      "amount": "<amount>",
      "underlyingAsset": "<underlyingAsset>"
    },
    "name": "aave_approve_delegation"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget chain
amountYesMaximum amount the delegatee can borrow, in human-readable units. Use "max" for unlimited.
delegateeYesAddress to grant borrowing rights to
underlyingAssetYesUnderlying asset address (to resolve decimals)
variableDebtTokenYesVariable debt token address (get via aave_get_reserve_token_addresses)

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 does disclose the important trait that this 'builds' a transaction rather than executing it, but says nothing about required sender permissions, whether the delegator must already have supplied collateral, gas, or what happens if a delegation 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences with the core action front-loaded and the consequence second. No filler, though the second sentence partially repeats what the tool name already conveys.

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?

For a five-required-parameter transaction-builder with no output schema and no annotations, the description covers the core intent and the fact that a transaction is produced. It stops short of describing the returned transaction object or the required follow-up signing step, leaving a modest 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 each parameter is already documented, including the 'max' sentinel and the pointer to aave_get_reserve_token_addresses for the variable debt token. The description only restates the meaning of amount/on-behalf-of semantics, adding essentially no new parameter detail.

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 definition uses a specific verb+resource: 'Build transaction to approve credit delegation on a variable debt token.' This is clearly distinct from plain borrowing or AAVE-token governance delegation, though it never explicitly names the nearby aave_delegate / aave_delegate_by_type siblings to draw the contrast.

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: the second sentence explains the effect ('Allows the delegatee to borrow up to the specified amount on behalf of the delegator'), so an agent can infer this precedes a delegatee's borrow. There is no explicit when-to-use, when-not-to-use, or routing advice against aave_delegate or aave_get_delegation_info.

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