getPostmanCollection
Generate a Postman collection to simplify testing and integration with the CoinMarketCap API, enabling access to cryptocurrency market data and blockchain metrics.
Instructions
Returns a Postman collection for the CoinMarketCap API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- index.js:579-584 (handler)The core handler function for the 'getPostmanCollection' tool. It invokes handleEndpoint which makes an authenticated API request to CoinMarketCap's '/v1/tools/postman' endpoint and formats the response using formatResponse.async () => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v1/tools/postman') return formatResponse(data) }) }
- index.js:578-578 (schema)Empty schema object, indicating the tool takes no input parameters.{},
- index.js:576-585 (registration)Registers the 'getPostmanCollection' tool with the MCP server, providing name, description, schema, and handler function.server.tool("getPostmanCollection", "Returns a Postman collection for the CoinMarketCap API.", {}, async () => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v1/tools/postman') return formatResponse(data) }) } )