Skip to main content
Glama

cmc100IndexHistorical

Access historical CoinMarketCap 100 Index values for specific intervals like 5m, 15m, or daily. Use time_start, time_end, and count parameters to retrieve precise market data.

Instructions

Returns an interval of historic CoinMarketCap 100 Index values based on the interval parameter.

Input Schema

NameRequiredDescriptionDefault
countNo
intervalNo
time_endNo
time_startNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "count": { "type": "string" }, "interval": { "enum": [ "5m", "15m", "daily" ], "type": "string" }, "time_end": { "type": "string" }, "time_start": { "type": "string" } }, "type": "object" }

Implementation Reference

  • The handler function for the cmc100IndexHistorical tool. It wraps handleEndpoint which calls makeApiRequest to the '/v3/index/cmc100-historical' endpoint with the provided params and formats the response using formatResponse.
    async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-historical', params) return formatResponse(data) }) }
  • Input schema definition using Zod validators for the tool parameters: time_start, time_end, count, and interval.
    { time_start: z.string().optional(), time_end: z.string().optional(), count: z.string().optional(), interval: z.enum(['5m', '15m', 'daily']).optional() },
  • index.js:503-517 (registration)
    Registration of the cmc100IndexHistorical tool via server.tool(), specifying the name, description, input schema, and inline handler function.
    server.tool("cmc100IndexHistorical", "Returns an interval of historic CoinMarketCap 100 Index values based on the interval parameter.", { time_start: z.string().optional(), time_end: z.string().optional(), count: z.string().optional(), interval: z.enum(['5m', '15m', 'daily']).optional() }, async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-historical', params) return formatResponse(data) }) } )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinzo-labs/coinmarketcap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server