convert_currency
Convert currencies in real-time using ISO currency codes. Enter source and target currencies along with the amount to get accurate exchange rates and conversion results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount to convert | |
from | Yes | Source currency code (e.g., USD, EUR) | |
to | Yes | Target currency code (e.g., USD, EUR) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount to convert",
"exclusiveMinimum": 0,
"type": "number"
},
"from": {
"description": "Source currency code (e.g., USD, EUR)",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"to": {
"description": "Target currency code (e.g., USD, EUR)",
"maxLength": 3,
"minLength": 3,
"type": "string"
}
},
"required": [
"from",
"to",
"amount"
],
"type": "object"
}