Skip to main content
Glama

MiniTools Precision Calculators

Exact VAT / Sales Tax Calculator

calculate_vat
Read-onlyIdempotent

Add VAT to a net price or extract the exact net base and VAT amount from a VAT-inclusive gross price rounded cleanly to 2 decimal places.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "amount": "<amount>",
      "vat_rate_pct": "<vat_rate_pct>"
    },
    "name": "calculate_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"add" adds VAT to a net amount; "remove" extracts net and VAT from a gross VAT-inclusive amount (default "add").
amountYesInput monetary amount (>= 0).
currencyNoCurrency code (default "EUR").
vat_rate_pctYesVAT/tax rate percentage (e.g., 21 for Spain, 20 for UK/France, 19 for Germany, 23 for Portugal).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral detail beyond them: output is rounded to 2 decimals and, in remove mode, both net and VAT components are returned — relevant since there is no output schema. It omits error behavior for invalid rates, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence with the primary operation front-loaded and zero filler. It is slightly dense as one sentence, but no clause is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple four-parameter calculator with no output schema, the description covers both operation modes, the rounding rule, and the components returned. The only gap is that it does not state the exact response shape or how currency appears in the result, which is minor given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including enum semantics for mode and concrete rate examples for vat_rate_pct, so the baseline is 3. The description only restates the two modes already documented in the schema and adds no syntax or format guidance of its own.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-pair and resource: adding VAT to a net price, or extracting net base and VAT from a gross price. The tax-calculation subject matter makes it unmistakably distinct from siblings like calculate_mortgage or calculate_compound_interest without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The two operating modes and their respective input interpretations are spelled out, which gives clear context for how to call it. There are no explicit exclusions or pointers to alternatives, but for a self-contained arithmetic utility the choice space is essentially empty, so the missing exclusion costs little.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.