MCPCompliance
Search pending Metrc items
distru-search-pending-metrc-itemsReadSearches the Metrc items of one license that Distru has queued but Metrc has not created yet.
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. |
| licenseId | string | Yes | Resolve via distru-search-licenses. |
| search | string | No | Case-insensitive, fuzzy match on item name. Does not change sort order. |
| unitTypeCategory | enumCOUNTVOLUMEWEIGHT | No | |
| sortBy | object | No | Default: most recently created first. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumINSERTED_ATNAME | Yes | INSERTED_AT = pending row created in Distru. |
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 | Always |
| items[]. | enumCOUNT_BASEDVOLUME_BASEDWEIGHT_BASED | Always |
What the AI reads
Searches the Metrc items of one license that Distru has queued but Metrc has not created yet. Each row's id is a Distru ID and belongs in an assembly output's pendingMetrcItemId — never in metrcItemId; once Metrc accepts the item it leaves this list and appears in distru-search-metrc-items under its Metrc item ID. This list is usually empty: Distru normally syncs a new item to Metrc within seconds. A non-empty list means recently created items are still in flight — or, if entries linger, that the license's Metrc sync is stuck in Distru.