Skip to main content
Glama

aave_get_flash_loan_premium

Retrieves the current Aave V3 flash loan premium (fee percentage) for a specified chain, helping you calculate flash loan costs before building a transaction.

Instructions

Get the current flash loan premium (fee percentage) for a chain

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>"
    },
    "name": "aave_get_flash_loan_premium"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain to query (ethereum, polygon, arbitrum, optimism, base, avalanche)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 disclosure burden. The wording 'current' implies a read-only snapshot, but it does not state whether the premium is uniform across a pool or varies by asset/market, nor whether the value is a percentage or basis points, which matters for a fee. It does correctly scope the result to a single chain.

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?

A single twelve-word sentence with the resource and its disambiguating gloss front-loaded. Nothing is redundant and nothing could be trimmed without losing meaning.

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 one-parameter read-only getter with full schema coverage and no output schema, the definition is nearly sufficient. The remaining gap is the numeric unit of the returned fee, which is not defined anywhere since no output schema exists, but that is a minor omission for a simple lookup.

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% and the single 'chain' parameter has a fully documented enum, so the schema already does the work. The description's phrase 'for a chain' adds no syntax or format detail beyond the enum list.

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?

A specific verb ('Get') plus a specific resource ('current flash loan premium') with a parenthetical that resolves the ambiguous term 'premium' into 'fee percentage'. It is clearly distinct from siblings like aave_flash_loan (which presumably executes a loan) and aave_get_flash_loan_enabled, though it never names those alternatives explicitly.

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 implied only: an agent can infer this is a pre-trade lookup to price a flash loan before calling aave_flash_loan or aave_flash_loan_simple. There is no explicit statement of when to use it, when not to, or which sibling it replaces.

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