get_bridge_details
Retrieve detailed summary and volume breakdown by chain for a specific bridge using its ID. Ideal for analyzing cross-chain transaction data in crypto ecosystems.
Instructions
GET /bridge/{id}
Get summary of bridge volume and volume breakdown by chain.
Parameters:
id: bridge ID (can be retrieved from /bridges)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- defillama_server.py:518-528 (handler)The main handler function for the 'get_bridge_details' MCP tool. It is decorated with @mcp.tool() which handles registration. The function fetches bridge details from the DefiLlama API endpoint /bridge/{id} using the shared make_request helper and returns the result as a string.@mcp.tool() async def get_bridge_details(id: int) -> str: """GET /bridge/{id} Get summary of bridge volume and volume breakdown by chain. Parameters: id: bridge ID (can be retrieved from /bridges) """ result = await make_request('GET', f'/bridge/{id}') return str(result)