Vat net gross convert

vat-net-gross-convert · version 1.0.0 · Money & pricing · free, no key needed

Convert a net or gross amount at a VAT rate into a net, VAT and gross triple that adds up exactly at currency precision.

Use when you need to: add 20% VAT to 100 euros · how much VAT is included in 120 gross at 20 percent · remove VAT from a price including 23% VAT.

Decide before calling

Read the versioned contract and the supported scope below. Reuse vat-net-gross-convert@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use vat-net-gross-convert@1.0.0 for add 20% VAT to 100 euros. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "amount": "100.00",
  "direction": "net_to_gross",
  "rate_percent": "20",
  "currency": "EUR",
  "rounding": "half_up"
}

Response:

{
  "result": {
    "net": "100.00",
    "vat": "20.00",
    "gross": "120.00",
    "rate_percent": "20",
    "currency": "EUR",
    "scale": 2,
    "data_version": "iso4217-datasets-7cdc784-2026-07-27"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "vat-net-gross-convert",
  "version": "1.0.0",
  "input": {
    "amount": "100.00",
    "direction": "net_to_gross",
    "rate_percent": "20",
    "currency": "EUR",
    "rounding": "half_up"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/vat-net-gross-convert/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"amount":"100.00","direction":"net_to_gross","rate_percent":"20","currency":"EUR","rounding":"half_up"}'

The machine-readable contract is at /v1/tools/vat-net-gross-convert/versions/1.0.0.

CLI

node cli.mjs run vat-net-gross-convert 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.