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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/actions.ts:33-35 (handler)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"); } - src/mcp-server.ts:45-58 (registration)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), - src/actions.ts:13-20 (schema)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; }