{"auth":"Authorization: Bearer pos_<token> (tạo ở trang API)","mcp":{"url":"https://pos-app-bq8.pages.dev/mcp","transport":"streamable-http"},"openapi":"https://pos-app-bq8.pages.dev/openapi.yaml","tools":[{"name":"list_products","group":"Sản phẩm","method":"GET","path":"/api/products","description":"Tìm/liệt kê sản phẩm theo tên, SKU hoặc barcode.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Tên, SKU hoặc barcode"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_product","group":"Sản phẩm","method":"GET","path":"/api/products/{id}","description":"Chi tiết 1 sản phẩm.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID sản phẩm"}},"required":["id"],"additionalProperties":false}},{"name":"list_customers","group":"Khách hàng","method":"GET","path":"/api/customers","description":"Tìm/liệt kê khách hàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Tên hoặc số điện thoại"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_customer","group":"Khách hàng","method":"GET","path":"/api/customers/{id}","description":"Chi tiết 1 khách hàng.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"}},"required":["id"],"additionalProperties":false}},{"name":"get_customer_debt","group":"Khách hàng","method":"GET","path":"/api/customers/{id}/debt","description":"Công nợ (tiền VND + vàng quy 99) của 1 khách.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"}},"required":["id"],"additionalProperties":false}},{"name":"list_customer_debts","group":"Khách hàng","method":"GET","path":"/api/customers/debts","description":"Danh sách khách đang nợ / cửa hàng đang nợ khách.","input_schema":{"type":"object","properties":{"direction":{"type":"string","description":"all | customer_owes | shop_owes","enum":["all","customer_owes","shop_owes"]},"search":{"type":"string","description":"Tên/SĐT khách"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"list_orders","group":"Đơn hàng","method":"GET","path":"/api/orders","description":"Danh sách đơn hàng, lọc theo ngày/trạng thái.","input_schema":{"type":"object","properties":{"status":{"type":"string","description":"pending | completed | cancelled | ..."},"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_order","group":"Đơn hàng","method":"GET","path":"/api/orders/{id}","description":"Chi tiết 1 đơn hàng (dòng hàng, thanh toán).","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID đơn"}},"required":["id"],"additionalProperties":false}},{"name":"get_stock","group":"Kho","method":"GET","path":"/api/inventory/stock","description":"Tồn kho hiện tại.","input_schema":{"type":"object","properties":{"variant_id":{"type":"string","description":"Lọc theo 1 variant"}},"required":[],"additionalProperties":false}},{"name":"list_inventory_transactions","group":"Kho","method":"GET","path":"/api/inventory","description":"Lịch sử nhập/xuất/điều chỉnh kho.","input_schema":{"type":"object","properties":{"type":{"type":"string","description":"IN | OUT | ADJUST","enum":["IN","OUT","ADJUST"]},"search":{"type":"string","description":"Từ khoá"},"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"list_suppliers","group":"Nhà cung cấp","method":"GET","path":"/api/suppliers","description":"Danh sách nhà cung cấp.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"list_purchase_receipts","group":"Nhà cung cấp","method":"GET","path":"/api/purchase-receipts","description":"Phiếu nhập hàng.","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_gold_prices","group":"Vàng","method":"GET","path":"/api/gold/prices","description":"Giá vàng đã lưu.","input_schema":{"type":"object","properties":{"date":{"type":"string","description":"Ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}},{"name":"list_gold_orders","group":"Vàng","method":"GET","path":"/api/gold/orders","description":"Đơn hàng vàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"}},"required":[],"additionalProperties":false}},{"name":"list_gold_invoices","group":"Vàng","method":"GET","path":"/api/gold/invoices","description":"Hoá đơn vàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"}},"required":[],"additionalProperties":false}},{"name":"report_revenue","group":"Báo cáo","method":"GET","path":"/api/reports/revenue","description":"Báo cáo doanh thu (mặc định 30 ngày gần nhất).","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}},{"name":"report_stock","group":"Báo cáo","method":"GET","path":"/api/reports/stock","description":"Báo cáo tồn kho.","input_schema":{"type":"object","properties":{"filter":{"type":"string","description":"Bộ lọc, vd low-stock"}},"required":[],"additionalProperties":false}},{"name":"report_gold","group":"Báo cáo","method":"GET","path":"/api/reports/gold","description":"Báo cáo vàng.","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}}]}