Skip to main content
Glama

Abstract API MCP by usefulapi

Calculate VAT

abstractapi_calculate_vat
Read-onlyIdempotent

Work out the VAT-compliant price for an amount in a country: the amounts without and with VAT, the VAT amount and the rate. Set is_vat_incl to true for the reverse calculation (the amount already contains VAT). VAT Validation API. Spends 1 credit of your VAT Validation plan per request (a failed request counts too); needs the VAT Validation API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesThe amount to calculate from.
is_vat_inclNoTrue if the amount already includes VAT (default false).
country_codeYesTwo-letter country code of the transaction, e.g. DE.
vat_categoryNoA reduced-rate category from abstractapi_list_vat_rates (default: the standard rate).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so the safety profile is covered. The description adds genuinely non-derivable operational context: it consumes 1 credit of the VAT Validation plan per request (including failed requests) and requires the VAT Validation API key. It does not mention error conditions such as unsupported country codes, keeping it from 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.

Conciseness5/5

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

The core purpose is front-loaded in the first sentence, the reverse-calculation note follows immediately, and the cost/auth note closes it out. Every clause carries information; there is no filler.

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?

With no output schema, the description correctly compensates by naming the return values, and it covers billing and auth prerequisites. Given the tool's simplicity and full schema coverage, an agent has what it needs; only edge-case behavior (invalid country, reduced-category fallback failures) is left implicit.

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%, so all four parameters (amount, country_code, is_vat_incl, vat_category) are already documented in the schema, which sets the baseline at 3. The description's restatement of is_vat_incl as the 'reverse calculation' adds only a slight gloss on the existing schema text and no new constraints.

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

Purpose4/5

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

The description uses a specific verb+resource ('work out the VAT-compliant price for an amount in a country') and even enumerates the returned quantities (net, gross, VAT amount, rate), so the agent knows exactly what the tool produces. It does not explicitly distinguish itself from the closely related sibling abstractapi_validate_vat, so it stops short of a 5.

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

Usage Guidelines3/5

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

It states the reverse-calculation mode ('set is_vat_incl to true'), which is useful conditional guidance, but that is parameter-level rather than tool-selection guidance. There is no statement of when to use this tool instead of abstractapi_validate_vat or abstractapi_list_vat_rates, so usage is only implied.

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.