Skip to main content
Glama

evm_supply_asset

Deposit tokens into lending protocols like Aave or Compound to earn interest and use them as collateral for borrowing. Returns supplied amount, aTokens received, APY, and collateral status.

Instructions

Supply assets to lending protocols (Aave, Compound, etc.).

Deposit tokens to earn interest and use as collateral for borrowing. Works with major lending protocols across chains.

PARAMETERS:

  • chain: Target EVM chain

  • protocol: Lending protocol (aave, compound, radiant, etc.) - optional, auto-detects

  • asset: Token address to supply

  • amount: Amount to supply in token units

  • privateKey: Supplier's private key

  • enableAsCollateral: Use as collateral for borrowing (default: true)

LENDING PROTOCOLS: • Aave: Most chains, variable/stable rates • Compound: Ethereum, algorithmic rates • Radiant: Arbitrum, cross-chain collateral • Venus: BSC, isolated pools

SUPPLY BENEFITS: • Earn interest on idle assets • Use as collateral for loans • Receive aTokens/cTokens (interest-bearing) • Withdraw anytime (if not borrowed against)

Returns supplied amount, aTokens received, APY, and collateral status.

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>",
      "asset": "<asset>",
      "amount": "<amount>",
      "privateKey": "<privateKey>"
    },
    "name": "evm_supply_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesToken address to supply
chainYes
amountYesSupply amount in token units
protocolNoLending protocol (optional, auto-detects)
privateKeyYesSupplier private key
enableAsCollateralNoEnable as collateral (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses useful behavior such as receiving aTokens/cTokens, optional collateralization, and the ability to withdraw unless borrowed against, but it omits operational details like token approval requirements, gas handling, private-key security, and protocol risks.

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?

The description is front-loaded and organized into useful sections for protocols and supply benefits. Some statements are repetitive, such as restating support for major lending protocols across chains, but the extra detail generally earns its place.

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 performs a financial mutation with six parameters and no annotations, so it needs more behavioral context than average. The description covers protocol options, benefits, and return values, but lacks prerequisites such as token approvals, transaction signing behavior, and failure modes.

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 high at 83%, so most parameter meaning is already structured. The description adds some context for protocol auto-detection and collateral default, but does not explain amount formatting, approval prerequisites, or how auto-detection selects a protocol.

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 states a specific verb and resource: supply assets to lending protocols. It names Aave, Compound, and other protocols, making the lending-deposit action clear without relying on the tool name alone.

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?

It clearly explains when to use the tool: to deposit tokens to earn interest and use as collateral. It does not explicitly state when not to use it or name alternative tools, but the context is strong enough for an agent to identify the intended scenario.

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

Deploy Server

Other Tools