Freshly Inventory MCP by usefulapi
v1.9.1Read batches and assignments; create, update and assign batches in Freshly Inventory.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
freshly_get_shop Get Freshly shop
Return the Shopify store this API key belongs to (store name and shopify_domain). Good first call to confirm the key works. Freshly API: GET /api/shopify/shop.
freshly_list_inventory_batches List inventory batches
List inventory batches (lot tracking) with quantity, received and expiry dates and metadata. Filter by Shopify location or variant, or search by batch name, number, barcode or invoice. Freshly API: GET /api/shopify/inventory_batches.
| Parameter | Type | Description |
|---|---|---|
location_id | Shopify location id to filter by. | |
page | integer | Page number (default 1). |
search | string | Search batch name, batch number, barcode, invoice number, description or product. |
variant_id | Shopify product variant id to filter by. |
freshly_get_inventory_batch Get inventory batch
Return one inventory batch by its Freshly id. Freshly API: GET /api/shopify/inventory_batches/:id.
| Parameter | Type | Description |
|---|---|---|
batch_id * | Freshly inventory batch id. |
freshly_list_batch_assignments List batch assignments for an order line
List the inventory batches assigned to one Shopify order line item (batch, quantity, assignment id). Freshly API: GET /api/shopify/inventory_batch_order_items.
| Parameter | Type | Description |
|---|---|---|
line_item_id * | Shopify line item id on that order. | |
order_id * | Shopify order id. |
freshly_create_inventory_batch Create inventory batch
Create a new inventory batch of one product variant at one Shopify location. Set enable_shopify_sync true only when the Shopify stock level must change too. Freshly API: POST /api/shopify/inventory_batches.
| Parameter | Type | Description |
|---|---|---|
location_id * | Shopify location id. | |
quantity * | integer | Units in the batch. |
variant_id * | Shopify product variant id. | |
barcode | string | Batch barcode. |
batch_name | string | Batch name shown in Freshly. |
batch_number | string | Supplier or internal batch number. |
description | string | Free-text note. |
enable_shopify_sync | boolean | true also applies a Shopify inventory adjustment for this batch. Leave unset to record in Freshly only. |
expiry_date | string | Expiry date, yyyy-mm-dd. |
invoice_number | string | Purchase invoice number. |
received_date | string | Date the batch was received, yyyy-mm-dd. |
freshly_update_inventory_batch Update inventory batch
Change fields of one inventory batch (quantity, location, variant, dates or text). Only the fields you pass change. Set enable_shopify_sync true only when the Shopify stock level must change too. Freshly API: PUT /api/shopify/inventory_batches/:id.
| Parameter | Type | Description |
|---|---|---|
batch_id * | Freshly inventory batch id. | |
barcode | string | Batch barcode. |
batch_name | string | Batch name shown in Freshly. |
batch_number | string | Supplier or internal batch number. |
description | string | Free-text note. |
enable_shopify_sync | boolean | true also applies a Shopify inventory adjustment for this change. Leave unset to record in Freshly only. |
expiry_date | string | Expiry date, yyyy-mm-dd. |
invoice_number | string | Purchase invoice number. |
location_id | New Shopify location id. | |
quantity | integer | New quantity for the batch. |
received_date | string | Date the batch was received, yyyy-mm-dd. |
variant_id | New Shopify product variant id. |
freshly_assign_batch_to_line_item Assign batch to order line
Assign a quantity of one inventory batch to one Shopify order line item, so Freshly tracks which lot shipped. Freshly API: POST /api/shopify/inventory_batch_order_items.
| Parameter | Type | Description |
|---|---|---|
inventory_batch_id * | Freshly inventory batch id to draw from. | |
line_item_id * | Shopify line item id on that order. | |
order_id * | Shopify order id. | |
quantity * | integer | Units of the batch to assign to this line item. |
freshly_remove_batch_assignment Remove batch assignment from order line
Remove one batch assignment from an order line item (the assignment id comes from freshly_list_batch_assignments). Freshly API: DELETE /api/shopify/inventory_batch_order_items/:id.
| Parameter | Type | Description |
|---|---|---|
assignment_id * | Freshly batch assignment id (inventory_batch_order_items id). |