vybsly_crypto
Get live cryptocurrency prices and market data for any ticker symbol such as BTC, ETH, or SOL.
Instructions
Live cryptocurrency prices and market data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Crypto ticker, e.g. BTC, ETH, SOL |
Implementation Reference
- index.js:470-472 (handler)The case handler for 'vybsly_crypto' tool. Calls vybslyCall('/crypto', { symbol: args.symbol }) to fetch crypto market data.
case 'vybsly_crypto': result = await vybslyCall('/crypto', { symbol: args.symbol }); break; - index.js:104-113 (schema)The tool definition/schema for 'vybsly_crypto' with name, description, and inputSchema requiring a 'symbol' string.
{ name: 'vybsly_crypto', description: 'Live cryptocurrency prices and market data.', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Crypto ticker, e.g. BTC, ETH, SOL' } }, required: ['symbol'] } - index.js:417-417 (registration)The tool is registered via ListToolsRequestSchema handler which returns the TOOLS array containing 'vybsly_crypto'.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS })); - index.js:21-32 (helper)The vybslyCall helper function used by the handler to make HTTP requests to the Vybsly API at /crypto endpoint.
async function vybslyCall(path, params = {}) { const qs = new URLSearchParams(params).toString(); const url = `${VYBSLY_BASE}${path}${qs ? '?' + qs : ''}`; const headers = { 'Accept': 'application/json' }; if (API_KEY) headers['X-API-Key'] = API_KEY; const res = await fetch(url, { headers }); if (!res.ok) { const text = await res.text(); throw new Error(`Vybsly API ${res.status}: ${text.slice(0, 300)}`); } return res.json(); }