getPostmanCollection
Get a Postman collection to access and test all CoinMarketCap API endpoints.
Instructions
Returns a Postman collection for the CoinMarketCap API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:579-585 (handler)The async handler function that executes the getPostmanCollection tool logic. It calls handleEndpoint which invokes makeApiRequest to GET '/v1/tools/postman' and formats the response.
async () => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v1/tools/postman') return formatResponse(data) }) } ) - index.js:576-585 (registration)Registers the 'getPostmanCollection' tool on the MCP server with the description 'Returns a Postman collection for the CoinMarketCap API.' and an empty schema object (no parameters required).
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) }) } )