@yoryoboy/bi-mcp 1.11.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/README.md +4 -5
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/index.js +426 -6
  4. package/dist/index.js.map +2 -2
  5. package/dist/mcp-use.json +2 -2
  6. package/dist/src/config/__tests__/meta.test.js +35 -0
  7. package/dist/src/config/__tests__/meta.test.js.map +7 -0
  8. package/dist/src/config/meta-store.js +109 -0
  9. package/dist/src/config/meta-store.js.map +7 -0
  10. package/dist/src/config/meta.js +0 -2
  11. package/dist/src/config/meta.js.map +2 -2
  12. package/dist/src/meta/__tests__/meta-utils.test.js +155 -0
  13. package/dist/src/meta/__tests__/meta-utils.test.js.map +7 -0
  14. package/dist/src/services/mercadolibre/__tests__/mercadolibre-api.test.js +265 -0
  15. package/dist/src/services/mercadolibre/__tests__/mercadolibre-api.test.js.map +7 -0
  16. package/dist/src/services/mercadolibre/__tests__/mercadolibre-items.test.js +311 -0
  17. package/dist/src/services/mercadolibre/__tests__/mercadolibre-items.test.js.map +7 -0
  18. package/dist/src/services/mercadolibre/__tests__/mercadolibre-orders.test.js +220 -0
  19. package/dist/src/services/mercadolibre/__tests__/mercadolibre-orders.test.js.map +7 -0
  20. package/dist/src/services/meta/__tests__/meta-ads.test.js +126 -0
  21. package/dist/src/services/meta/__tests__/meta-ads.test.js.map +7 -0
  22. package/dist/src/services/meta/__tests__/meta-api.test.js +70 -0
  23. package/dist/src/services/meta/__tests__/meta-api.test.js.map +7 -0
  24. package/dist/src/services/meta/meta-ads.js +94 -40
  25. package/dist/src/services/meta/meta-ads.js.map +2 -2
  26. package/dist/src/services/meta/meta-api.js +8 -6
  27. package/dist/src/services/meta/meta-api.js.map +2 -2
  28. package/dist/src/services/vtex/__tests__/vtex-catalog-write-batch.test.js +165 -0
  29. package/dist/src/services/vtex/__tests__/vtex-catalog-write-batch.test.js.map +7 -0
  30. package/dist/src/services/vtex/__tests__/vtex-catalog-write-eans.test.js +92 -0
  31. package/dist/src/services/vtex/__tests__/vtex-catalog-write-eans.test.js.map +7 -0
  32. package/dist/src/services/vtex/__tests__/vtex-catalog-write-products.test.js +41 -0
  33. package/dist/src/services/vtex/__tests__/vtex-catalog-write-products.test.js.map +7 -0
  34. package/dist/src/services/vtex/__tests__/vtex-catalog.test.js +80 -0
  35. package/dist/src/services/vtex/__tests__/vtex-catalog.test.js.map +7 -0
  36. package/dist/src/services/vtex/__tests__/vtex-orders-write-http.test.js +85 -0
  37. package/dist/src/services/vtex/__tests__/vtex-orders-write-http.test.js.map +7 -0
  38. package/dist/src/services/vtex/__tests__/vtex-orders-write-state-validation.test.js +251 -0
  39. package/dist/src/services/vtex/__tests__/vtex-orders-write-state-validation.test.js.map +7 -0
  40. package/dist/src/services/vtex/__tests__/vtex-payments.test.js +95 -0
  41. package/dist/src/services/vtex/__tests__/vtex-payments.test.js.map +7 -0
  42. package/dist/src/services/vtex/__tests__/vtex-write.test.js +111 -0
  43. package/dist/src/services/vtex/__tests__/vtex-write.test.js.map +7 -0
  44. package/dist/src/services/vtex/vtex-catalog-write.js +194 -1
  45. package/dist/src/services/vtex/vtex-catalog-write.js.map +2 -2
  46. package/dist/src/services/vtex/vtex-catalog.js +118 -1
  47. package/dist/src/services/vtex/vtex-catalog.js.map +2 -2
  48. package/dist/src/services/vtex/vtex-payments-write.js +64 -0
  49. package/dist/src/services/vtex/vtex-payments-write.js.map +7 -0
  50. package/dist/src/services/vtex/vtex-payments.js +43 -0
  51. package/dist/src/services/vtex/vtex-payments.js.map +7 -0
  52. package/dist/src/services/vtex/vtex-pricing-write.js +5 -0
  53. package/dist/src/services/vtex/vtex-pricing-write.js.map +2 -2
  54. package/dist/src/services/vtex/vtex-write.js +67 -1
  55. package/dist/src/services/vtex/vtex-write.js.map +2 -2
  56. package/dist/src/tools/config/list-profiles.js +37 -6
  57. package/dist/src/tools/config/list-profiles.js.map +2 -2
  58. package/dist/src/tools/index.js.map +2 -2
  59. package/dist/src/tools/mercadolibre/__tests__/helpers.test.js +37 -0
  60. package/dist/src/tools/mercadolibre/__tests__/helpers.test.js.map +7 -0
  61. package/dist/src/tools/mercadolibre/__tests__/profile-resolution.test.js +30 -0
  62. package/dist/src/tools/mercadolibre/__tests__/profile-resolution.test.js.map +7 -0
  63. package/dist/src/tools/mercadolibre/profile-resolution.js +4 -50
  64. package/dist/src/tools/mercadolibre/profile-resolution.js.map +2 -2
  65. package/dist/src/tools/meta/__tests__/pagination.test.js +133 -0
  66. package/dist/src/tools/meta/__tests__/pagination.test.js.map +7 -0
  67. package/dist/src/tools/meta/__tests__/profile-access.test.js +262 -0
  68. package/dist/src/tools/meta/__tests__/profile-access.test.js.map +7 -0
  69. package/dist/src/tools/meta/__tests__/read-tools.test.js +722 -0
  70. package/dist/src/tools/meta/__tests__/read-tools.test.js.map +7 -0
  71. package/dist/src/tools/meta/__tests__/schemas.test.js +103 -0
  72. package/dist/src/tools/meta/__tests__/schemas.test.js.map +7 -0
  73. package/dist/src/tools/meta/account-overview.js +37 -19
  74. package/dist/src/tools/meta/account-overview.js.map +2 -2
  75. package/dist/src/tools/meta/ad-account-info.js +31 -6
  76. package/dist/src/tools/meta/ad-account-info.js.map +2 -2
  77. package/dist/src/tools/meta/ads-performance.js +35 -21
  78. package/dist/src/tools/meta/ads-performance.js.map +2 -2
  79. package/dist/src/tools/meta/campaign-performance.js +35 -18
  80. package/dist/src/tools/meta/campaign-performance.js.map +2 -2
  81. package/dist/src/tools/meta/list-accessible-ad-accounts.js +39 -10
  82. package/dist/src/tools/meta/list-accessible-ad-accounts.js.map +2 -2
  83. package/dist/src/tools/meta/list-accessible-businesses.js +37 -13
  84. package/dist/src/tools/meta/list-accessible-businesses.js.map +2 -2
  85. package/dist/src/tools/meta/placement-mix.js +37 -22
  86. package/dist/src/tools/meta/placement-mix.js.map +2 -2
  87. package/dist/src/tools/meta/profile-access.js +215 -0
  88. package/dist/src/tools/meta/profile-access.js.map +7 -0
  89. package/dist/src/tools/meta/schema-helpers.js +19 -0
  90. package/dist/src/tools/meta/schema-helpers.js.map +7 -0
  91. package/dist/src/tools/meta/time-series.js +40 -23
  92. package/dist/src/tools/meta/time-series.js.map +2 -2
  93. package/dist/src/tools/vtex/__tests__/catalog-admin-batch.test.js +233 -0
  94. package/dist/src/tools/vtex/__tests__/catalog-admin-batch.test.js.map +7 -0
  95. package/dist/src/tools/vtex/__tests__/catalog-admin-categories.test.js +649 -0
  96. package/dist/src/tools/vtex/__tests__/catalog-admin-categories.test.js.map +7 -0
  97. package/dist/src/tools/vtex/__tests__/catalog-admin-product-specifications.test.js +339 -0
  98. package/dist/src/tools/vtex/__tests__/catalog-admin-product-specifications.test.js.map +7 -0
  99. package/dist/src/tools/vtex/__tests__/catalog-admin-products-skus.test.js +235 -0
  100. package/dist/src/tools/vtex/__tests__/catalog-admin-products-skus.test.js.map +7 -0
  101. package/dist/src/tools/vtex/__tests__/catalog-navigation-reads.test.js +372 -0
  102. package/dist/src/tools/vtex/__tests__/catalog-navigation-reads.test.js.map +7 -0
  103. package/dist/src/tools/vtex/__tests__/catalog-navigation-surface.test.js +57 -0
  104. package/dist/src/tools/vtex/__tests__/catalog-navigation-surface.test.js.map +7 -0
  105. package/dist/src/tools/vtex/__tests__/commercial-condition-references.test.js +14 -0
  106. package/dist/src/tools/vtex/__tests__/commercial-condition-references.test.js.map +7 -0
  107. package/dist/src/tools/vtex/__tests__/commercial-conditions.test.js +276 -0
  108. package/dist/src/tools/vtex/__tests__/commercial-conditions.test.js.map +7 -0
  109. package/dist/src/tools/vtex/__tests__/payment-rules.test.js +253 -0
  110. package/dist/src/tools/vtex/__tests__/payment-rules.test.js.map +7 -0
  111. package/dist/src/tools/vtex/__tests__/write-helpers.test.js +97 -0
  112. package/dist/src/tools/vtex/__tests__/write-helpers.test.js.map +7 -0
  113. package/dist/src/tools/vtex/activate-sku.js +1 -48
  114. package/dist/src/tools/vtex/activate-sku.js.map +2 -2
  115. package/dist/src/tools/vtex/associate-specification.js +3 -54
  116. package/dist/src/tools/vtex/associate-specification.js.map +2 -2
  117. package/dist/src/tools/vtex/attach-catalog-image.js +3 -57
  118. package/dist/src/tools/vtex/attach-catalog-image.js.map +2 -2
  119. package/dist/src/tools/vtex/catalog-admin-batch.js +298 -0
  120. package/dist/src/tools/vtex/catalog-admin-batch.js.map +7 -0
  121. package/dist/src/tools/vtex/catalog-admin-categories.js +542 -0
  122. package/dist/src/tools/vtex/catalog-admin-categories.js.map +7 -0
  123. package/dist/src/tools/vtex/catalog-admin-product-specifications.js +275 -0
  124. package/dist/src/tools/vtex/catalog-admin-product-specifications.js.map +7 -0
  125. package/dist/src/tools/vtex/catalog-admin-products-skus.js +477 -0
  126. package/dist/src/tools/vtex/catalog-admin-products-skus.js.map +7 -0
  127. package/dist/src/tools/vtex/catalog-navigation-reads.js +430 -0
  128. package/dist/src/tools/vtex/catalog-navigation-reads.js.map +7 -0
  129. package/dist/src/tools/vtex/commercial-conditions.js +220 -0
  130. package/dist/src/tools/vtex/commercial-conditions.js.map +7 -0
  131. package/dist/src/tools/vtex/create-brand.js +1 -64
  132. package/dist/src/tools/vtex/create-brand.js.map +2 -2
  133. package/dist/src/tools/vtex/create-category.js +1 -76
  134. package/dist/src/tools/vtex/create-category.js.map +2 -2
  135. package/dist/src/tools/vtex/create-product-with-sku.js +3 -114
  136. package/dist/src/tools/vtex/create-product-with-sku.js.map +2 -2
  137. package/dist/src/tools/vtex/create-sku.js +3 -1
  138. package/dist/src/tools/vtex/create-sku.js.map +2 -2
  139. package/dist/src/tools/vtex/create-specification-value.js +3 -47
  140. package/dist/src/tools/vtex/create-specification-value.js.map +2 -2
  141. package/dist/src/tools/vtex/create-specification.js +1 -80
  142. package/dist/src/tools/vtex/create-specification.js.map +2 -2
  143. package/dist/src/tools/vtex/deactivate-sku.js +1 -48
  144. package/dist/src/tools/vtex/deactivate-sku.js.map +2 -2
  145. package/dist/src/tools/vtex/delete-all-product-specifications.js +9 -0
  146. package/dist/src/tools/vtex/delete-all-product-specifications.js.map +7 -0
  147. package/dist/src/tools/vtex/delete-all-sku-specifications.js +9 -0
  148. package/dist/src/tools/vtex/delete-all-sku-specifications.js.map +7 -0
  149. package/dist/src/tools/vtex/delete-brand.js +9 -0
  150. package/dist/src/tools/vtex/delete-brand.js.map +7 -0
  151. package/dist/src/tools/vtex/delete-catalog-image.js +9 -0
  152. package/dist/src/tools/vtex/delete-catalog-image.js.map +7 -0
  153. package/dist/src/tools/vtex/delete-product-specification.js +9 -0
  154. package/dist/src/tools/vtex/delete-product-specification.js.map +7 -0
  155. package/dist/src/tools/vtex/delete-sku-price.js +55 -0
  156. package/dist/src/tools/vtex/delete-sku-price.js.map +7 -0
  157. package/dist/src/tools/vtex/delete-sku-specification.js +9 -0
  158. package/dist/src/tools/vtex/delete-sku-specification.js.map +7 -0
  159. package/dist/src/tools/vtex/get-brand.js +6 -0
  160. package/dist/src/tools/vtex/get-brand.js.map +7 -0
  161. package/dist/src/tools/vtex/get-category-tree.js +6 -0
  162. package/dist/src/tools/vtex/get-category-tree.js.map +7 -0
  163. package/dist/src/tools/vtex/get-category.js +6 -0
  164. package/dist/src/tools/vtex/get-category.js.map +7 -0
  165. package/dist/src/tools/vtex/get-product-specifications.js +9 -0
  166. package/dist/src/tools/vtex/get-product-specifications.js.map +7 -0
  167. package/dist/src/tools/vtex/get-product.js +6 -0
  168. package/dist/src/tools/vtex/get-product.js.map +7 -0
  169. package/dist/src/tools/vtex/get-sku.js +6 -0
  170. package/dist/src/tools/vtex/get-sku.js.map +7 -0
  171. package/dist/src/tools/vtex/index.js +25 -1
  172. package/dist/src/tools/vtex/index.js.map +2 -2
  173. package/dist/src/tools/vtex/list-brands.js +6 -0
  174. package/dist/src/tools/vtex/list-brands.js.map +7 -0
  175. package/dist/src/tools/vtex/list-categories.js +6 -0
  176. package/dist/src/tools/vtex/list-categories.js.map +7 -0
  177. package/dist/src/tools/vtex/list-products-by-category.js +6 -0
  178. package/dist/src/tools/vtex/list-products-by-category.js.map +7 -0
  179. package/dist/src/tools/vtex/list-products.js +6 -0
  180. package/dist/src/tools/vtex/list-products.js.map +7 -0
  181. package/dist/src/tools/vtex/list-skus-by-product.js +6 -0
  182. package/dist/src/tools/vtex/list-skus-by-product.js.map +7 -0
  183. package/dist/src/tools/vtex/list-specification-groups.js +9 -0
  184. package/dist/src/tools/vtex/list-specification-groups.js.map +7 -0
  185. package/dist/src/tools/vtex/move-category.js +6 -0
  186. package/dist/src/tools/vtex/move-category.js.map +7 -0
  187. package/dist/src/tools/vtex/payment-rules.js +229 -0
  188. package/dist/src/tools/vtex/payment-rules.js.map +7 -0
  189. package/dist/src/tools/vtex/profile-resolution.js +4 -51
  190. package/dist/src/tools/vtex/profile-resolution.js.map +2 -2
  191. package/dist/src/tools/vtex/update-brand.js +6 -0
  192. package/dist/src/tools/vtex/update-brand.js.map +7 -0
  193. package/dist/src/tools/vtex/update-category.js +6 -0
  194. package/dist/src/tools/vtex/update-category.js.map +7 -0
  195. package/dist/src/tools/vtex/update-product-basic-fields.js +3 -65
  196. package/dist/src/tools/vtex/update-product-basic-fields.js.map +2 -2
  197. package/dist/src/tools/vtex/update-sku-basic-fields.js +1 -87
  198. package/dist/src/tools/vtex/update-sku-basic-fields.js.map +2 -2
  199. package/dist/src/tools/vtex/update-sku-price.js +21 -1
  200. package/dist/src/tools/vtex/update-sku-price.js.map +2 -2
  201. package/dist/src/tools/vtex/write-helpers.js +104 -14
  202. package/dist/src/tools/vtex/write-helpers.js.map +2 -2
  203. package/dist/src/utils/provider-profile-selection.js +117 -0
  204. package/dist/src/utils/provider-profile-selection.js.map +7 -0
  205. package/dist/tests/meli/mercadolibre-tool-handlers-medium-batch4.test.js +678 -0
  206. package/dist/tests/meli/mercadolibre-tool-handlers-medium-batch4.test.js.map +7 -0
  207. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch5.test.js +564 -0
  208. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch5.test.js.map +7 -0
  209. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch6.test.js +387 -0
  210. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch6.test.js.map +7 -0
  211. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch7.test.js +368 -0
  212. package/dist/tests/meli/mercadolibre-tool-handlers-monster-batch7.test.js.map +7 -0
  213. package/dist/tests/meli/mercadolibre-tool-handlers-small.test.js +626 -0
  214. package/dist/tests/meli/mercadolibre-tool-handlers-small.test.js.map +7 -0
  215. package/dist/tests/meli/mercadolibre-tool-handlers-write-batch8.test.js +480 -0
  216. package/dist/tests/meli/mercadolibre-tool-handlers-write-batch8.test.js.map +7 -0
  217. package/dist/tests/setup.js +2 -0
  218. package/dist/tests/setup.js.map +7 -0
  219. package/dist/tests/smoke/test-harness.test.js +7 -0
  220. package/dist/tests/smoke/test-harness.test.js.map +7 -0
  221. package/dist/tests/vtex/read-only-utils.test.js +161 -0
  222. package/dist/tests/vtex/read-only-utils.test.js.map +7 -0
  223. package/dist/tests/vtex/vtex-catalog-admin-docs.test.js +24 -0
  224. package/dist/tests/vtex/vtex-catalog-admin-docs.test.js.map +7 -0
  225. package/dist/tests/vtex/vtex-catalog-admin-surface.test.js +30 -0
  226. package/dist/tests/vtex/vtex-catalog-admin-surface.test.js.map +7 -0
  227. package/dist/tests/vtex/vtex-catalog-write-tools.test.js +712 -0
  228. package/dist/tests/vtex/vtex-catalog-write-tools.test.js.map +7 -0
  229. package/dist/tests/vtex/vtex-catalog.service.test.js +51 -0
  230. package/dist/tests/vtex/vtex-catalog.service.test.js.map +7 -0
  231. package/dist/tests/vtex/vtex-commercial-conditions-docs.test.js +26 -0
  232. package/dist/tests/vtex/vtex-commercial-conditions-docs.test.js.map +7 -0
  233. package/dist/tests/vtex/vtex-commercial-conditions-surface.test.js +42 -0
  234. package/dist/tests/vtex/vtex-commercial-conditions-surface.test.js.map +7 -0
  235. package/dist/tests/vtex/vtex-commercial-conditions-workflow.test.js +190 -0
  236. package/dist/tests/vtex/vtex-commercial-conditions-workflow.test.js.map +7 -0
  237. package/dist/tests/vtex/vtex-inventory-tools.test.js +201 -0
  238. package/dist/tests/vtex/vtex-inventory-tools.test.js.map +7 -0
  239. package/dist/tests/vtex/vtex-logistics.service.test.js +134 -0
  240. package/dist/tests/vtex/vtex-logistics.service.test.js.map +7 -0
  241. package/dist/tests/vtex/vtex-order-details.tool.test.js +141 -0
  242. package/dist/tests/vtex/vtex-order-details.tool.test.js.map +7 -0
  243. package/dist/tests/vtex/vtex-order-write-tools.test.js +483 -0
  244. package/dist/tests/vtex/vtex-order-write-tools.test.js.map +7 -0
  245. package/dist/tests/vtex/vtex-orders-summary.tool.test.js +185 -0
  246. package/dist/tests/vtex/vtex-orders-summary.tool.test.js.map +7 -0
  247. package/dist/tests/vtex/vtex-orders.service.test.js +120 -0
  248. package/dist/tests/vtex/vtex-orders.service.test.js.map +7 -0
  249. package/dist/tests/vtex/vtex-pricing-write-tools.test.js +202 -0
  250. package/dist/tests/vtex/vtex-pricing-write-tools.test.js.map +7 -0
  251. package/dist/tests/vtex/vtex-pricing-write.service.test.js +106 -0
  252. package/dist/tests/vtex/vtex-pricing-write.service.test.js.map +7 -0
  253. package/dist/tests/vtex/vtex-pricing.service.test.js +88 -0
  254. package/dist/tests/vtex/vtex-pricing.service.test.js.map +7 -0
  255. package/dist/tests/vtex/vtex-small-tools.test.js +190 -0
  256. package/dist/tests/vtex/vtex-small-tools.test.js.map +7 -0
  257. package/dist/tests/vtex/vtex-write-simple-tools.test.js +647 -0
  258. package/dist/tests/vtex/vtex-write-simple-tools.test.js.map +7 -0
  259. package/dist/vitest.config.js +15 -0
  260. package/dist/vitest.config.js.map +7 -0
  261. package/package.json +6 -2
package/dist/index.js CHANGED
@@ -45,7 +45,21 @@ import {
45
45
  associateSpecificationSchema,
46
46
  attachCatalogImageHandler,
47
47
  attachCatalogImageSchema,
48
+ addSkuEanHandler,
49
+ addSkuEanSchema,
48
50
  cancelOrderHandler,
51
+ commercialConditionsHandler,
52
+ commercialConditionsSchema,
53
+ getSkuImagesHandler,
54
+ getSkuImagesSchema,
55
+ paymentRulesHandler,
56
+ paymentRulesSchema,
57
+ replaceSkuEansHandler,
58
+ replaceSkuEansSchema,
59
+ updateCatalogImageHandler,
60
+ updateCatalogImageSchema,
61
+ updateProductBrandHandler,
62
+ updateProductBrandSchema,
49
63
  cancelOrderSchema,
50
64
  channelMixHandler,
51
65
  channelMixSchema,
@@ -55,20 +69,48 @@ import {
55
69
  createBrandSchema,
56
70
  createCategoryHandler,
57
71
  createCategorySchema,
72
+ deleteAllProductSpecificationsHandler,
73
+ deleteAllProductSpecificationsSchema,
74
+ deleteAllSkuSpecificationsHandler,
75
+ deleteAllSkuSpecificationsSchema,
76
+ deleteBrandHandler,
77
+ deleteBrandSchema,
78
+ deleteCatalogImageHandler,
79
+ deleteCatalogImageSchema,
80
+ deleteProductSpecificationHandler,
81
+ deleteProductSpecificationSchema,
82
+ deleteSkuSpecificationHandler,
83
+ deleteSkuSpecificationSchema,
84
+ getBrandHandler,
85
+ getBrandSchema,
86
+ listSpecificationGroupsHandler,
87
+ listSpecificationGroupsSchema,
88
+ moveCategoryHandler,
89
+ moveCategorySchema,
58
90
  createProductHandler,
59
91
  createProductSchema,
60
- createProductWithSkuHandler,
61
- createProductWithSkuSchema,
62
92
  createSkuHandler,
63
93
  createSkuSchema,
64
94
  createSpecificationHandler,
65
95
  createSpecificationSchema,
66
96
  createSpecificationValueHandler,
67
97
  createSpecificationValueSchema,
98
+ getCategoryHandler,
99
+ getCategorySchema,
100
+ getCategoryTreeHandler,
101
+ getCategoryTreeSchema,
102
+ getProductHandler,
103
+ getProductSchema,
104
+ getProductSpecificationsHandler,
105
+ getProductSpecificationsSchema,
106
+ getSkuHandler,
107
+ getSkuSchema,
68
108
  deactivateSkuHandler,
69
109
  deactivateSkuSchema,
70
110
  deleteFixedPriceHandler,
71
111
  deleteFixedPriceSchema,
112
+ deleteSkuPriceHandler,
113
+ deleteSkuPriceSchema,
72
114
  ecommerceTrackingHealthHandler,
73
115
  ecommerceTrackingHealthSchema,
74
116
  engagementOverviewHandler,
@@ -79,6 +121,16 @@ import {
79
121
  inventoryCheckSchema,
80
122
  listAccessiblePropertiesHandler,
81
123
  listAccessiblePropertiesSchema,
124
+ listBrandsHandler,
125
+ listBrandsSchema,
126
+ listCategoriesHandler,
127
+ listCategoriesSchema,
128
+ listProductsHandler,
129
+ listProductsByCategoryHandler,
130
+ listProductsByCategorySchema,
131
+ listProductsSchema,
132
+ listSkusByProductHandler,
133
+ listSkusByProductSchema,
82
134
  metaAccountOverviewHandler,
83
135
  metaAccountOverviewSchema,
84
136
  metaAdAccountInfoHandler,
@@ -149,6 +201,10 @@ import {
149
201
  updateInventorySchema,
150
202
  updateLeadTimeHandler,
151
203
  updateLeadTimeSchema,
204
+ updateCategoryHandler,
205
+ updateCategorySchema,
206
+ updateBrandHandler,
207
+ updateBrandSchema,
152
208
  updateProductBasicFieldsHandler,
153
209
  updateProductBasicFieldsSchema,
154
210
  updateSkuBasicFieldsHandler,
@@ -433,6 +489,19 @@ server.tool(
433
489
  },
434
490
  updateSkuPriceHandler
435
491
  );
492
+ server.tool(
493
+ {
494
+ name: "vtex_delete_sku_price",
495
+ description: "Delete all base pricing and fixed prices for one SKU from VTEX Pricing. Before using this tool, the assistant must explain that this removes the SKU price record, mention that all fixed prices under that SKU are removed as well, and obtain explicit confirmation from the user. Only then should the tool be called with confirmed=true.",
496
+ schema: deleteSkuPriceSchema,
497
+ annotations: {
498
+ readOnlyHint: false,
499
+ destructiveHint: true,
500
+ openWorldHint: true
501
+ }
502
+ },
503
+ deleteSkuPriceHandler
504
+ );
436
505
  server.tool(
437
506
  {
438
507
  name: "vtex_upsert_fixed_price",
@@ -539,16 +608,42 @@ server.tool(
539
608
  );
540
609
  server.tool(
541
610
  {
542
- name: "vtex_create_product_with_sku",
543
- description: "Create one VTEX product and one SKU in a single operation. Use this when the product does not exist yet and you want the initial SKU created immediately after the product.",
544
- schema: createProductWithSkuSchema,
611
+ name: "vtex_commercial_conditions",
612
+ description: "Manage VTEX commercial conditions through one action-based tool: list, get, create, update, or delete condition records used by checkout and installment strategies. Delete operations require confirmed=true and can affect linked payment rules or installment visibility.",
613
+ schema: commercialConditionsSchema,
614
+ annotations: {
615
+ readOnlyHint: false,
616
+ destructiveHint: true,
617
+ openWorldHint: true
618
+ }
619
+ },
620
+ commercialConditionsHandler
621
+ );
622
+ server.tool(
623
+ {
624
+ name: "vtex_payment_rules",
625
+ description: "Manage VTEX payment rules through one action-based tool: list, get, create, update, or delete rules that map installments, payment systems, and optional commercial-condition restrictions. Delete operations require confirmed=true and can immediately remove installment options from checkout.",
626
+ schema: paymentRulesSchema,
545
627
  annotations: {
546
628
  readOnlyHint: false,
547
629
  destructiveHint: true,
548
630
  openWorldHint: true
549
631
  }
550
632
  },
551
- createProductWithSkuHandler
633
+ paymentRulesHandler
634
+ );
635
+ server.tool(
636
+ {
637
+ name: "vtex_get_brand",
638
+ description: "Get one VTEX catalog brand by ID.",
639
+ schema: getBrandSchema,
640
+ annotations: {
641
+ readOnlyHint: true,
642
+ destructiveHint: false,
643
+ openWorldHint: true
644
+ }
645
+ },
646
+ getBrandHandler
552
647
  );
553
648
  server.tool(
554
649
  {
@@ -563,6 +658,45 @@ server.tool(
563
658
  },
564
659
  createBrandHandler
565
660
  );
661
+ server.tool(
662
+ {
663
+ name: "vtex_update_brand",
664
+ description: "Update selected fields on one VTEX catalog brand. Only the provided fields are changed; the tool keeps the current VTEX values for the rest.",
665
+ schema: updateBrandSchema,
666
+ annotations: {
667
+ readOnlyHint: false,
668
+ destructiveHint: true,
669
+ openWorldHint: true
670
+ }
671
+ },
672
+ updateBrandHandler
673
+ );
674
+ server.tool(
675
+ {
676
+ name: "vtex_list_specification_groups",
677
+ description: "List VTEX specification groups available for one category, optionally filtered by group name. Use this to discover a real field group before creating mock-only specifications.",
678
+ schema: listSpecificationGroupsSchema,
679
+ annotations: {
680
+ readOnlyHint: true,
681
+ destructiveHint: false,
682
+ openWorldHint: true
683
+ }
684
+ },
685
+ listSpecificationGroupsHandler
686
+ );
687
+ server.tool(
688
+ {
689
+ name: "vtex_get_product_specifications",
690
+ description: "Get all specifications currently associated with one VTEX catalog product.",
691
+ schema: getProductSpecificationsSchema,
692
+ annotations: {
693
+ readOnlyHint: true,
694
+ destructiveHint: false,
695
+ openWorldHint: true
696
+ }
697
+ },
698
+ getProductSpecificationsHandler
699
+ );
566
700
  server.tool(
567
701
  {
568
702
  name: "vtex_create_category",
@@ -576,6 +710,32 @@ server.tool(
576
710
  },
577
711
  createCategoryHandler
578
712
  );
713
+ server.tool(
714
+ {
715
+ name: "vtex_update_category",
716
+ description: "Update selected visible fields on one VTEX category, including activation through isActive. Use this tool for visible fields only, not hierarchy changes.",
717
+ schema: updateCategorySchema,
718
+ annotations: {
719
+ readOnlyHint: false,
720
+ destructiveHint: true,
721
+ openWorldHint: true
722
+ }
723
+ },
724
+ updateCategoryHandler
725
+ );
726
+ server.tool(
727
+ {
728
+ name: "vtex_move_category",
729
+ description: "Move one VTEX category under a different parent by changing only its hierarchy. Experimental/high-risk: VTEX officially warns that direct category-tree moves can be risky and may leave catalog inconsistencies. Supports preview/apply confirmation guardrails.",
730
+ schema: moveCategorySchema,
731
+ annotations: {
732
+ readOnlyHint: false,
733
+ destructiveHint: true,
734
+ openWorldHint: true
735
+ }
736
+ },
737
+ moveCategoryHandler
738
+ );
579
739
  server.tool(
580
740
  {
581
741
  name: "vtex_create_specification",
@@ -615,6 +775,84 @@ server.tool(
615
775
  },
616
776
  associateSpecificationHandler
617
777
  );
778
+ server.tool(
779
+ {
780
+ name: "vtex_delete_product_specification",
781
+ description: "Delete one specification association from one VTEX catalog product using the productId and the association/spec record ID (`Id` from `vtex_get_product_specifications`), not the field ID.",
782
+ schema: deleteProductSpecificationSchema,
783
+ annotations: {
784
+ readOnlyHint: false,
785
+ destructiveHint: true,
786
+ openWorldHint: true
787
+ }
788
+ },
789
+ deleteProductSpecificationHandler
790
+ );
791
+ server.tool(
792
+ {
793
+ name: "vtex_delete_all_product_specifications",
794
+ description: "Delete all specification associations from one VTEX catalog product. This is high-risk and requires explicit confirmation before execution.",
795
+ schema: deleteAllProductSpecificationsSchema,
796
+ annotations: {
797
+ readOnlyHint: false,
798
+ destructiveHint: true,
799
+ openWorldHint: true
800
+ }
801
+ },
802
+ deleteAllProductSpecificationsHandler
803
+ );
804
+ server.tool(
805
+ {
806
+ name: "vtex_delete_brand",
807
+ description: "Delete one VTEX catalog brand by ID. The caller must already know the brandId because this tool performs no pre-delete lookup or readback.",
808
+ schema: deleteBrandSchema,
809
+ annotations: {
810
+ readOnlyHint: false,
811
+ destructiveHint: true,
812
+ openWorldHint: true
813
+ }
814
+ },
815
+ deleteBrandHandler
816
+ );
817
+ server.tool(
818
+ {
819
+ name: "vtex_delete_catalog_image",
820
+ description: "Delete one catalog image from a VTEX SKU by imageId. The caller must already know the imageId, typically from vtex_get_sku_images, because this tool performs no pre-delete lookup or readback.",
821
+ schema: deleteCatalogImageSchema,
822
+ annotations: {
823
+ readOnlyHint: false,
824
+ destructiveHint: true,
825
+ openWorldHint: true
826
+ }
827
+ },
828
+ deleteCatalogImageHandler
829
+ );
830
+ server.tool(
831
+ {
832
+ name: "vtex_delete_sku_specification",
833
+ description: "Delete one specification association from one VTEX catalog SKU using the skuId and specificationId. This tool performs no pre-delete lookup or readback.",
834
+ schema: deleteSkuSpecificationSchema,
835
+ annotations: {
836
+ readOnlyHint: false,
837
+ destructiveHint: true,
838
+ openWorldHint: true
839
+ }
840
+ },
841
+ deleteSkuSpecificationHandler
842
+ );
843
+ server.tool(
844
+ {
845
+ name: "vtex_delete_all_sku_specifications",
846
+ description: "Delete all specification associations from one VTEX catalog SKU. This is high-risk, requires explicit confirmation, and performs no pre-delete lookup or readback.",
847
+ schema: deleteAllSkuSpecificationsSchema,
848
+ annotations: {
849
+ readOnlyHint: false,
850
+ destructiveHint: true,
851
+ openWorldHint: true
852
+ }
853
+ },
854
+ deleteAllSkuSpecificationsHandler
855
+ );
618
856
  server.tool(
619
857
  {
620
858
  name: "vtex_attach_catalog_image",
@@ -628,6 +866,71 @@ server.tool(
628
866
  },
629
867
  attachCatalogImageHandler
630
868
  );
869
+ server.tool(
870
+ {
871
+ name: "vtex_update_product_brand",
872
+ description: "Update the brand assignment of one VTEX Catalog product. Changes the brand identifier the product is associated with.",
873
+ schema: updateProductBrandSchema,
874
+ annotations: {
875
+ readOnlyHint: false,
876
+ destructiveHint: true,
877
+ openWorldHint: true
878
+ }
879
+ },
880
+ updateProductBrandHandler
881
+ );
882
+ server.tool(
883
+ {
884
+ name: "vtex_add_sku_ean",
885
+ description: "Append one EAN value to a VTEX SKU. This adds a new EAN to the existing set without replacing other EANs already assigned to the SKU.",
886
+ schema: addSkuEanSchema,
887
+ annotations: {
888
+ readOnlyHint: false,
889
+ destructiveHint: true,
890
+ openWorldHint: true
891
+ }
892
+ },
893
+ addSkuEanHandler
894
+ );
895
+ server.tool(
896
+ {
897
+ name: "vtex_replace_sku_eans",
898
+ description: "Replace the entire set of EAN values on a VTEX SKU with a new list. All previously assigned EANs for the SKU are removed and the provided values become the only ones.",
899
+ schema: replaceSkuEansSchema,
900
+ annotations: {
901
+ readOnlyHint: false,
902
+ destructiveHint: true,
903
+ openWorldHint: true
904
+ }
905
+ },
906
+ replaceSkuEansHandler
907
+ );
908
+ server.tool(
909
+ {
910
+ name: "vtex_get_sku_images",
911
+ description: "List all images currently attached to a VTEX SKU. Returns image identifiers, URLs, alt text, labels, and order position for each image.",
912
+ schema: getSkuImagesSchema,
913
+ annotations: {
914
+ readOnlyHint: true,
915
+ destructiveHint: false,
916
+ openWorldHint: true
917
+ }
918
+ },
919
+ getSkuImagesHandler
920
+ );
921
+ server.tool(
922
+ {
923
+ name: "vtex_update_catalog_image",
924
+ description: "Update an existing catalog image on a VTEX SKU identified by the image identifier. Use to change the URL, alt text, label, or display position of an image already attached to the SKU.",
925
+ schema: updateCatalogImageSchema,
926
+ annotations: {
927
+ readOnlyHint: false,
928
+ destructiveHint: true,
929
+ openWorldHint: true
930
+ }
931
+ },
932
+ updateCatalogImageHandler
933
+ );
631
934
  server.tool(
632
935
  {
633
936
  name: "vtex_cancel_order",
@@ -719,6 +1022,123 @@ server.tool(
719
1022
  },
720
1023
  skuOffersHandler
721
1024
  );
1025
+ server.tool(
1026
+ {
1027
+ name: "vtex_get_category_tree",
1028
+ description: "Get the VTEX catalog category tree for a profile with an optional depth limit.",
1029
+ schema: getCategoryTreeSchema,
1030
+ annotations: {
1031
+ readOnlyHint: true,
1032
+ destructiveHint: false,
1033
+ openWorldHint: true
1034
+ }
1035
+ },
1036
+ getCategoryTreeHandler
1037
+ );
1038
+ server.tool(
1039
+ {
1040
+ name: "vtex_list_categories",
1041
+ description: "List VTEX catalog categories using compact rows and pagination metadata.",
1042
+ schema: listCategoriesSchema,
1043
+ annotations: {
1044
+ readOnlyHint: true,
1045
+ destructiveHint: false,
1046
+ openWorldHint: true
1047
+ }
1048
+ },
1049
+ listCategoriesHandler
1050
+ );
1051
+ server.tool(
1052
+ {
1053
+ name: "vtex_get_category",
1054
+ description: "Get one VTEX catalog category by ID.",
1055
+ schema: getCategorySchema,
1056
+ annotations: {
1057
+ readOnlyHint: true,
1058
+ destructiveHint: false,
1059
+ openWorldHint: true
1060
+ }
1061
+ },
1062
+ getCategoryHandler
1063
+ );
1064
+ server.tool(
1065
+ {
1066
+ name: "vtex_list_brands",
1067
+ description: "List VTEX catalog brands using compact rows and pagination metadata.",
1068
+ schema: listBrandsSchema,
1069
+ annotations: {
1070
+ readOnlyHint: true,
1071
+ destructiveHint: false,
1072
+ openWorldHint: true
1073
+ }
1074
+ },
1075
+ listBrandsHandler
1076
+ );
1077
+ server.tool(
1078
+ {
1079
+ name: "vtex_get_product",
1080
+ description: "Get one VTEX catalog product by ID.",
1081
+ schema: getProductSchema,
1082
+ annotations: {
1083
+ readOnlyHint: true,
1084
+ destructiveHint: false,
1085
+ openWorldHint: true
1086
+ }
1087
+ },
1088
+ getProductHandler
1089
+ );
1090
+ server.tool(
1091
+ {
1092
+ name: "vtex_get_sku",
1093
+ description: "Get one VTEX catalog SKU by ID.",
1094
+ schema: getSkuSchema,
1095
+ annotations: {
1096
+ readOnlyHint: true,
1097
+ destructiveHint: false,
1098
+ openWorldHint: true
1099
+ }
1100
+ },
1101
+ getSkuHandler
1102
+ );
1103
+ server.tool(
1104
+ {
1105
+ name: "vtex_list_products",
1106
+ description: "List VTEX catalog product IDs with compact rows, pagination metadata, and optional keyword search.",
1107
+ schema: listProductsSchema,
1108
+ annotations: {
1109
+ readOnlyHint: true,
1110
+ destructiveHint: false,
1111
+ openWorldHint: true
1112
+ }
1113
+ },
1114
+ listProductsHandler
1115
+ );
1116
+ server.tool(
1117
+ {
1118
+ name: "vtex_list_products_by_category",
1119
+ description: "List VTEX catalog products for one category using compact rows and pagination metadata (VTEX caps this endpoint at 50 items per page).",
1120
+ schema: listProductsByCategorySchema,
1121
+ annotations: {
1122
+ readOnlyHint: true,
1123
+ destructiveHint: false,
1124
+ openWorldHint: true
1125
+ }
1126
+ },
1127
+ listProductsByCategoryHandler
1128
+ );
1129
+ server.tool(
1130
+ {
1131
+ name: "vtex_list_skus_by_product",
1132
+ description: "List VTEX SKUs belonging to one product using compact rows.",
1133
+ schema: listSkusByProductSchema,
1134
+ annotations: {
1135
+ readOnlyHint: true,
1136
+ destructiveHint: false,
1137
+ openWorldHint: true
1138
+ }
1139
+ },
1140
+ listSkusByProductHandler
1141
+ );
722
1142
  server.tool(
723
1143
  {
724
1144
  name: "config_check_database_connection",