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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:376-397 (handler)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: {}, }, },
- src/index.ts:120-128 (schema)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: {}, }, },
- src/aave-client.ts:300-303 (helper)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(); }