Convert currency using BCB PTAX
convert_brl_ptaxConvert amounts between BRL, USD, and other BCB PTAX currencies using official buy, sell, or midpoint closing rates.
Instructions
Convert an amount between BRL and USD or any BCB PTAX currency using official buy, sell, or midpoint closing rates.
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": {
"amount": "<amount>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_brl_ptax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target 3-letter currency code (e.g. "BRL", "USD", "EUR"). | |
| from | Yes | Source 3-letter currency code (e.g. "USD", "BRL", "EUR"). | |
| amount | Yes | Amount to convert. | |
| rate_type | No | PTAX rate side: "buy", "sell", or "midpoint" (default). |