Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Calculator

Tip + Sales Tax + Currency Conversion + Discount Stacking Final Price Waterfall Calculator

Builds the true final price as a waterfall: stacked discounts, correct sales-tax base and cascade, tipping on the etiquette base with rounding, per-person split, and mid-market vs DCC conversion.

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/tip-sales-tax-currency-conversion-discount-stacking-calculator' \
  -H 'Content-Type: application/json' \
  -d '{"subtotal":85,"discountLines":"20%","stackingModel":"sequential","taxBase":"after-discounts","taxLines":"State=6.5\nCity=0.5","taxModel":"additive","tipPct":20,"tipBase":"pre-tax-post-discount","tipRounding":"nearest-0.05","partySize":2,"originalCcy":"USD","targetCcy":"CNY","fxRate":7.25,"dccMarkupPct":3.5,"issuerFeePct":1}'

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/tip-sales-tax-currency-conversion-discount-stacking-calculator

Parameters

NameTypeRequiredDescription
subtotalnumberYes—
discountLinestextareaNo—
stackingModelselectNo—
taxBaseselectNo—
taxLinestextareaNo—

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
taxModel
select
No
—
tipPctnumberNo—
tipBaseselectNo—
tipRoundingselectNo—
partySizenumberNo—
originalCcytextNo—
targetCcytextNo—
fxRatenumberNo—
dccMarkupPctnumberNo—
issuerFeePctnumberNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-tip-sales-tax-currency-conversion-discount-stacking-calculator": {
      "name": "tip-sales-tax-currency-conversion-discount-stacking-calculator",
      "description": "Builds the true final price as a waterfall: stacked discounts, correct sales-tax base and cascade, tipping on the etiquette base with rounding, per-person split, and mid-market vs DCC conversion.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=tip-sales-tax-currency-conversion-discount-stacking-calculator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "tip-sales-tax-currency-conversion-discount-stacking-calculator",
    "arguments": {
  "subtotal": 85,
  "discountLines": "20%",
  "stackingModel": "sequential",
  "taxBase": "after-discounts",
  "taxLines": "State=6.5\nCity=0.5",
  "taxModel": "additive",
  "tipPct": 20,
  "tipBase": "pre-tax-post-discount",
  "tipRounding": "nearest-0.05",
  "partySize": 2,
  "originalCcy": "USD",
  "targetCcy": "CNY",
  "fxRate": 7.25,
  "dccMarkupPct": 3.5,
  "issuerFeePct": 1
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool