convert

Pack: exchange · Endpoint: https://gateway.pipeworx.io/exchange/mcp

Convert an amount from one currency to another at current rates. Returns the converted amount and the exchange rate applied.

Parameters

NameTypeRequiredDescription
fromstringyesSource currency code (e.g., USD)
tostringyesTarget currency code (e.g., JPY)
amountnumberyesAmount to convert

Example call

Arguments

{
  "from": "USD",
  "to": "EUR",
  "amount": 100
}

curl

curl -X POST https://gateway.pipeworx.io/exchange/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert","arguments":{"from":"USD","to":"EUR","amount":100}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('convert', {
  "from": "USD",
  "to": "EUR",
  "amount": 100
});

More examples

{
  "from": "JPY",
  "to": "CHF",
  "amount": 50000
}

Response shape

Always returns: from, to, rate, amount, converted, date

FieldTypeDescription
fromstringSource currency code (uppercase)
tostringTarget currency code (uppercase)
ratenumberExchange rate applied
amountnumberOriginal amount in source currency
convertednumberConverted amount in target currency
datestringDate of the rate (ISO format)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Source currency code (uppercase)"
    },
    "to": {
      "type": "string",
      "description": "Target currency code (uppercase)"
    },
    "rate": {
      "type": "number",
      "description": "Exchange rate applied"
    },
    "amount": {
      "type": "number",
      "description": "Original amount in source currency"
    },
    "converted": {
      "type": "number",
      "description": "Converted amount in target currency"
    },
    "date": {
      "type": "string",
      "description": "Date of the rate (ISO format)"
    }
  },
  "required": [
    "from",
    "to",
    "rate",
    "amount",
    "converted",
    "date"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "exchange": {
      "url": "https://gateway.pipeworx.io/exchange/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026