Skip to main content
Glama
NBrain Saudi ZATCA MCP Server

NBrain Saudi ZATCA MCP Server

calculate_saudi_vat

Compute exact Saudi VAT at 15% or a custom rate from a subtotal using Decimal halala ROUND_HALF_UP arithmetic for accurate ZATCA-compliant tax calculations.

Instructions

Compute exact Saudi 15% VAT (or custom VAT percentage) using Decimal ROUND_HALF_UP halala 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
subtotalYesSubtotal excluding VAT, e.g. '1000.00'
vat_rateNoVAT percentage, default '15'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: exact decimal arithmetic, ROUND_HALF_UP rounding, and halala-level precision. However, it says nothing about the returned result shape (subtotal/VAT/total fields) or how invalid subtotal or rate values are handled, which are real gaps for a zero-annotation tool.

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 sentence with zero filler, front-loading the core action and the precision guarantee. Every clause (default rate, custom rate, rounding mode, halala) contributes information.

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

Completeness3/5

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

For a simple two-parameter calculator this covers the computation contract, but with no output schema the description should state what the response contains. An agent knows how to call it but not precisely what it will receive back.

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 both parameters are already documented with types, examples, and the default '15'. The description only restates that the rate is a percentage and can be custom, adding no format or edge-case semantics beyond the schema; baseline 3 applies.

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 names a specific verb ("Compute") and resource ("Saudi 15% VAT"), plus the custom-rate variant, which clearly separates it from the sibling validate/decode/encode tools. It stops short of explicitly contrasting with those siblings, but the function is unambiguous.

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 by the purpose statement; there is no explicit when-to-use or when-not-to-use guidance, and no mention of prerequisites such as needing a pre-VAT subtotal. An agent can infer the use case but gets no routing help beyond the obvious name difference.

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