Tools & integrations
Tools mirror industrial statistical work rather than exposing unrestricted database access
Each tool has a bounded purpose, explicit inputs, authorised source scope, deterministic failure behaviour and audit output.
| Tool contract | Operational purpose | Control / failure behaviour |
|---|---|---|
| resolve_establishment_identity | Match establishment candidates using controlled identifiers, registration attributes, geography and unit relationship. | Returns ambiguity/conflict; never merges by name similarity alone. |
| get_industrial_return | Retrieve a specific establishment, reporting period and version/status. | Requires authorised scope; returns source/version metadata. |
| get_classification_history | Retrieve applicable industry classification and historical mappings. | Flags incompatible or unresolved classification periods. |
| validate_return_consistency | Run completeness, range, relationship and historical-variance checks. | Returns PASS/WARN/FAIL with rule IDs; never silently changes values. |
| get_correction_history | Retrieve original, corrected, superseded and approved versions with reasons. | Preserves immutable history and actor/timestamp evidence. |
| compare_industrial_periods | Calculate reproducible period changes from compatible accepted records. | Fails/flags incompatible units, classification or unresolved records. |
| prepare_clarification_package | Assemble evidence, anomaly and questions for officer/field follow-up. | Creates draft only; no source modification. |
| prepare_statistical_table | Build reviewable table from accepted, lineage-qualified records. | Retains exclusions, calculation trace and evidence references. |
| register_approved_correction | Create a new corrected record version after explicit approval. | Requires approver evidence and expected prior version; original remains preserved. |
The reference connector layer is designed so legacy databases, CSV/Excel imports, document repositories and future APIs can be normalised behind the same governed contracts without giving the LLM direct database credentials.
Primewayz industrial statistical intelligence