Search Metrc rooms

distru-search-metrc-locationsRead

Searches Metrc locations — the facility rooms Distru syncs from Metrc, with the license each belongs to.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
licenseIdstringNoResolve via distru-search-licenses. Omit to search every license, mixing same-named rooms across facilities.
searchstringNoCase-insensitive substring of room name.

Output

Presence on a nested field assumes its parent exists.

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

Searches Metrc locations — the facility rooms Distru syncs from Metrc, with the license each belongs to. These are not Distru inventory locations; for those use distru-search-locations. Each row's id is the room's Metrc location ID, never a Distru ID — and is the value an assembly output's metrcLocationId expects. Sorted by room name.