Skip to main content
Glama

Muteware finance tools

Calculate VAT

calculate_vat
Read-onlyIdempotent

Adds VAT to a net amount or takes it out of a gross amount, in whole cents with a half rounded up, without floating point errors. Give the rate yourself (for example 21, 19 or 5.5); the tool does not look up the rate of a country.

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>",
      "rate_percent": "<rate_percent>",
      "mode": "<mode>"
    },
    "name": "calculate_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"add": amount is without VAT and VAT is added. "remove": amount includes VAT and VAT is taken out.
amountYesThe amount, at most 99999999.99, with a dot as decimal sign, for example 1250.50.
rate_percentYesThe VAT rate in percent, from 0 to 100, for example 21 or 5.5.

Output Schema

NameRequiredDescriptionDefault
okYes
netNo
vatNo
grossNo
reasonNo
messageNo
rate_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 behavior, so the safety profile is covered. The description adds genuinely new behavioral detail beyond that: cent-level rounding with half rounded up and the guarantee of no floating point errors, which tells the agent exactly how results are computed.

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?

Two sentences, no padding, and the primary behavior is front-loaded before the rate-supply caveat. Every clause carries information an agent needs.

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?

For a three-parameter, fully required, read-only calculation tool with an output schema and full annotation coverage, the description supplies everything missing: rounding rule, precision model, and the input obligation for the rate. Return values need not be described because an output schema exists.

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 coverage is 100%, so the schema already documents amount, rate_percent and the add/remove mode semantics in detail. The description reinforces the rate-as-input constraint and gives example rates, but adds no syntax or format information the schema lacks, so the baseline of 3 applies.

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?

States a specific verb and resource ("Adds VAT to a net amount or takes it out of a gross amount") and pins down the exact computation domain (whole cents, half rounded up, no floating point errors). It is clearly a calculation tool, not a validation tool, which separates it from siblings like check_vat_number.

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?

Gives clear context for use by explaining the rate must be supplied by the caller and explicitly excluding country rate lookup, which prevents a common misuse. It stops short of naming an alternative tool or stating any preconditions, but the when-not guidance is present.

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