Skip to main content
Glama

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
NameRequiredDescriptionDefault
currencyNoFiat currency code (e.g., "USD", "EUR"). Omit for no fiat prices.

Implementation Reference

  • 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) }] };
      },
    );

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/make-software/cspr-trade-mcp'

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