get_bridge_volume
Retrieve historical bridge volume data for specific chains or across all networks to analyze cross-chain transaction patterns and bridge usage metrics.
Instructions
GET /bridgevolume/{chain}
Get historical volumes for a bridge, chain, or bridge on a particular chain.
Parameters:
chain: chain slug (e.g., 'Ethereum') or 'all' for volume on all chains
id: bridge ID (optional, can be retrieved from /bridges)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| id | No |
Implementation Reference
- defillama_server.py:530-547 (handler)The handler function decorated with @mcp.tool() that implements the get_bridge_volume tool by calling the DefiLlama API endpoint /bridgevolume/{chain}.@mcp.tool() async def get_bridge_volume( chain: str, id: Optional[int] = None ) -> str: """GET /bridgevolume/{chain} Get historical volumes for a bridge, chain, or bridge on a particular chain. Parameters: chain: chain slug (e.g., 'Ethereum') or 'all' for volume on all chains id: bridge ID (optional, can be retrieved from /bridges) """ params = {} if id is not None: params['id'] = id result = await make_request('GET', f'/bridgevolume/{chain}', params) return str(result)
- defillama_server.py:530-530 (registration)The @mcp.tool() decorator registers the get_bridge_volume function as an MCP tool.@mcp.tool()