get_stablecoins
Retrieve a list of stablecoins with circulating amounts and optional current prices from crypto data sources.
Instructions
GET /stablecoins/stablecoins
List all stablecoins along with their circulating amounts.
Parameters:
include_prices: whether to include current stablecoin prices (default: True)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_prices | No |
Implementation Reference
- defillama_server.py:152-163 (handler)The main handler function for the get_stablecoins tool. It is registered via the @mcp.tool() decorator and implements the logic to fetch stablecoin data from the DefiLlama API using the shared make_request helper, with an optional parameter to include prices.@mcp.tool() async def get_stablecoins(include_prices: bool = True) -> str: """GET /stablecoins/stablecoins List all stablecoins along with their circulating amounts. Parameters: include_prices: whether to include current stablecoin prices (default: True) """ params = {'includePrices': str(include_prices).lower()} result = await make_request('GET', '/stablecoins/stablecoins', params) return str(result)