Skip to main content
Glama
nbrain-mena-logistics-wasl-dispatch

nbrain-mena-logistics-wasl-dispatch

nbrain-mena-logistics-wasl-dispatch — Saudi TGA Wasl Telematics, UK TfL PHV Private Hire Compliance, WGS84 Vincenty Geodesy & Last-Mile COD Ledger + MCP Server

License: MIT Python 3.10+ MCP Registry

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in) for commercial fleet telematics, cold-chain pharmaceutical delivery, UK private-hire dispatch, and MENA e-commerce COD couriers.

Core Modules

  1. Saudi Transport General Authority (TGA Wasl — وصل): Validates 15-digit GPS tracker IMEI Luhn check digits, KSA spatial bounds, commercial speed caps, and SFDA Cold-Chain cargo temperature regimes (2°C–8°C chilled pharma, <= -18°C frozen, 15°C–25°C controlled ambient).

  2. Iterative WGS84 Vincenty Ellipsoidal Distance (0.5 mm precision): Sub-millimeter oblate-spheroid geodesic distance + exact-Decimal dispatch fare and surge pricing.

  3. UK TfL Private Hire (PHV) Operator Compliance: Enforces the post-2021 High Court Operator-as-Principal contract & 20% UK VAT rule, pre-booked dispatch timestamps (blocking illegal plying-for-hire), and driver/vehicle/operator badge validity.

  4. Last-Mile COD (Cash-on-Delivery) Manifest Reconciler: Exact Decimal courier cash-in-hand variance, RTO (Return-to-Origin) fee handling, and merchant net settlement.

Related MCP server: SooTool

Quick Verification

PYTHONPATH=src python -m unittest discover -s tests -v

Available Tools

4 tools
audit_uk_tfl_phv_operator_bookingBInspect

Audit a London TfL Private Hire (PHV) booking for Principal-contract 20% VAT compliance, pre-booking timestamps, and driver rest hours.

Inputs: booking (required).

calculate_wgs84_vincenty_dispatch_fareCInspect

Compute 0.5mm-precision WGS84 Vincenty ellipsoidal distance and exact-Decimal ride/delivery dispatch fare.

Inputs: pickup_lat (required), pickup_lon (required), dropoff_lat (required), dropoff_lon (required), +4 more.

reconcile_last_mile_cod_manifestCInspect

Reconcile a courier's Cash-on-Delivery (COD) & Return-to-Origin (RTO) manifest and compute merchant net settlement.

Inputs: shipments (required), courier_remitted_cash (required), vat_rate_pct.

validate_saudi_tga_wasl_telemetryCInspect

Validate Saudi TGA Wasl commercial fleet GPS/IMEI Luhn telemetry and SFDA cold-chain temperature bounds.

Inputs: payload (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct jurisdiction and artifact: Saudi TGA Wasl telemetry validation, WGS84/Vincenty fare computation, UK TfL PHV booking audit, and COD/RTO manifest reconciliation. Despite all being logistics-compliance operations, the region and object qualifiers make misselection unlikely.

    Naming Consistency4/5

    All four names are snake_case and verb-first (validate_, calculate_, audit_, reconcile_), which is a predictable pattern. The names are extremely long and heavily over-qualified, but the convention itself is consistent.

    Tool Count4/5

    Four tools is on the thin side but each covers a genuinely separate compliance/calculation concern, so none feels redundant. For a narrow regulatory-dispatch utility, this is a reasonable scoping.

    Completeness3/5

    The surface is entirely stateless validators/calculators with no create/get/update operations for bookings, shipments, or drivers, so agents hit dead ends for lifecycle work like creating a dispatch or tracking status. Core regulatory checks are covered, but the dispatch domain itself is only partially represented.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables LLM agents to perform precise decimal-only calculations across tax, payroll, finance, statistics, engineering, and other domains, returning calculation traces and verifiable receipts. It supports batched and pipelined tool calls with policy-aware, date-sensitive computations.
      286
      32 PyPI
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exact arbitrary-precision invoice auditing, bank-statement reconciliation, and financial schedule engine for autonomous AI accounting agents with zero floating-point drift.
      508 npm
      Apache 2.0