Skip to main content
Glama
dan1d

dolar-mcp

get_all_currencies

Retrieve all foreign currency exchange rates against the Argentine Peso (ARS), including EUR, BRL, UYU, and CLP, for real-time financial analysis and conversion.

Instructions

Get all foreign currency exchange rates vs ARS (EUR, BRL, UYU, CLP, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function getAllCurrencies that executes the tool logic by fetching from /v1/cotizaciones endpoint
    export async function getAllCurrencies(client: DolarApiClient): Promise<unknown> {
      return client.get<CurrencyRate[]>("/v1/cotizaciones");
    }
  • Registration of get_all_currencies tool with the MCP server, including description and handler mapping
    server.tool(
      "get_all_currencies",
      "Get all foreign currency exchange rates vs ARS (EUR, BRL, UYU, CLP, etc.).",
      {},
      async () => {
        try {
          const result = await tools.get_all_currencies();
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (error) {
          const message = error instanceof Error ? error.message : String(error);
          return { content: [{ type: "text", text: message }], isError: true };
        }
      },
    );
  • src/index.ts:24-24 (registration)
    Tool export mapping get_all_currencies to the getAllCurrencies function
    get_all_currencies: () => getAllCurrencies(client),
  • Type definition for CurrencyRate interface defining the structure of currency exchange rate data
    interface CurrencyRate {
      moneda: string;
      casa: string;
      nombre: string;
      compra: number;
      venta: number;
      fechaActualizacion: string;
    }

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/dan1d/dolar-mcp'

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