Skip to main content
Glama

InkVoice — XRechnung & E-Invoicing

calculate_vat

Converts between net, tax and gross for a given VAT rate, in either direction.

Give an amount and say whether it is net or gross, and you get all three figures back rounded to the cent. Germany's rates are 19 % (standard) and 7 % (reduced), but any rate from 0 to 100 is accepted, so this also works for an Austrian or French invoice.

Rounding is half-away-from-zero, the convention invoices and tax authorities use, and the three returned figures always reconcile: net plus tax equals gross exactly, with no cent left over from rounding each separately.

What this does NOT do: it does not decide which rate applies to a supply, handle more than one rate at a time, or know anything about reverse charge, intra-community supply or the Kleinunternehmer rules. It is arithmetic, not tax advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rateYesVAT rate as a percentage, not a fraction: 19 means 19 %, not 1900 %.
basisYesWhether `amount` is the net figure (add tax to it) or the gross figure (take tax out of it).
amountYesThe amount to convert, in the invoice currency. Must not be negative.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so excellently. It discloses rounding to the cent, half-away-from-zero convention, the reconciliation invariant (net plus tax equals gross exactly), and the acceptance of any rate from 0 to 100. These details go well beyond what the schema reveals.

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

Conciseness5/5

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

The description is well organized and front-loaded with the core purpose, followed by rate details, rounding behavior, and explicit exclusions. Every sentence earns its place; there is no filler or repetition of schema content.

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

Completeness5/5

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

Even though there is no output schema, the description explains exactly what the agent can expect back: all three figures, rounded to the cent, and reconciling exactly. For a pure arithmetic tool with three fully documented parameters, no important calling context is missing.

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%, and the schema already documents amount, rate, and basis clearly, including the percentage interpretation and net/gross semantics. The description adds useful global context about rounding and output figures, but it does not add per-parameter meaning beyond the schema, so the baseline of 3 is appropriate.

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 and resource: it converts between net, tax and gross for a given VAT rate, in either direction. It also distinguishes itself from the sibling invoice/validation tools by explicitly saying it is 'arithmetic, not tax advice.'

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 description clearly indicates when to use the tool: for VAT conversions with any rate from 0 to 100, on net or gross amounts. It also spells out what it does NOT do—rate determination, reverse charge, intra-community supply, and similar tax-rule concerns—but it does not explicitly point to alternative sibling tools for those cases.

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.

Resources