Megaventory MCP by usefulapi
v1.28.1Read Megaventory products, stock, orders and partners; create clients, sales and purchase orders.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
megaventory_get_current_user Get current user
The Megaventory user this API key belongs to (user name and whether they are an administrator). The key itself and the mobile PIN are never returned. POST /User/UserGet.
megaventory_list_products List products
Search the product catalog: SKU, description, category, prices (selling, purchase, unit cost), dimensions, main supplier, sellable/purchasable flags and more. Filter by id, exact SKU, category, main supplier or words in the description. Empty text fields are omitted. POST /Product/ProductGet.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only products in this category (see megaventory_list_product_categories). |
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
main_supplier_id | integer | Only products whose main supplier has this id. |
product_id | integer | Only the product with this id. |
search | string | Products whose description contains this text. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
sku | string | Only the product with exactly this SKU. |
megaventory_list_product_categories List product categories
List product categories (id, name, description). Use the ids to filter products. POST /ProductCategory/ProductCategoryGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
search | string | Categories whose name contains this text. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
megaventory_get_product_bom Get product bill of materials
The bill of materials (BOM) of a manufactured product: its raw materials (id, SKU, description, quantity per unit). POST /ProductBOM/ProductBOMGet.
| Parameter | Type | Description |
|---|---|---|
sku * | string | SKU of the finished product. |
category_id | integer | Restrict to products in this category. |
include_referenced_objects | boolean | Also return the referenced product objects. |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
megaventory_list_product_bundles List product bundles
List product bundles (a bundle sells several products together). Filter by bundle id or SKU, or by a product the bundle includes. POST /Product/ProductBundleGetAll.
| Parameter | Type | Description |
|---|---|---|
bundle_ids | array | Only these bundle product ids. |
bundle_skus | array | Only these bundle SKUs. |
included_product_ids | array | Bundles that include any of these product ids. |
included_product_skus | array | Bundles that include any of these product SKUs. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
megaventory_get_stock Get stock levels
Stock per product per inventory location: physical stock, on hand, on hold, not yet shipped (open sales orders), not yet received (open purchase orders / work orders) and the alert level. Filter by product ids, SKU, category, location or supplier, or show only products below their alert level. POST /InventoryLocationStock/InventoryLocationStockGet.
| Parameter | Type | Description |
|---|---|---|
category_ids | array | Only products in these categories. |
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
include_product_details | boolean | Also return the product objects. |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
location_ids | array | Only these inventory locations (see megaventory_list_inventory_locations). |
main_supplier_ids | array | Only products whose main supplier is one of these ids. |
only_needing_reorder | boolean | Only products that need to be ordered (at or below their alert level). |
only_positive_quantity | boolean | Only products with a positive quantity. |
product_ids | array | Only these product ids. |
search | string | Products whose description contains this text. |
sku | string | Only the product with exactly this SKU. |
megaventory_list_inventory_locations List inventory locations
List inventory locations (warehouses, shops, transit): id, abbreviation, name, address. Use the ids for stock filters and order locations. POST /InventoryLocation/InventoryLocationGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
include_transit | boolean | Also include transit locations. |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
megaventory_list_clients_suppliers List clients and suppliers
List clients and suppliers (one record type in Megaventory): id, type, name, addresses, phone, email, tax id, currency, payment terms and contacts. Filter by type or words in the name. POST /SupplierClient/SupplierClientGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
search | string | Records whose name contains this text. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
type | string | Only clients, only suppliers, or records that are both. |
megaventory_list_product_suppliers List product supplier prices
Which suppliers sell which products: supplier SKU, description and purchase price per product-supplier pair. POST /ProductSupplier/ProductSupplierGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
include_referenced_objects | boolean | Also return the product and supplier objects. |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
megaventory_list_sales_orders List sales orders
List sales orders with client, dates, totals (subtotal, tax, discount, grand total), status and the order rows (SKU, quantity, shipped/invoiced quantity, unit price). Filter by order number or status. POST /SalesOrder/SalesOrderGet.
| Parameter | Type | Description |
|---|---|---|
client_id | integer | Only orders of this client. |
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
order_no | string | Only the sales order with this number. |
status | string | Only orders in this status (ValidStatus = every non-cancelled order). |
megaventory_list_purchase_orders List purchase orders
List purchase orders with supplier, dates, totals, status and the order rows (SKU, quantity, received/invoiced quantity, unit price). Filter by order number, status or supplier. POST /PurchaseOrder/PurchaseOrderGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
order_no | string | Only the purchase order with this number. |
status | string | Only orders in this status (ValidStatus = every non-cancelled order). |
supplier_id | integer | Only orders to this supplier. |
megaventory_list_sales_quotes List sales quotes
List sales quotes with client, totals, status and rows. Filter by quote number or status. POST /SalesQuote/SalesQuoteGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
quote_no | string | Only the quote with this number. |
status | string | Only quotes in this status. |
megaventory_list_work_orders List work orders
List work (production) orders: finished product, quantity, location, status, priority and the materials allocated. Filter by work order number or status. POST /WorkOrder/WorkOrderGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
status | string | Only work orders in this status. |
work_order_no | string | Only the work order with this number. |
megaventory_list_documents List documents
List transaction documents of any type: shipments, invoices, receipts, credit notes, returns, adjustments and so on, with totals and status. Narrow by document type ids (megaventory_list_document_types), document number or status. POST /Document/DocumentGet.
| Parameter | Type | Description |
|---|---|---|
document_no | string | Only the document with this number. |
document_type_ids | array | Only documents of these type ids (built-in types have negative ids). |
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
status | string | Only documents in this status. |
megaventory_list_document_types List document types
List the document types of the account (sales order, purchase order, shipment, invoice and so on) with their ids and abbreviations. POST /DocumentType/DocumentTypeGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
megaventory_list_taxes List taxes
List the tax rates defined in the account (id, name, rate). POST /Tax/TaxGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
show_deleted | string | Whether to include deleted records (default: only undeleted). |
megaventory_list_currencies List currencies
List the currencies of the account (code, description, exchange rate to the default currency, default flag). POST /Currency/CurrencyGet.
| Parameter | Type | Description |
|---|---|---|
filters | array | Extra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive). |
limit | integer | How many records to return, 1-100 (default 25). Megaventory returns the newest records first (highest id) and has no page offset: narrow with filters instead of paging. |
megaventory_create_client_or_supplier Create client or supplier
WRITE: create a NEW client, supplier or both in Megaventory (Insert only: an existing record is never updated, nothing is deleted). Creating the same name twice creates two records, so search with megaventory_list_clients_suppliers first. POST /SupplierClient/SupplierClientUpdate.
| Parameter | Type | Description |
|---|---|---|
name * | string | Company or person name. |
type * | string | Whether the record is a client, a supplier or both. |
billing_address | string | Billing address, free text. |
comments | string | |
contact_email | string | |
contact_name | string | Optionally add one contact person. |
contact_phone | string | |
email | string | |
phone | string | |
shipping_address | string | Shipping address, free text. |
tax_id | string | Tax / VAT id. |
megaventory_create_sales_order Create pending sales order
WRITE: create a NEW sales order for an existing client in the PENDING status. A pending order is only a draft document: it is not verified, nothing is shipped, invoiced or paid, and stock is not touched. Verifying, shipping and invoicing happen in Megaventory, not through this server. POST /SalesOrder/SalesOrderUpdate.
| Parameter | Type | Description |
|---|---|---|
client_id * | integer | Client id (megaventory_list_clients_suppliers). |
rows * | array | The order rows. |
comments | string | |
location_id | integer | Inventory location the order is served from (megaventory_list_inventory_locations). |
reference_no | string | Your own reference number. |
type_id | integer | Document type id of the sales order (default 3, the standard Sales Order type; see megaventory_list_document_types). |
megaventory_create_purchase_order Create pending purchase order
WRITE: create a NEW purchase order to an existing supplier in the PENDING status. A pending order is only a draft document: it is not verified or sent, nothing is received, invoiced or paid, and stock is not touched. Verifying and receiving happen in Megaventory, not through this server. POST /PurchaseOrder/PurchaseOrderUpdate.
| Parameter | Type | Description |
|---|---|---|
rows * | array | The order rows. |
supplier_id * | integer | Supplier id (megaventory_list_clients_suppliers). |
comments | string | |
location_id | integer | Inventory location the goods are received into (megaventory_list_inventory_locations). |
reference_no | string | Your own reference number. |
type_id | integer | Document type id of the purchase order (default 4, the standard Purchase Order type; see megaventory_list_document_types). |