BrewMan MCP by usefulapi

v1.6.1
io.usefulapi/brewman Checked 2 days ago Published 23 hours ago

Read orders, outlets, stock and purchase orders, and create or cancel orders in BrewMan.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

brewman_get_current_user Get the current user

Return the BrewMan user that the Api-Token belongs to, with its tenant group id. Use it to confirm the connection. BrewMan API: POST /webapi/User/v1/GetCurrentUserContext.

brewman_list_outlets List outlets

List all outlets (customers: pubs, shops, accounts) in the tenant. Use the outlet ids with the order tools. BrewMan API: POST /webapi/Outlet/v1/GetAllOutlets.

brewman_get_outlet Get an outlet

Get one outlet by id, with its contact, address, price list and credit terms. BrewMan API: POST /webapi/Outlet/v1/GetOutlet.

ParameterTypeDescription
outlet_id *stringThe outlet id (from brewman_list_outlets).

brewman_list_orders List orders

List full orders (header and lines) that match a filter. Dates are inclusive yyyy-mm-dd. Results can be large: set filter.maximumResults. BrewMan API: POST /webapi/Order/v2/GetOrdersByFilter.

ParameterTypeDescription
filterobjectOrder filter. All fields are optional.

brewman_get_order Get an order

Get one order by id, with its header and lines. BrewMan API: POST /webapi/Order/v2/GetOrder.

ParameterTypeDescription
order_id *stringThe order id (from brewman_list_orders).

brewman_list_items List items

List items (products, materials, services) that match a filter. Use the item ids with stock and order tools. BrewMan API: POST /webapi/Item/v1/GetItemsByFilter.

ParameterTypeDescription
filterobjectItem filter. All fields are optional.

brewman_get_stock_levels Get stock levels

Get the current stock level (all batches summed) per stock item and stock location. Narrow it with the id lists. BrewMan API: POST /webapi/Stock/v1/GetStockItemsQuantityCurrentlyInStock.

ParameterTypeDescription
limitintegerRows to return, 1-100. Default 25. The reply has total, returned and next_offset (null when done).
offsetintegerRows to skip, from next_offset of the last reply. Default 0.
stock_item_idsarrayOnly these stock items (item ids).
stock_location_idsarrayOnly these stock locations (from the stock location list).

brewman_get_stock_incoming_outgoing Get incoming and outgoing stock

Get the known incoming and outgoing stock totals (on purchase orders, allocated to orders, in transfers) for items and locations. BrewMan API: POST /webapi/Stock/v1/GetStockIncomingOutgoing.

ParameterTypeDescription
item_idsarrayItem ids to report on.
stock_location_idsarrayStock location ids to report on.

brewman_list_price_lists List price lists

List all price lists with their currency and whether they use gross pricing. Use the ids when you create an order. BrewMan API: POST /webapi/PriceList/v1/GetAllPriceLists.

brewman_list_purchase_orders List purchase orders

List purchase orders that match a filter (status, supplier, dates). Dates are inclusive yyyy-mm-dd. BrewMan API: POST /webapi/PurchaseOrder/v1/GetPurchaseOrdersByFilter.

ParameterTypeDescription
filterobjectPurchase order filter. All fields are optional.

brewman_create_order Create an order

Create a new order for an outlet, in Open status. Then add lines with brewman_add_order_line. Writes to the BrewMan tenant. BrewMan API: POST /webapi/Order/v1/CreateOrder.

ParameterTypeDescription
outlet_id *stringThe outlet the order is for. Required; it cannot be changed later.
customer_referencestringCustomer reference shown on documents.
delivery_datestringDelivery date (yyyy-mm-dd).
despatch_datestringDespatch date (yyyy-mm-dd).
duty_return_date_overridestringSpecial duty return date, only when needed.
external_referencestringReference of the order in the source system. Cannot be changed later.
order_sourcestringSource system of the order.
price_list_idstringPrice list id (from brewman_list_price_lists).
standard_order_typestringDuty and price type of the order.

brewman_add_order_line Add a line to an order

Add a stock item line to an open order. Pass a new GUID as order_line_id for each line. Writes to the BrewMan tenant. BrewMan API: POST /webapi/Order/v1/AddLineToOrder.

ParameterTypeDescription
order_id *stringThe order to add the line to (from brewman_create_order or brewman_list_orders).
order_line_id *stringA new GUID for the line. Generate one for each new line.
quantity *numberQuantity to add, in the unit of measure.
stock_item_id *stringThe stock item (item id) to add.
stock_location_id *stringThe stock location the line is taken from.
unit_of_measure_idstringUnit of measure id of the quantity.
urnstringOptional URN text of the line, sent as given.

brewman_delete_order_lines Delete order lines

Delete one or more lines from an order. This cannot be undone through the API. BrewMan API: POST /webapi/Order/v1/DeleteLinesFromOrder.

ParameterTypeDescription
line_ids *arrayThe ids of the lines to delete.
order_header_id *stringThe order id the lines belong to.

brewman_cancel_order Cancel an order

Cancel an order and give the reason. A cancelled order cannot be reopened through the API. BrewMan API: POST /webapi/Order/v1/CancelOrder.

ParameterTypeDescription
cancellation_reason *stringWhy the order is cancelled. BrewMan records it.
order_id *stringThe order to cancel.