Skip to main content

get_shopify_analytics

Use it for: pulling recent order analytics for a brand whose Shopify store is connected. This tool is always listed in the MCP suite, but a call only succeeds for a brandId whose Shopify store is connected. In Foxley it loads automatically once any brand in your organization has a connected store.

Inputs

  • brandId — the Outfox brand whose store you want to query.
  • startDate — start of the range, YYYY-MM-DD.
  • endDate — end of the range, inclusive, YYYY-MM-DD.
The range can span at most 60 inclusive calendar days and can’t end in the future. That matches the order window Shopify exposes through read access.

Output fields

  • currency — the store’s currency.
  • totalSales — revenue across the range.
  • ordersCount — number of billable orders.
  • averageOrderValue — revenue divided by orders.
  • trends — daily rows of { date, sales, orders }, oldest first.

Best workflow

  1. Find the brand ID with list_brands.
  2. Call get_shopify_analytics for the range you care about.
  3. Pull Meta performance with meta_ads_get_insights and compare spend against revenue.