dexInfo
Access static metadata for decentralised exchanges, including details on IDs and auxiliary data, via the CoinMarketCap MCP server for comprehensive crypto insights.
Instructions
Returns all static metadata for one or more decentralised exchanges.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aux | No | ||
| id | No |
Implementation Reference
- index.js:267-272 (handler)Handler function that executes the dexInfo tool logic: calls handleEndpoint wrapping makeApiRequest to CoinMarketCap's /v4/dex/listings/info endpoint with input params, then formats the response.async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v4/dex/listings/info', params) return formatResponse(data) }) }
- index.js:263-266 (schema)Zod schema defining input parameters for dexInfo: optional id and aux strings.{ id: z.string().optional(), aux: z.string().optional() },
- index.js:261-273 (registration)Registration of the dexInfo tool with server.tool, providing name, description, input schema, and inline handler function.server.tool("dexInfo", "Returns all static metadata for one or more decentralised exchanges.", { id: z.string().optional(), aux: z.string().optional() }, async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v4/dex/listings/info', params) return formatResponse(data) }) } )