Skip to main content
Glama
0xKoller
by 0xKoller

dolares-por-casa

Retrieve real-time dollar exchange rates from specified exchange houses in Argentina using MCP Argentina Datos. Input the exchange house type (e.g., blue, official, crypto) for accurate rate data.

Instructions

Devuelve las cotizaciones del dólar de la casa de cambio especificada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
casaYesEJ: blue, oficial, cripto, etc.

Implementation Reference

  • Core handler function that performs the API fetch for dollar quotes specific to the given exchange house ('casa'). This is the exact implementation of the tool logic.
    export const getDolaresPorCasa = async (casa: string) => { const dolares = await fetch(`${BASE_URL}/cotizaciones/dolares/${casa}`); const data = await dolares.json(); return data; };
  • main.ts:251-300 (registration)
    MCP server.tool registration for 'dolares-por-casa', including schema, description, and wrapper handler that calls the core getDolaresPorCasa function and formats the MCP response.
    server.tool( "dolares-por-casa", "Devuelve las cotizaciones del dólar de la casa de cambio especificada.", { casa: z.string().describe("EJ: blue, oficial, cripto, etc."), }, async ({ casa }) => { if (!casa) { return { content: [ { type: "text", text: "No se ha provisto el parámetro 'casa'", }, ], }; } try { const data = await getDolaresPorCasa(casa); if (data.length === 0) { return { content: [ { type: "text", text: "No se encontraron cotizaciones de dólares para la casa de cambio especificada", }, ], }; } return { content: [ { type: "text", text: JSON.stringify(data, null, 2), mimeType: "application/json", }, ], }; } catch (error) { return { content: [ { type: "text", text: "Error al obtener las cotizaciones de dólares para la casa de cambio especificada", }, ], }; } } );
  • main.ts:47-54 (schema)
    Tool schema definition in the initial server tools list for discovery, defining name, description, and input parameters.
    { name: "dolares-por-casa", description: "Devuelve las cotizaciones del dólar de la casa de cambio especificada.", parameters: { casa: z.string().describe("EJ: blue, oficial, cripto, etc."), }, },

Other Tools

Related Tools

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/0xKoller/mcp-argentina-datos'

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