MCPInventory
Search inventory locations
distru-search-locationsReadSearches your warehouses and rooms, with the license and Metrc room each maps to.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Default: 10 |
| cursor | string | No | nextCursor of the previous call; keep the other arguments unchanged. |
| complianceType | enumBIOTRACKMETRCNONE | No | Of the location's license. NONE: not tracked in Metrc. |
| ids | string[] | No | |
| licenseId | string | No | Resolve via distru-search-licenses. |
| packageProductIds | string[] | No | Locations holding at least one non-inactive package of these products: where a product is stocked. Resolve via distru-search-products. |
| search | string | No | Case-insensitive substring of name. Ranked by name similarity; an explicit sortBy wins, similarity tie-breaks. |
| sortBy | object | No | Default UPDATED_AT DESC, or name similarity when search is set. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumINSERTED_ATNAMEUPDATED_AT | Yes |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| hasMore | boolean | Always |
| nextCursor | string | Can be absent |
| totalCount | integer | Can be absent |
| items | object[] | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
What the AI reads
Searches the caller's company's inventory locations — the warehouses and rooms Distru stores stock and plants in — with the license each sits under and the Metrc room it maps to. For the Metrc rooms themselves, use distru-search-metrc-locations. For where a product is stocked, use packageProductIds.