get_exchange_rate
Retrieve the official COP-per-USD exchange rate (TRM) in force today, including its validity date, to convert US prices into accurate Colombian peso quotes.
Instructions
Get the official COP-per-USD rate (TRM) in force today, with its validity date.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | 'live': today's official rate. 'last_known': the official source was down, so the last rate fetched was used; say how old it is (fx_valid_from). 'reference': a fixed stand-in, NOT a real rate; the quote is arithmetically correct but not an offer, so say so when relaying it. | |
| valid_from | Yes | Date this rate is valid from (YYYY-MM-DD). | |
| rate_cop_per_usd | Yes | Official rate, COP per USD, before any buffer. |