vintrace MCP by usefulapi

v1.20.1
io.usefulapi/vintrace Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
operation_typesstringWinery job type, or several separated by commas (for example TIRAGE,TRANSFER).
scheduled_beforestringOnly work orders scheduled at or before this time (inclusive).
scheduled_sincestringOnly work orders scheduled at or after this time (inclusive).
statusstringWork 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.

ParameterTypeDescription
idstringComma-separated vintrace batch ids to fetch.
includestringExtra parts to include, comma-separated: vessels, allocations.
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex 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.

ParameterTypeDescription
as_atstringRun the report as at this time (default now).
batchstringOnly vessels holding this wine batch.
business_unitstringOnly this winery business unit.
extra_fieldsstringExtra fields, comma-separated: composition, allocations, liveMetrics.
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
ownerstringOnly this owner.
product_idintegerOnly this wine/product id.
vesselstringOnly this vessel (by name/code).
vessel_idintegerOnly this vessel id.
vessel_typestringVessel types, comma-separated: TANK, BIN, BARREL, BARREL_GROUP, BIN_GROUP, PRESS, TANKER.
winery_idintegerOnly this winery.
winery_namestringOnly 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}.

ParameterTypeDescription
vessel_id *integervintrace vessel id.
vessel_type *stringWhat 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.

ParameterTypeDescription
analysis_template_namearrayOnly tasks using these analysis templates. Several values match any of them.
arrival_statusstringOnly samples with this arrival status.
batcharrayOnly tasks sampled from batches with these names. Several values match any of them.
date_afterstringOnly tasks requested at or after this time.
date_beforestringOnly tasks requested at or before this time.
lab_namearrayOnly tasks assigned to labs with these names. Several values match any of them.
limitintegerResults per page, 1-200 (vintrace default 10).
modified_sincestringOnly tasks modified at or after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
statusarrayTask statuses (for example Completed to include finished tasks). Several values match any of them.
vessel_namearrayOnly tasks sampled from vessels with these names. Several values match any of them.
work_order_numberarrayOnly 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.

ParameterTypeDescription
composition_summary_bystringSummarise composition by: variety, vintage, region, subRegion (comma-separated).
limitintegerResults per page, 1-200 (vintrace default 10).
modified_beforestringOnly records modified before this time.
modified_sincestringOnly records modified after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
statusstringTrial 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.

ParameterTypeDescription
batch_namestringBatch name.
date_fromstringOperations completed on or after this date.
date_tostringOperations completed on or before this date.
owner_namestringOwner name.
winery_namestringWinery 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.

ParameterTypeDescription
limitintegerResults per page, 1-200 (vintrace default 10).
modified_beforestringOnly records modified before this time.
modified_sincestringOnly records modified after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
treatmentstringOnly 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.

ParameterTypeDescription
idstringComma-separated block ids.
includestringExtra parts to include, for example fruitPlacements (with vintage).
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
vintagestringVintage 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.

ParameterTypeDescription
assessed_bystringFilter 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_beforestringOnly assessments created before this time.
created_sincestringOnly assessments created after this time.
extra_fieldsstringExtra fields to include, comma-separated (see the BlockAssessment fields).
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex 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.

ParameterTypeDescription
vintage *integerVintage year, e.g. 2026.
winery_ids *arrayvintrace winery ids (see vintrace_get_vessel_details_report for winery names/ids).
arrival_afterstringArrival after this time.
arrival_beforestringArrival before this time.
block_namestringOnly this block.
booking_numberstringA vintrace booking number.
grower_namestringOnly this grower.
limitintegerResults per page, 1-200 (vintrace default 10).
modified_sincestringAdded, changed or deactivated since this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
vineyard_namestringOnly 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.

ParameterTypeDescription
limitintegerResults per page, 1-200 (vintrace default 10).
modified_beforestringOnly records modified before this time.
modified_sincestringOnly records modified after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
purchase_referencestringExact 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.

ParameterTypeDescription
block_namestringBlock name.
delivery_docketstringDelivery docket number.
first_resultintegerStart index of the page (default 0; vintrace "first").
grower_namestringGrower name.
intake_docketstringIntake docket number.
max_resultsintegerResults per page, 1-200.
modified_sincestringModified since this time.
owner_namestringFruit owner name.
recorded_afterstringRecorded at or after this time.
recorded_beforestringRecorded at or before this time.
vineyard_namestringVineyard name.
vintagestringVintage year.
winery_namestringWinery 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.

ParameterTypeDescription
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex 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.

ParameterTypeDescription
dispatch_typestringDispatch type name.
freight_codestringFreight code name.
includestringExtra wine details to include: allocations, metrics, composition, cost (comma-separated).
limitintegerResults per page, 1-200 (vintrace default 10).
modified_beforestringOnly records modified before this time.
modified_sincestringOnly records modified after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
typestringOperation 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.

ParameterTypeDescription
end *stringEnd of the period (required).
start *stringStart of the period (required).
business_unitstringOnly this business unit.
limitintegerResults per page, 1-200 (vintrace default 10).
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
winery_idintegerOnly this winery.
winery_namestringOnly 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.

ParameterTypeDescription
limitintegerResults per page, 1-200 (vintrace default 10).
modified_sincestringOnly records modified after this time.
offsetintegerIndex of the first result (default 0). Pass the previous reply's offset + limit.
statusstringAllocation status.
vintageintegerVintage year.

vintrace_get_purchase_order Get purchase order

One purchase order with its lines, state and fulfilment. GET /v7/account/purchase-orders/{id}.

ParameterTypeDescription
purchase_order_id *stringvintrace 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.

ParameterTypeDescription
breakout_costingbooleanBreak out each item's costs by category (needs the permission).
datestringReport stock up to this date, excluding later changes.
firstintegerStart index of the page (default 0; vintrace "first").
maxintegerResults per page, 1-200 (sent as vintrace's "max").
owner_namestringOnly this owner's stock.
stock_typestringStock 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.

ParameterTypeDescription
codestringStock item code (start of code).
idintegerStock 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}.

ParameterTypeDescription
stock_item_id *integervintrace stock item id (from vintrace_lookup_stock_item or vintrace_list_inventory).
expandstringComma-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.

ParameterTypeDescription
stock_item_id *integervintrace stock item id.
first_resultintegerStart index of the page (default 0; vintrace "first").
max_resultintegerNotes 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.

ParameterTypeDescription
barcodestringA vessel code or asset id.
firstintegerStart index of the page (default 0; vintrace "first").
maxintegerResults per page, 1-200 (sent as vintrace's "max").
skip_metricsbooleanLeave 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}.

ParameterTypeDescription
product_id *integervintrace product id.
barcodestringA 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.

ParameterTypeDescription
customer_namestringCustomer name.
end_datestringOrders on or before this date.
external_transaction_idstringExternal transaction id linked to the order.
firstintegerStart index of the page (default 0; vintrace "first").
invoice_end_datestringInvoiced on or before this date.
invoice_start_datestringInvoiced on or after this date.
maxintegerResults per page, 1-200 (sent as vintrace's "max").
start_datestringOrders on or after this date.
starts_withstringOrder name starts with this.
statusstringSales 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=.

ParameterTypeDescription
codestringSales order code, e.g. VSO20.
sales_order_idintegervintrace 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.

ParameterTypeDescription
categorystringParty category (default All).
firstintegerStart index of the page (default 0; vintrace "first").
maxintegerResults per page, 1-200 (sent as vintrace's "max").
starts_withstringSurname (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=.

ParameterTypeDescription
namestringExact party name.
party_idintegervintrace 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}.

ParameterTypeDescription
work_order_id *integervintrace 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.

ParameterTypeDescription
assigned_tostringAssignment filter (default AVAILABLE_TO_ME).
firstintegerStart index of the page (default 0; vintrace "first").
from_datestringScheduled on or after this date.
maxintegerResults per page, 1-200 (sent as vintrace's "max").
starts_withstringWork order name starts with this.
statestringStatus filter (default ANY).
to_datestringScheduled on or before this date.
winery_idintegerOnly 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.

ParameterTypeDescription
type *stringThe kind of item to list.
exact_matchbooleanTrue: the name must equal starts_with (default is a like match).
firstintegerStart index of the page (default 0; vintrace "first").
starts_withstringName 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.

ParameterTypeDescription
detail *stringThe note text.
stock_item_id *integervintrace stock item id.
subjectstringOptional 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.

ParameterTypeDescription
work_order_id *integervintrace work order id.
assign_operator_idintegervintrace user id to assign to (default: the token's user).
job_idintegerOnly this job of the work order.
reassignbooleanReassign 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.

ParameterTypeDescription
booking_id *stringvintrace booking id.