MCPCompliance
Import Metrc packages
distru-import-metrc-packagesWriteBrings Metrc packages into Distru inventory as Distru packages, all-or-nothing: each package's full Metrc quantity is added as stock at its location.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| packages | object[] | Yes | |
| packages[]. | string | Yes | Full Metrc tag label, ignoring case. |
| packages[]. | string | No | Package-tracked product whose unit type measures like the package's unit (weight, volume or count). Omit to use the package's productMostRecentlyMappedToMetrcItem, else a product named like the Metrc item, else the product mapped to the most similar Metrc item name; the package is rejected when none matches or the match measures differently. Resolve via distru-search-products. |
| packages[]. | string | No | One of the license's locations. Default the license's intake location. Resolve via distru-search-locations. |
| packages[]. | string or number | No | Dollars per unit of the package, in its Metrc unit. Needs the "Apply costs on package import" permission. Required on every package when the company requires a cost on intake. |
| packages[]. | string | No | The package's own free-text lot label, not a Distru batch. |
| packages[]. | string | No |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| packages | object[] | Always |
| packages[]. | string | Always |
| packages[]. | object[] | Always |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | enumCHECKBOXDATEDROPDOWNTEXT | Always |
| packages[]. | string | Can be null |
| packages[]. | string | Always |
| packages[]. | enumBIOTRACKMETRCNONE | Always |
| packages[]. | number | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | enumACTIVEASSEMBLINGDESTROYEDDISCONTINUEDFINISHEDON_HOLDRETURNINGSELLINGSOLDTRANSFERRED | Always |
| packages[]. | boolean | Always |
| packages[]. | enumACTIVEDISCONTINUEDFINISHEDONHOLDTRANSFERRED | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string[] | Can be null |
| packages[]. | boolean | Always |
| packages[]. | enumASSEMBLY_INPUTASSEMBLY_OUTPUTCOMPLIANCE_TRANSFERCREATE_HARVEST_PACKAGECREATE_PLANT_BATCHES_FROM_PACKAGEDESTROY_PACKAGEFINISH_PACKAGESALES_ORDERSTOCK_ADJUSTMENTUNFINISH_PACKAGEUNKNOWN | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | boolean | Always |
| packages[]. | boolean | Always |
| packages[]. | boolean | Can be null |
| packages[]. | enumFAILEDNOT_TESTEDPASSEDPENDING | Always |
| packages[]. | string | Can be null |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Can be null |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | object | Can be null |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
| packages[]. | string | Can be null |
What the AI reads
Brings Metrc packages into Distru inventory as Distru packages, all-or-nothing: each package's full Metrc quantity is added as stock at its location. Sends nothing to Metrc. Packages must be active or on hold in Metrc, have quantity left, all be on one license, and not already be imported; find them with distru-search-metrc-packages (importStatus IMPORTABLE). Returns the Distru packages as distru-get-package does.