# compute_vat

PAID ($0.02). VAT breakdown for an amount: net, tax and gross using the country's current statutory rate, including per-levy components where the rate is composite (e.g. Ghana VAT + NHIL + GETFund). mode=add treats the amount as net; mode=extract backs VAT out of a gross amount. Pass api_key if you have one; otherwise the response explains how to pay via x402.

Agent View of the PolicyLayer registry record for `compute_vat`. HTML page: https://policylayer.com/tools/dev-euroref-reference-data/compute-vat

## Facts

- Tool: `compute_vat`
- Server: Reference Data (`https://euroref.dev/mcp`) — https://policylayer.com/tools/dev-euroref-reference-data.md
- Homepage: https://github.com/https://euroref.dev/mcp
- Risk category: Write (Medium risk)
- Registry record: grade D, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 4 (2 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `mode` | string | no | add = amount is net (default); extract = amount is gross |
| `amount` | number | yes | Amount in the country's own currency |
| `api_key` | string | no | API key |
| `country` | string | yes | ISO country code |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "compute_vat",
    "arguments": {
      "amount": 0,
      "country": "<country>"
    }
  }
}
```

## Why compute_vat is rated Medium

An AI agent can call compute_vat faster than any human can review: one bad instruction and it creates or modifies resources in Reference Data by the hundred, each call as confident as the last.

Risk signals: Handles credentials or secrets (api_key)

## Use case

AI agents use compute_vat to create or update resources in Reference Data, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Reference Data environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Reference Data:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "compute_vat": {
      "limits": [
        {
          "counter": "compute_vat_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Reference Data (9)

- `check_minimum_wage` — Read — https://policylayer.com/tools/dev-euroref-reference-data/check-minimum-wage.md
- `compute_income_tax` — Read — https://policylayer.com/tools/dev-euroref-reference-data/compute-income-tax.md
- `count_working_days` — Read — https://policylayer.com/tools/dev-euroref-reference-data/count-working-days.md
- `get_public_holidays` — Read — https://policylayer.com/tools/dev-euroref-reference-data/get-public-holidays.md
- `get_series` — Read — https://policylayer.com/tools/dev-euroref-reference-data/get-series.md
- `get_series_history` — Read — https://policylayer.com/tools/dev-euroref-reference-data/get-series-history.md
- `get_snapshot` — Read — https://policylayer.com/tools/dev-euroref-reference-data/get-snapshot.md
- `list_series` — Read — https://policylayer.com/tools/dev-euroref-reference-data/list-series.md
- `settlement_date` — Read — https://policylayer.com/tools/dev-euroref-reference-data/settlement-date.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-euroref-reference-data · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-euroref-reference-data
