Skip to main content
Glama

get_currencies

Retrieve a list of supported fiat currencies for displaying cryptocurrency prices on the CSPR.trade decentralized exchange.

Instructions

List supported fiat currencies for price display

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'get_currencies' which calls the SDK client.
    async () => {
      const currencies = await client.getCurrencies();
      return { content: [{ type: 'text' as const, text: JSON.stringify(currencies, null, 2) }] };
    },
  • The registration of the 'get_currencies' tool on the MCP server.
    server.tool(
      'get_currencies',
      'List supported fiat currencies for price display',
      {},
      async () => {
        const currencies = await client.getCurrencies();
        return { content: [{ type: 'text' as const, text: JSON.stringify(currencies, null, 2) }] };
      },
    );
  • The underlying implementation that fetches currencies via the HTTP client.
    async getCurrencies(): Promise<Currency[]> {
      const response = await this.http.get<ApiResponse<Currency[]>>('/currencies');
      return response.data;
    }

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