vintrace MCP by usefulapi
v1.20.1Read vintrace vessels, batches, work orders, lab results, stock; assign work orders, add notes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
vintrace_list_work_orders List work orders
List winery work orders (cellar jobs such as transfers, additions, bottling) with their jobs, assignee, status and scheduled time. Filter by scheduled time range, status and operation type. Reply: results plus next_offset. GET /v7/operation/work-orders.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
operation_types | string | Winery job type, or several separated by commas (for example TIRAGE,TRANSFER). |
scheduled_before | string | Only work orders scheduled at or before this time (inclusive). |
scheduled_since | string | Only work orders scheduled at or after this time (inclusive). |
status | string | Work order status, or several separated by commas (for example READY,IN_PROGRESS). |
vintrace_list_wine_batches List wine batches
List wine batches (the named lots of wine) with volume, variety, vintage and owner. Use include=vessels,allocations to add where each batch sits. Reply: results plus next_offset. GET /v7/operation/wine-batches.
| Parameter | Type | Description |
|---|---|---|
id | string | Comma-separated vintrace batch ids to fetch. |
include | string | Extra parts to include, comma-separated: vessels, allocations. |
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
vintrace_get_vessel_details_report Vessel contents report
The bulk wine report: every vessel (tank, barrel, bin, press, tanker) with its contents, volume, batch, owner and winery as at a date. Use extra_fields=composition,allocations,liveMetrics to add them. Covers every winery the token's user may access unless wineryId/wineryName narrows it. GET /v7/report/vessel-details-report.
| Parameter | Type | Description |
|---|---|---|
as_at | string | Run the report as at this time (default now). |
batch | string | Only vessels holding this wine batch. |
business_unit | string | Only this winery business unit. |
extra_fields | string | Extra fields, comma-separated: composition, allocations, liveMetrics. |
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
owner | string | Only this owner. |
product_id | integer | Only this wine/product id. |
vessel | string | Only this vessel (by name/code). |
vessel_id | integer | Only this vessel id. |
vessel_type | string | Vessel types, comma-separated: TANK, BIN, BARREL, BARREL_GROUP, BIN_GROUP, PRESS, TANKER. |
winery_id | integer | Only this winery. |
winery_name | string | Only the winery with this exact name. |
vintrace_get_vessel Get vessel
One vessel by id: a tank, barrel, barrel group, tanker or bin, with its details, dimensions and contents. GET /v7/vessel/<tanks|barrels|barrel-groups|tankers|bins>/{id}.
| Parameter | Type | Description |
|---|---|---|
vessel_id * | integer | vintrace vessel id. |
vessel_type * | string | What kind of vessel. |
vintrace_list_lab_requests List lab requests
The lab console: analysis tasks (samples to measure) with lab, template, vessel, batch, status and arrival. Completed tasks are left out unless status includes Completed. Reply: results plus next_offset. GET /v7/lab/lab-requests.
| Parameter | Type | Description |
|---|---|---|
analysis_template_name | array | Only tasks using these analysis templates. Several values match any of them. |
arrival_status | string | Only samples with this arrival status. |
batch | array | Only tasks sampled from batches with these names. Several values match any of them. |
date_after | string | Only tasks requested at or after this time. |
date_before | string | Only tasks requested at or before this time. |
lab_name | array | Only tasks assigned to labs with these names. Several values match any of them. |
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_since | string | Only tasks modified at or after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
status | array | Task statuses (for example Completed to include finished tasks). Several values match any of them. |
vessel_name | array | Only tasks sampled from vessels with these names. Several values match any of them. |
work_order_number | array | Only tasks requested by these work orders (TWL123 or 123). Several values match any of them. |
vintrace_list_trial_blends List trial blends
List trial blends (planned blend trials) with status and composition. Use composition_summary_by=variety,vintage to summarise. Reply: results plus next_offset. GET /v7/operation/trial-blends.
| Parameter | Type | Description |
|---|---|---|
composition_summary_by | string | Summarise composition by: variety, vintage, region, subRegion (comma-separated). |
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_before | string | Only records modified before this time. |
modified_since | string | Only records modified after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
status | string | Trial blend status, or several separated by commas. |
vintrace_search_transactions Search winemaking transactions
Winemaking operations completed in a date range (transfers, additions, blends, racking...) with the from/to vessels and before/after volumes. Defaults to today when no dates are given. GET /v6/transaction/search.
| Parameter | Type | Description |
|---|---|---|
batch_name | string | Batch name. |
date_from | string | Operations completed on or after this date. |
date_to | string | Operations completed on or before this date. |
owner_name | string | Owner name. |
winery_name | string | Winery name. |
vintrace_list_barrel_treatments List barrel treatments
Barrel move shipments / barrel treatments recorded in vintrace, with barrel states and treatment types. Reply: results plus next_offset. GET /v7/operation/barrel-treatments.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_before | string | Only records modified before this time. |
modified_since | string | Only records modified after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
treatment | string | Only this treatment. |
vintrace_list_blocks List vineyard blocks
List vineyard blocks (grower, vineyard, region, variety). To see fruit placements for a vintage pass include=fruitPlacements together with vintage. Reply: results plus next_offset. GET /v7/harvest/blocks.
| Parameter | Type | Description |
|---|---|---|
id | string | Comma-separated block ids. |
include | string | Extra parts to include, for example fruitPlacements (with vintage). |
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
vintage | string | Vintage year (needed with include). |
vintrace_list_block_assessments List block assessments
List vineyard block assessments (vine and fruit assessments by the viticulture team). Reply: results plus next_offset. GET /v7/harvest/assessments.
| Parameter | Type | Description |
|---|---|---|
assessed_by | string | Filter by assessor: a vintrace user id (123), or ext:<external id>. Prefix ne: to exclude that user (ne:123); the default is an exact match (eq:). |
created_before | string | Only assessments created before this time. |
created_since | string | Only assessments created after this time. |
extra_fields | string | Extra fields to include, comma-separated (see the BlockAssessment fields). |
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
vintrace_list_bookings List fruit bookings
List active fruit bookings (grape deliveries planned for a vintage) for one or more wineries: grower, block, variety, expected pick time and quantity. vintage and winery_ids are required. Reply: results plus next_offset. GET /v7/operation/bookings.
| Parameter | Type | Description |
|---|---|---|
vintage * | integer | Vintage year, e.g. 2026. |
winery_ids * | array | vintrace winery ids (see vintrace_get_vessel_details_report for winery names/ids). |
arrival_after | string | Arrival after this time. |
arrival_before | string | Arrival before this time. |
block_name | string | Only this block. |
booking_number | string | A vintrace booking number. |
grower_name | string | Only this grower. |
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_since | string | Added, changed or deactivated since this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
vineyard_name | string | Only this vineyard. |
vintrace_list_bulk_intakes List bulk intakes
List bulk wine/juice intakes (wine bought or received in bulk) with batch, volume, owner and cost. Reply: results plus next_offset. GET /v7/operation/bulk-intakes.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_before | string | Only records modified before this time. |
modified_since | string | Only records modified after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
purchase_reference | string | Exact purchase reference (sent to vintrace as eq:<reference>). |
vintrace_search_fruit_intakes Search fruit intakes
Fruit intake operations (grape deliveries weighed in at the winery): weights, grower, block, vineyard, vintage, docket numbers and metrics. Filter by vintage, grower, vineyard, block or recorded time. Page with first_result and max_results. GET /v6/intake-operations/search.
| Parameter | Type | Description |
|---|---|---|
block_name | string | Block name. |
delivery_docket | string | Delivery docket number. |
first_result | integer | Start index of the page (default 0; vintrace "first"). |
grower_name | string | Grower name. |
intake_docket | string | Intake docket number. |
max_results | integer | Results per page, 1-200. |
modified_since | string | Modified since this time. |
owner_name | string | Fruit owner name. |
recorded_after | string | Recorded at or after this time. |
recorded_before | string | Recorded at or before this time. |
vineyard_name | string | Vineyard name. |
vintage | string | Vintage year. |
winery_name | string | Winery name. |
vintrace_list_stock_dispatches List stock dispatches
List stock dispatch actions (bottled goods and dry goods sent out) with routes, items and shipping information. Reply: results plus next_offset. GET /v7/stock/dispatches.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
vintrace_list_shipments List bulk shipments
List shipments created by Bulk Dispatch and inter-winery dispatch operations, with destination and wine details. Reply: results plus next_offset. GET /v7/operation/shipments.
| Parameter | Type | Description |
|---|---|---|
dispatch_type | string | Dispatch type name. |
freight_code | string | Freight code name. |
include | string | Extra wine details to include: allocations, metrics, composition, cost (comma-separated). |
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_before | string | Only records modified before this time. |
modified_since | string | Only records modified after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
type | string | Operation type. |
vintrace_list_cost_transactions List bulk wine cost movements
Bulk wine cost movements between two times (cost of wine moved between batches and wineries), optionally for one winery or business unit. Needs the vintrace permission to view costs. Reply: results plus next_offset. GET /v7/costs/business-unit-transactions.
| Parameter | Type | Description |
|---|---|---|
end * | string | End of the period (required). |
start * | string | Start of the period (required). |
business_unit | string | Only this business unit. |
limit | integer | Results per page, 1-200 (vintrace default 10). |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
winery_id | integer | Only this winery. |
winery_name | string | Only the winery with this exact name. |
vintrace_list_brand_allocations List brand allocations
List brand allocations of bulk wine (how much of a wine is promised to which brand), by status and vintage. Reply: results plus next_offset. GET /v7/allocations/brand-allocations.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (vintrace default 10). |
modified_since | string | Only records modified after this time. |
offset | integer | Index of the first result (default 0). Pass the previous reply's offset + limit. |
status | string | Allocation status. |
vintage | integer | Vintage year. |
vintrace_get_purchase_order Get purchase order
One purchase order with its lines, state and fulfilment. GET /v7/account/purchase-orders/{id}.
| Parameter | Type | Description |
|---|---|---|
purchase_order_id * | string | vintrace purchase order id. |
vintrace_list_inventory List stock inventory
Stock on hand (bottled wine, dry goods, additives) up to a date: quantity, committed, on order and available per item, location, owner, tax class. breakout_costing needs the view-costs permission. GET /v6/inventory.
| Parameter | Type | Description |
|---|---|---|
breakout_costing | boolean | Break out each item's costs by category (needs the permission). |
date | string | Report stock up to this date, excluding later changes. |
first | integer | Start index of the page (default 0; vintrace "first"). |
max | integer | Results per page, 1-200 (sent as vintrace's "max"). |
owner_name | string | Only this owner's stock. |
stock_type | string | Stock type, for example Wine batch, Additive, Closure, Glass/Container, Case x12. |
vintrace_lookup_stock_item Look up stock item
Find one stock item by code (matched against the start of the code) or by id: type, unit, owner, accounts, tax class and sub-components. Give code or id. GET /v6/stock/lookup.
| Parameter | Type | Description |
|---|---|---|
code | string | Stock item code (start of code). |
id | integer | Stock item id. |
vintrace_get_stock_item Get stock item details
One stock item by id with optional detail parts: expand=fields,distributions,notes,historyItems,rawComponents,bulkInfo. GET /v6/mrp/stock/{id}.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | integer | vintrace stock item id (from vintrace_lookup_stock_item or vintrace_list_inventory). |
expand | string | Comma-separated parts to expand: fields, distributions, notes, historyItems, rawComponents, bulkInfo. |
vintrace_list_stock_item_notes List stock item notes
The notes recorded on a stock item. GET /v6/mrp/stock/{id}/notes.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | integer | vintrace stock item id. |
first_result | integer | Start index of the page (default 0; vintrace "first"). |
max_result | integer | Notes per page, 1-200. |
vintrace_list_products List products (wines in vessels)
List wine products as they sit in vessels: batch code, vessel, volume, colour, state and the latest lab metrics (TSO2, pH, Brix...). skip_metrics=true makes it faster. barcode matches a vessel code or asset id. GET /v6/products/list.
| Parameter | Type | Description |
|---|---|---|
barcode | string | A vessel code or asset id. |
first | integer | Start index of the page (default 0; vintrace "first"). |
max | integer | Results per page, 1-200 (sent as vintrace's "max"). |
skip_metrics | boolean | Leave out the metric measurements. |
vintrace_get_product Get product
One wine product by id (or by vessel barcode) with its vessel, volume and metrics. GET /v6/products/{id}.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | vintrace product id. |
barcode | string | A vessel code or asset id. |
vintrace_list_sales_orders List sales orders
List sales orders with customer, status, price list, line items, totals and invoice date. Filter by status, customer, order date range or invoice date range. GET /v6/sales-order/list.
| Parameter | Type | Description |
|---|---|---|
customer_name | string | Customer name. |
end_date | string | Orders on or before this date. |
external_transaction_id | string | External transaction id linked to the order. |
first | integer | Start index of the page (default 0; vintrace "first"). |
invoice_end_date | string | Invoiced on or before this date. |
invoice_start_date | string | Invoiced on or after this date. |
max | integer | Results per page, 1-200 (sent as vintrace's "max"). |
start_date | string | Orders on or after this date. |
starts_with | string | Order name starts with this. |
status | string | Sales order status. |
vintrace_get_sales_order Get sales order
One sales order by id, or by order code (for example VSO20): customer, items, prices, taxes and status. Give exactly one. GET /v6/sales-order/{id} or /v6/sales-order?code=.
| Parameter | Type | Description |
|---|---|---|
code | string | Sales order code, e.g. VSO20. |
sales_order_id | integer | vintrace sales order id. |
vintrace_list_parties List parties (customers, growers, owners)
List parties: customers, growers, suppliers and owners, individuals or organisations, with address, phone and email. Filter by the start of the name and category. GET /v6/party/list.
| Parameter | Type | Description |
|---|---|---|
category | string | Party category (default All). |
first | integer | Start index of the page (default 0; vintrace "first"). |
max | integer | Results per page, 1-200 (sent as vintrace's "max"). |
starts_with | string | Surname (individuals) or company name starts with this. |
vintrace_get_party Get party
One party (customer, grower, supplier, owner) by id, or by exact name. Give exactly one. GET /v6/party/{id} or /v6/party?name=.
| Parameter | Type | Description |
|---|---|---|
name | string | Exact party name. |
party_id | integer | vintrace party id. |
vintrace_get_work_order Get work order
One work order by id: every job with its steps, summary text, status and assignee. Find the id with vintrace_list_work_orders or vintrace_list_work_orders_v6. GET /v6/workorders/{id}.
| Parameter | Type | Description |
|---|---|---|
work_order_id * | integer | vintrace work order id (the number, not the TWL code). |
vintrace_list_work_orders_v6 List work orders (operator view)
Work orders from the operator's point of view (what is waiting for me / unassigned), with job counts, status and scheduled dates. Defaults to the last 7 days to 3 days ahead. GET /v6/workorders/list.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Assignment filter (default AVAILABLE_TO_ME). |
first | integer | Start index of the page (default 0; vintrace "first"). |
from_date | string | Scheduled on or after this date. |
max | integer | Results per page, 1-200 (sent as vintrace's "max"). |
starts_with | string | Work order name starts with this. |
state | string | Status filter (default ANY). |
to_date | string | Scheduled on or before this date. |
winery_id | integer | Only this winery. |
vintrace_search_items Search vintrace items by type
Look up names and ids of one kind of item: growers, owners, blocks, varietals, vintages, regions, programs, batches, products, tanks, barrels, bins and more. Use it to find the id or exact name another tool needs. GET /v6/search/list.
| Parameter | Type | Description |
|---|---|---|
type * | string | The kind of item to list. |
exact_match | boolean | True: the name must equal starts_with (default is a like match). |
first | integer | Start index of the page (default 0; vintrace "first"). |
starts_with | string | Name starts with this. |
vintrace_add_stock_item_note Add a note to a stock item
WRITE: adds a new note to a vintrace stock item (visible to everyone in the winery, recorded under the token's user). Adding the same note twice creates two notes. POST /v6/mrp/stock/{id}/notes.
| Parameter | Type | Description |
|---|---|---|
detail * | string | The note text. |
stock_item_id * | integer | vintrace stock item id. |
subject | string | Optional subject line. |
vintrace_assign_work_order Assign a work order
WRITE: assigns a work order to the token's own vintrace user (or to assign_operator_id), so it shows up in that operator's list. With reassign=true it takes over a work order already assigned to someone else. Check the work order first with vintrace_get_work_order. POST /v6/workorders/assign.
| Parameter | Type | Description |
|---|---|---|
work_order_id * | integer | vintrace work order id. |
assign_operator_id | integer | vintrace user id to assign to (default: the token's user). |
job_id | integer | Only this job of the work order. |
reassign | boolean | Reassign even if it is already assigned to another operator (default false). |
vintrace_deactivate_booking Deactivate a fruit booking
WRITE: deactivates a fruit booking so it no longer counts as an active booking (the record is kept; it is not deleted). Use vintrace_list_bookings to find the booking id first. POST /v7/operation/bookings/{id}/deactivation.
| Parameter | Type | Description |
|---|---|---|
booking_id * | string | vintrace booking id. |