JustFlows

Shop · AI

AI agent tools

The shop_* tools AI agents and the admin assistant can use, and the capability each one needs.

Shop offers 71 staff functions as shop_* tools to MCP clients and the admin assistant. Each tool runs the existing admin route with the agent’s session, so every check in that route still applies; the capability only decides who sees the tool. See Bring your own AI to connect an agent.

catalog

ToolRouteWhat it doesCapability
shop_products_list · readGET catalogList products with their price, SKU, stock and type. The product pages themselves are content entries of type product (use the content tools for title and text).products:read
shop_product_get · readGET catalog/:contentIdOne product's commerce data: price, SKU, stock, variations, attributes, images, and subscription plan.products:read
shop_product_savePUT catalog/:contentIdSave a product's commerce data, including its subscription plan and the platform limits the plan gives. The product entry must exist first (content type product). Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.products:update

products

ToolRouteWhat it doesCapability
shop_products_bulk_editPOST products/bulkChange price, sale price, stock, visibility or tax class of many products at once.products:update

attributes

ToolRouteWhat it doesCapability
shop_attributes_list · readGET attributesGlobal product attributes (size, colour) and their values.products:read
shop_attributes_createPOST attributesCreate a global product attribute.products:update
shop_attributes_updatePUT attributes/:idRename an attribute or change its values. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.products:update
shop_attributes_delete · destructiveDELETE attributes/:idDelete a global product attribute.products:delete

categories

ToolRouteWhat it doesCapability
shop_categories_list · readGET categoriesProduct categories.products:read
shop_categories_createPOST categoriesCreate a product category.products:update
shop_categories_updatePUT categories/:idRename, re-slug or move a product category.products:update
shop_categories_delete · destructiveDELETE categories/:idDelete a product category.products:delete

tags

ToolRouteWhat it doesCapability
shop_tags_list · readGET tagsProduct tags.products:read
shop_tags_createPOST tagsCreate a product tag.products:update
shop_tags_updatePUT tags/:idRename or re-slug a product tag.products:update
shop_tags_delete · destructiveDELETE tags/:idDelete a product tag.products:delete

inventory

ToolRouteWhat it doesCapability
shop_inventory_list · readGET inventoryStock levels per product and variation, and the inventory settings.inventory:read
shop_inventory_settings_updatePUT inventory/settingsInventory settings: tracking, backorders, low-stock threshold. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shop:settings

orders

ToolRouteWhat it doesCapability
shop_orders_list · readGET ordersList orders, oldest first, with status and total (integer minor units).orders:read
shop_order_get · readGET orders/:idOne order: lines, addresses, payments, shipments, notes, and the statuses it may move to.orders:read
shop_order_set_statusPOST orders/:id/statusMove an order to another status, optionally with a note and a customer email.orders:update
shop_order_fulfillPOST orders/:id/fulfillmentsRecord a shipment for some or all lines, with an optional tracking number.fulfillments:manage
shop_order_create_labelPOST orders/:id/shipments/labelBuy a carrier label for an order and record the shipment. Costs money with the carrier.fulfillments:manage
shop_shipment_trackPOST orders/:id/shipments/:shipmentId/trackCheck a shipment's tracking with the carrier now.orders:update
shop_order_documents · readGET orders/:id/documentsInvoices and other documents of an order.orders:read
shop_order_create_invoicePOST orders/:id/invoiceCreate the invoice for an order.orders:update
shop_order_send_documentPOST orders/:id/documents/:documentId/sendEmail an order document to the customer.orders:update

payments

ToolRouteWhat it doesCapability
shop_payments_list · readGET paymentsPayment methods and their state, and recent payment attempts.payments:read
shop_payment_capturePOST payments/attempts/:id/captureCapture an authorised payment, optionally a lower amount.payments:capture
shop_payment_void · destructivePOST payments/attempts/:id/voidCancel an authorised payment that was not captured.payments:capture
shop_payment_refund · destructivePOST payments/attempts/:id/refundRefund a payment, in full or in part. Sends money back to the customer.payments:refund

refunds

ToolRouteWhat it doesCapability
shop_refunds_list · readGET refundsRefunds made, with amounts and reasons.payments:read

customers

ToolRouteWhat it doesCapability
shop_customers_list · readGET customersList customers.customers:read
shop_customers_createPOST customersCreate a customer.customers:manage
shop_customers_updatePUT customers/:idUpdate a customer's details and addresses. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.customers:manage

discounts

ToolRouteWhat it doesCapability
shop_discounts_list · readGET discountsCoupons and automatic discounts, and the discount settings.discounts:read
shop_discounts_createPOST discountsCreate a coupon or automatic discount.discounts:manage
shop_discounts_updatePUT discounts/:idChange a discount. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.discounts:manage
shop_discounts_delete · destructiveDELETE discounts/:idDelete a discount.discounts:manage
shop_discounts_settings_updatePUT discounts/settingsDiscount settings, such as whether coupons combine. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.discounts:manage

tax

ToolRouteWhat it doesCapability
shop_tax_get · readGET taxTax settings, classes and rates.tax:read
shop_tax_settings_updatePUT tax/settingsTax settings: prices with or without tax, which address is taxed, rounding. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.tax:manage
shop_tax_classes_createPOST tax/classesCreate a tax class, such as reduced.tax:manage
shop_tax_classes_updatePUT tax/classes/:idRename a tax class.tax:manage
shop_tax_classes_delete · destructiveDELETE tax/classes/:idDelete a tax class.tax:manage
shop_tax_rates_createPOST tax/ratesAdd a tax rate for a country and class.tax:manage
shop_tax_rates_delete · destructiveDELETE tax/rates/:idDelete a tax rate.tax:manage

shipping

ToolRouteWhat it doesCapability
shop_shipping_get · readGET shippingShipping zones, methods, origin address and settings. Carrier credentials are never included.shipping:read
shop_shipping_origin_updatePUT shipping/originThe address parcels ship from. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shipping:manage
shop_shipping_tax_updatePUT shipping/taxHow shipping is taxed.shipping:manage
shop_shipping_tracking_updatePUT shipping/trackingTracking settings, such as emailing the customer on delivery.shipping:manage
shop_shipping_zones_createPOST shipping/zonesCreate a shipping zone for a set of countries.shipping:manage
shop_shipping_zones_updatePUT shipping/zones/:idChange a shipping zone. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shipping:manage
shop_shipping_zones_delete · destructiveDELETE shipping/zones/:idDelete a shipping zone and its methods.shipping:manage
shop_shipping_methods_createPOST shipping/zones/:id/methodsAdd a shipping method (flat rate, free, pickup, carrier) to a zone.shipping:manage
shop_shipping_methods_updatePUT shipping/methods/:idChange a shipping method. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shipping:manage
shop_shipping_methods_delete · destructiveDELETE shipping/methods/:idDelete a shipping method.shipping:manage

subscriptions

ToolRouteWhat it doesCapability
shop_subscriptions_list · readGET subscriptionsList subscriptions with status, customer and next payment.subscriptions:read
shop_subscription_get · readGET subscriptions/:idOne subscription: plan, payments, events, workspace and the limits it applies.subscriptions:read
shop_subscription_settings_get · readGET subscriptions/settingsSubscription settings, including the default plan and membership roles.subscriptions:read
shop_subscription_plan_options · readGET subscriptions/plan-optionsWhat a plan can set: the platform limit meters, membership roles and workspace options.subscriptions:read

reports

ToolRouteWhat it doesCapability
shop_reports_get · readGET reportsSales report for a period: revenue, orders, products.shop:reports
shop_reports_tax · readGET reports/taxTax collected per rate for a period.shop:reports
shop_reports_inventory · readGET reports/inventoryStock value, low stock and products that did not sell.shop:reports

emails

ToolRouteWhat it doesCapability
shop_emails_list · readGET emailsShop emails: templates and recent sends.shop:settings
shop_emails_updatePUT emails/:keyChange a shop email template or turn it off. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shop:settings
shop_emails_resendPOST emails/:id/resendSend a shop email again.orders:update

storefront

ToolRouteWhat it doesCapability
shop_storefront_settings_get · readGET storefront/settingsStorefront settings: catalog layout, products per page, sorting.products:read
shop_storefront_settings_updatePUT storefront/settingsStorefront settings. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shop:settings

invoices

ToolRouteWhat it doesCapability
shop_invoice_settings_get · readGET invoices/settingsInvoice settings: numbering, company details, footer.orders:read
shop_invoice_settings_updatePUT invoices/settingsInvoice settings. Send the whole object: read it first with the matching get or list tool, change what you need, and send it back. Fields left out are reset.shop:settings