Skip to main content
Glama

Flash Loans

flash-loans
Read-only

Aave v3 on Base: available flash-loan liquidity and flash-loan fee for any listed asset (default WETH), read on-chain. Price: 0.0050 USDC per call (first call free).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetNoERC-20 address (0x...) of the asset; default WETH

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / asset
      Added value: +{
      +  "description": "ERC-20 address (0x...) of the asset; default WETH",
      +  "type": "string"
      +}
    • removedInput schema / properties / providerPoolAddress
      Removed value: -{
      -  "description": "Pool contract address (0x...) of the flash-loan provider",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "providerPoolAddress"
      -]New value: +[]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds genuinely useful context beyond them: the data source (Aave v3 on Base, read on-chain) and a metered cost (0.0050 USDC per call, first free). It does not disclose behavior for unlisted assets or failure modes, keeping it short of a 5.

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 tight sentences, front-loaded with protocol, chain, and returned data, followed by the pricing constraint. No filler, and every clause carries information the agent needs.

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 single-optional-parameter read tool with no output schema, the definition covers source, scope, default, and cost adequately. It could still say what happens for an unlisted asset or give units/format for the fee, which is why it is not a 5.

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?

With one optional parameter and 100% schema description coverage, the schema already documents asset as an ERC-20 address defaulting to WETH. The description only restates the default asset value, adding no format or edge-case detail beyond the schema, so the baseline 3 applies.

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?

States a specific resource (flash-loan liquidity and fee), the protocol (Aave v3), the chain (Base), and the access mode (read on-chain). An agent can instantly tell this returns flash-loan data rather than anything in the sibling set (contract-profile, dex-arbitrage, liquidity-health, etc.).

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 description makes clear it returns liquidity/fee data, so the agent can infer it is used when sizing or pricing a flash loan, but there is no explicit when-to-use, no prerequisites, and no alternative named among the siblings.

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