Megaventory MCP by usefulapi

v1.28.1
io.usefulapi/megaventory Checked 1 day ago Published 7 hours ago

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

ParameterTypeDescription
category_idintegerOnly products in this category (see megaventory_list_product_categories).
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_idintegerOnly products whose main supplier has this id.
product_idintegerOnly the product with this id.
searchstringProducts whose description contains this text.
show_deletedstringWhether to include deleted records (default: only undeleted).
skustringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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.
searchstringCategories whose name contains this text.
show_deletedstringWhether 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.

ParameterTypeDescription
sku *stringSKU of the finished product.
category_idintegerRestrict to products in this category.
include_referenced_objectsbooleanAlso return the referenced product objects.
limitintegerHow 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.

ParameterTypeDescription
bundle_idsarrayOnly these bundle product ids.
bundle_skusarrayOnly these bundle SKUs.
included_product_idsarrayBundles that include any of these product ids.
included_product_skusarrayBundles that include any of these product SKUs.
show_deletedstringWhether 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.

ParameterTypeDescription
category_idsarrayOnly products in these categories.
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
include_product_detailsbooleanAlso return the product objects.
limitintegerHow 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_idsarrayOnly these inventory locations (see megaventory_list_inventory_locations).
main_supplier_idsarrayOnly products whose main supplier is one of these ids.
only_needing_reorderbooleanOnly products that need to be ordered (at or below their alert level).
only_positive_quantitybooleanOnly products with a positive quantity.
product_idsarrayOnly these product ids.
searchstringProducts whose description contains this text.
skustringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
include_transitbooleanAlso include transit locations.
limitintegerHow 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_deletedstringWhether 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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.
searchstringRecords whose name contains this text.
show_deletedstringWhether to include deleted records (default: only undeleted).
typestringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
include_referenced_objectsbooleanAlso return the product and supplier objects.
limitintegerHow 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.

ParameterTypeDescription
client_idintegerOnly orders of this client.
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_nostringOnly the sales order with this number.
statusstringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_nostringOnly the purchase order with this number.
statusstringOnly orders in this status (ValidStatus = every non-cancelled order).
supplier_idintegerOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_nostringOnly the quote with this number.
statusstringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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.
statusstringOnly work orders in this status.
work_order_nostringOnly 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.

ParameterTypeDescription
document_nostringOnly the document with this number.
document_type_idsarrayOnly documents of these type ids (built-in types have negative ids).
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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.
statusstringOnly 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_deletedstringWhether 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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_deletedstringWhether 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.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Field names are the property names shown in the results (case-insensitive).
limitintegerHow 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.

ParameterTypeDescription
name *stringCompany or person name.
type *stringWhether the record is a client, a supplier or both.
billing_addressstringBilling address, free text.
commentsstring
contact_emailstring
contact_namestringOptionally add one contact person.
contact_phonestring
emailstring
phonestring
shipping_addressstringShipping address, free text.
tax_idstringTax / 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.

ParameterTypeDescription
client_id *integerClient id (megaventory_list_clients_suppliers).
rows *arrayThe order rows.
commentsstring
location_idintegerInventory location the order is served from (megaventory_list_inventory_locations).
reference_nostringYour own reference number.
type_idintegerDocument 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.

ParameterTypeDescription
rows *arrayThe order rows.
supplier_id *integerSupplier id (megaventory_list_clients_suppliers).
commentsstring
location_idintegerInventory location the goods are received into (megaventory_list_inventory_locations).
reference_nostringYour own reference number.
type_idintegerDocument type id of the purchase order (default 4, the standard Purchase Order type; see megaventory_list_document_types).