get_stablecoin_dominance
Analyze stablecoin dominance by chain and identify the largest stablecoin within a specific blockchain network using chain slug inputs.
Instructions
GET /stablecoins/stablecoindominance/{chain}
Get stablecoin dominance per chain along with the info about the largest coin in a chain.
Parameters:
chain: chain slug (e.g., 'Ethereum')
stablecoin: stablecoin ID (optional)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| stablecoin | No |
Implementation Reference
- defillama_server.py:136-150 (handler)The handler function decorated with @mcp.tool(), implementing the get_stablecoin_dominance tool. It makes an API request to the DefiLlama stablecoins/stablecoindominance endpoint with optional stablecoin parameter and returns the result as string.@mcp.tool() async def get_stablecoin_dominance(chain: str, stablecoin: Optional[int] = None) -> str: """GET /stablecoins/stablecoindominance/{chain} Get stablecoin dominance per chain along with the info about the largest coin in a chain. Parameters: chain: chain slug (e.g., 'Ethereum') stablecoin: stablecoin ID (optional) """ params = {} if stablecoin is not None: params['stablecoin'] = stablecoin result = await make_request('GET', f'/stablecoins/stablecoindominance/{chain}', params) return str(result)