convert_currency
Get the current Mercado Livre exchange rate between two currencies (e.g., USD to BRL) for cross-border pricing and price comparisons across Meli sites. It returns the ratio and both codes.
Instructions
Get the current Mercado Livre exchange rate between two currencies (e.g. USD → BRL). Useful for cross-border pricing or comparing prices across Meli sites. Returns the conversion ratio and both currency codes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency ISO code, e.g. 'BRL' | |
| from | Yes | Source currency ISO code, e.g. 'USD' |