Skip to main content
Glama

nbrain-arabic-deterministic-rag

calculate_saudi_vat

Read-onlyIdempotent

Calculate Saudi 15% VAT (or Bahrain 10%, Egypt 14%, UAE/Oman 5%) using exact Decimal ROUND_HALF_UP arithmetic.

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": {
      "subtotal": "<subtotal>"
    },
    "name": "calculate_saudi_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
subtotalYesAmount excluding VAT, e.g. '1000.00'
vat_rateNoVAT percentage, default '15'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely useful behavior beyond that: exact Decimal arithmetic with ROUND_HALF_UP, which tells the agent results are precision-safe and not floating-point approximations. It stops short of saying what a result contains (VAT amount only vs. amount plus total), which is the main remaining gap.

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?

A single front-loaded sentence that puts the verb, the default rate, the alternate rates, and the arithmetic guarantee in one pass with zero 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?

For a two-parameter, annotation-covered, read-only calculation with no output schema, the description supplies the rate selection guidance and the rounding semantics an agent needs to call it correctly. The one omission is the shape of the return value, which nothing else documents.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds real meaning by mapping jurisdictions to concrete rates (Bahrain 10%, Egypt 14%, UAE/Oman 5%, Saudi 15%), effective guidance for the free-form vat_rate string that the schema only documents as 'default 15'. Only the accepted format of vat_rate (e.g. '15' vs '0.15') is left unstated.

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 opens with a specific verb+resource ('Calculate ... VAT') and enumerates the jurisdictions and rates it covers, so the operation is unmistakable. It does not name or distinguish itself from siblings such as validate_uae_trn_and_vat, but the calculate-vs-validate distinction is clear from the verb alone.

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?

Usage is only implied: the rate list signals 'pick the rate matching your jurisdiction,' but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool. An agent can infer the context but is given no exclusions.

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.