Skip to main content
Glama
NBrain Saudi ZATCA MCP Server

NBrain Saudi ZATCA MCP Server

validate_saudi_vat_number

Checks whether a string matches the Saudi ZATCA 15-digit VAT registration format (3XXXXXXXXXXXXX3) to prevent invalid tax IDs in invoices and compliance checks.

Instructions

Validate whether a string conforms to Saudi ZATCA 15-digit VAT registration format (3XXXXXXXXXXXXX3).

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": {
      "vat_number": "<vat_number>"
    },
    "name": "validate_saudi_vat_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
vat_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the key behavioral trait that validation is format-only (no registry/auth implications) and gives the exact accepted pattern, but it says nothing about the failure mode — whether an invalid string yields false, an error, or a message.

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

Conciseness4/5

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

One sentence, front-loaded with the verb and the format pattern that carries the real constraint; no redundant wording. It is efficient, though a short clause on the return/failure behavior would be worth the extra length.

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 single-parameter validator this is near-adequate, but with no output schema the description leaves the return contract unstated, so an agent cannot know whether to expect a boolean, a parsed result, or an exception on invalid input.

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 0% and the single parameter 'vat_number' is undocumented in the schema, so the description must compensate. It does this partially by specifying the required 15-digit shape with leading and trailing 3, but does not say whether digits-only or formatted strings (spaces, country prefix) are accepted.

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?

States a specific verb ('Validate') plus the exact resource and format: Saudi ZATCA 15-digit VAT registration format with the 3XXXXXXXXXXXXX3 pattern. It implicitly carves out that this is a format-shape check rather than a registry lookup or calculation, which separates it from calculate_saudi_vat/decode_zatca_tlv without naming them.

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 phrase 'conforms to ... format' signals this is a syntactic pre-check usable before encoding or calculating, but there is no explicit when-to-use statement, no mention of alternatives, and no clarification that it does not verify the number exists in ZATCA records.

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