Tool tree
gradeNot graded
convertCurrencyAction
Convert an amount from one currency to another, optionally as of a past date. Updates the converter on screen and returns the rate and converted total.
View tool JSON
{
"name": "convertCurrency",
"kind": "act",
"impl": "imperative",
"description": "Convert an amount from one currency to another, optionally as of a past date. Updates the converter on screen and returns the rate and converted total.",
"inputSchema": {
"type": "object",
"properties": {
"amount": {
"type": "number",
"minimum": 0,
"description": "The amount to convert."
},
"from": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert from, such as EUR."
},
"to": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert to, such as USD."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"patternMessage": "Dates must look like YYYY-MM-DD.",
"description": "Optional past date, in YYYY-MM-DD form."
}
},
"required": [
"amount",
"from",
"to"
]
}
}swapCurrenciesAction
Swap the "from" and "to" currencies and reconvert the current amount.
View tool JSON
{
"name": "swapCurrencies",
"kind": "act",
"impl": "imperative",
"description": "Swap the \"from\" and \"to\" currencies and reconvert the current amount.",
"inputSchema": {
"type": "object",
"properties": {}
}
}setBaseCurrencyAction
Change the currency being converted from, leaving the amount unchanged.
View tool JSON
{
"name": "setBaseCurrency",
"kind": "act",
"impl": "imperative",
"description": "Change the currency being converted from, leaving the amount unchanged.",
"inputSchema": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code, such as GBP."
}
},
"required": [
"currency"
]
}
}setQuoteCurrencyAction
Change the currency being converted to, leaving the amount unchanged.
View tool JSON
{
"name": "setQuoteCurrency",
"kind": "act",
"impl": "imperative",
"description": "Change the currency being converted to, leaving the amount unchanged.",
"inputSchema": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code, such as JPY."
}
},
"required": [
"currency"
]
}
}listCurrenciesAnswer
List the supported currencies, each with its three-letter code and full name. Pass a query to filter by code or name.
View tool JSON
{
"name": "listCurrencies",
"kind": "answer",
"impl": "imperative",
"description": "List the supported currencies, each with its three-letter code and full name. Pass a query to filter by code or name.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional filter, matched against code and name."
}
}
}
}getHistoricalRateAction
Get the exchange rate between two currencies on a specific past date. The converter on screen moves to that date so the result stays visible.
View tool JSON
{
"name": "getHistoricalRate",
"kind": "act",
"impl": "imperative",
"description": "Get the exchange rate between two currencies on a specific past date. The converter on screen moves to that date so the result stays visible.",
"inputSchema": {
"type": "object",
"properties": {
"from": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert from."
},
"to": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert to."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"patternMessage": "Dates must look like YYYY-MM-DD.",
"description": "Date in YYYY-MM-DD form."
}
},
"required": [
"from",
"to",
"date"
]
}
}getRateTimeSeriesAnswer
Get a series of exchange rates for a currency pair over a date range, and draw it on the chart. Long ranges are grouped by week or month to keep the response small.
View tool JSON
{
"name": "getRateTimeSeries",
"kind": "answer",
"impl": "imperative",
"description": "Get a series of exchange rates for a currency pair over a date range, and draw it on the chart. Long ranges are grouped by week or month to keep the response small.",
"inputSchema": {
"type": "object",
"properties": {
"from": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert from."
},
"to": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Three-letter code to convert to."
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"patternMessage": "Dates must look like YYYY-MM-DD.",
"description": "First date of the range, YYYY-MM-DD."
},
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"patternMessage": "Dates must look like YYYY-MM-DD.",
"description": "Last date of the range, YYYY-MM-DD."
},
"group": {
"type": "string",
"enum": [
"day",
"week",
"month"
],
"description": "Optional grouping for the points returned."
}
},
"required": [
"from",
"to",
"start",
"end"
]
}
}