Skip to main content
Glama
clumsynonono

Aave Liquidation MCP Server

by clumsynonono

get_protocol_status

Check the current Aave V3 protocol status and block number to monitor protocol activity and data freshness for liquidation analysis.

Instructions

Get general Aave V3 protocol status including current block number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler for the 'get_protocol_status' tool. It fetches the current block number using the AaveClient and returns a structured JSON response with protocol information.
    case 'get_protocol_status': { const blockNumber = await aaveClient.getBlockNumber(); return { content: [ { type: 'text', text: JSON.stringify( { protocol: 'Aave V3', network: 'Ethereum Mainnet', blockNumber, poolAddress: '0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2', status: 'operational', }, null, 2 ), }, ], }; }
  • src/index.ts:120-128 (registration)
    Registration of the 'get_protocol_status' tool in the ListToolsRequestSchema handler, including name, description, and empty input schema.
    { name: 'get_protocol_status', description: 'Get general Aave V3 protocol status including current block number.', inputSchema: { type: 'object', properties: {}, }, },
  • Schema definition for the 'get_protocol_status' tool within the tools list.
    { name: 'get_protocol_status', description: 'Get general Aave V3 protocol status including current block number.', inputSchema: { type: 'object', properties: {}, }, },
  • Helper method in AaveClient class that retrieves the current Ethereum block number, used by the tool handler.
    */ async getBlockNumber(): Promise<number> { return await this.provider.getBlockNumber(); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clumsynonono/aave-liquidation-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server