get_tokens
Retrieve all tradable tokens on CSPR.trade with optional fiat currency conversion to view market data and pricing information.
Instructions
List all tradable tokens on CSPR.trade with optional fiat pricing
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Fiat currency code (e.g., "USD", "EUR"). Omit for no fiat prices. |
Implementation Reference
- packages/mcp/src/tools/market-data.ts:6-14 (registration)The 'get_tokens' tool is registered using 'server.tool'. It takes an optional 'currency' argument and delegates the call to 'client.getTokens'.
server.tool( 'get_tokens', 'List all tradable tokens on CSPR.trade with optional fiat pricing', { currency: z.string().optional().describe('Fiat currency code (e.g., "USD", "EUR"). Omit for no fiat prices.') }, async ({ currency }) => { const tokens = await client.getTokens(currency); return { content: [{ type: 'text' as const, text: JSON.stringify(tokens, null, 2) }] }; }, );