get_bridges
Retrieve comprehensive bridge data with recent volume summaries to analyze cross-chain asset transfers in cryptocurrency ecosystems.
Instructions
GET /bridges
List all bridges along with summaries of recent bridge volumes.
Parameters:
include_chains: set whether to include current previous day volume breakdown by chain
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_chains | No |
Implementation Reference
- defillama_server.py:505-516 (handler)The main handler function for the 'get_bridges' tool, decorated with @mcp.tool() which handles both implementation and registration in MCP. It makes a GET request to the DefiLlama /bridges endpoint with optional chain inclusion parameter and returns the JSON response as string.@mcp.tool() async def get_bridges(include_chains: bool = True) -> str: """GET /bridges List all bridges along with summaries of recent bridge volumes. Parameters: include_chains: set whether to include current previous day volume breakdown by chain """ params = {'includeChains': str(include_chains).lower()} result = await make_request('GET', '/bridges', params) return str(result)