Skip to main content
Glama

validate_uae_trn_and_vat

Read-onlyIdempotent

Validate a 15-digit UAE FTA TRN (100XXXXXXXXXXXX), derive the 10-digit Peppol PINT-AE TIN (scheme 0235), and compute exact 5% AED VAT.

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": {
      "trn": "<trn>"
    },
    "name": "validate_uae_trn_and_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
trnYes15-digit UAE FTA TRN starting with 100
subtotal_aedNoOptional net invoice amount in AED

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and idempotency profile is covered structurally. The description adds the derived-TIN scheme and the fixed 5% VAT rate, which is genuine extra context, but it says nothing about what happens on a malformed or checksum-invalid TRN, nor about the optional subtotal's effect.

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 carrying the three operations in logical order with zero filler; the format constraints are front-loaded alongside the verb that consumes them.

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?

With no output schema, the description must carry the return-value burden, and it only implies results (a validation verdict, a derived TIN, a VAT amount) without stating the response shape or error behavior. For a small two-parameter tool this is adequate but leaves a real gap.

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 in the schema and the baseline is 3. The description reinforces the TRN format and reveals that subtotal is used to compute VAT, but adds no syntax or edge-case meaning beyond the schema.

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?

The description gives three specific verb+resource pairs: validate a 15-digit UAE FTA TRN, derive the 10-digit Peppol PINT-AE TIN (scheme 0235), and compute 5% AED VAT. The UAE/PINT-AE framing makes it immediately distinguishable from the Saudi and ZATCA siblings.

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 implied by the UAE-specific scope rather than stated: an agent can infer this is the tool for UAE TRN work and not Saudi VAT or ZATCA TLV. There is no explicit when-to-use or when-not-to-use statement, and no named alternative.

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.