get_bridges
Retrieve a list of all bridges with summaries of recent bridge volumes. Optionally include current and previous day volume breakdowns by chain for detailed analysis.
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 also serves as registration. It makes an API request to DefiLlama's /bridges endpoint and returns the result as a 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)