Search unused Metrc tags

distru-search-available-metrc-tagsRead

Searches the unused Metrc tags the state issued to you.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
licenseIdstringNoOmit for every license the caller can see; a tag is usable only under the license it was issued to. Resolve via distru-search-licenses.
searchstringNoPart of a tag. Everything outside A-F and 0-9 is stripped first, so pass upper case — lower-case letters are dropped. A full 24-char label matches that tag exactly.
tagsstring[]NoExact full labels. A label missing from results is not this company's or already used — answers "can I still use these?".
kindenum
PACKAGEPLANT
NoTag pool; PACKAGE and PLANT pools never overlap. Default: "PACKAGE"
sortByobjectNoDefault: most recently updated first.
sortBy.directionenum
ASCDESC
Yes
sortBy.fieldenum
INSERTED_ATTAGUPDATED_AT
YesINSERTED_AT/UPDATED_AT = tag row entered/last changed in Distru, not state-side dates.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
hasMorebooleanAlways
nextCursorstringCan be absent
totalCountintegerCan be absent
itemsobject[]Always
items[].tagstringAlways
items[].licenseobjectAlways
items[].license.idstringAlways
items[].license.licenseNumberstringAlways
What the AI reads

Searches the unused Metrc tags the state issued to the company — the physical track-and-trace labels still free to put on something, not the packages already wearing one. Distru never mints a tag: completing an assembly output takes one from this pool, so use this to find a valid metrcLabel. Tags already assigned to a package or plant are never returned, so every row is safe to use. For the packages themselves use distru-search-packages.