get_bridge_details
Retrieve bridge volume summary and chain breakdown by providing a bridge ID. Use this tool to analyze cross-chain transaction data from crypto bridges.
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 handler function for the 'get_bridge_details' MCP tool. It is decorated with @mcp.tool() for registration and executes the tool logic by making an API request to the DefiLlama bridges endpoint '/bridge/{id}' using the shared 'make_request' helper, returning the JSON response 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)