MerchantFlow MCP Tool Reference
Complete list of the 76 MCP tools MerchantFlow exposes -- 74 read-only tools and 2 write tools behind their own scopes -- with parameters, defaults, and required scopes, plus the built-in prompts and resources available to compatible MCP clients.
MerchantFlow MCP Tool Reference
This is the complete tool catalog for MerchantFlow's 76 MCP tools: 74 read-only tools and 2 write tools, each behind its own write scope (see Write scopes). Not every connection lists all 76 -- four depend on per-channel attribution, which is not enabled by default, and some depend on your plan or role (see Tools that depend on your plan or setup). Each entry shows the tool name, what it does, its parameters, and an example prompt that will make Claude, Cursor, Windsurf, or another MCP client call it.
Tools are grouped by the OAuth scope they require. A token that was granted mcp:read:all can call every read-only tool its role allows; a token scoped to individual permissions can only call the tools in the matching sections. mcp:read:all never includes a write scope. The ChatGPT app tools are grouped by purpose instead, and each lists its own scope.
How to read this page
- Required parameters must be supplied or the call fails with
invalid_params. - All dates are ISO 8601 calendar dates (
YYYY-MM-DD) interpreted in your store's timezone. - Every tool returns its payload twice: as
structuredContent(a real JSON object) and as JSON text incontent[0], so clients that read either channel get the same answer. Both carry a_metablock (last sync time, currency, plan window) and a_tenant_contextmarker. Responses are capped at 500 KB and arrays at 100 items - narrow your query if you see_truncated: true. The exceptions aresearch,fetch,get_profile,search_mentions,settings_readandsettings_update, which return the exact shape their client expects, without the_metaenvelope. - Every tool also publishes an
outputSchemaintools/list, so a client can validate and type the response instead of treating it as opaque JSON. The schema describes the truncation shapes above as well, so a truncated response still validates. - Tools marked heavy draw from a smaller per-minute rate-limit budget (see rate limits).
- Customer PII (emails, phones, addresses) is redacted in every response by default.
- Paid-acquisition figures measure online (D2C) orders only. Where a response carries ROAS, blended MER, CPA or CAC, its commerce side excludes B2B and wholesale orders, which carry no acquisition ad spend. Whole-business fields in the same response -- revenue, net revenue, orders, profit -- still include them, so
blended_merandnet_revenuein oneget_date_range_summarypayload are deliberately measured over different order sets. The customer tools (get_ltv_summary,get_cac_payback) group online orders only, matching the dashboard. - Every read-only tool advertises a
titleplusreadOnlyHint: true,destructiveHint: false,idempotentHint: trueandopenWorldHint: falseintools/list, both at the top level and insideannotationsso older clients read them too. The two tools marked write advertisereadOnlyHint: falseinstead;start_invoice_import_draftalso advertisesidempotentHint: false, because every call starts a new draft. No tool can modify your Shopify or WooCommerce store or your ad accounts. - Tools marked app-only are called by a client's own interface, not by the model: they carry
_meta.ui.visibility: ["app"], and a host that supports MCP Apps keeps them out of the model's tool list. They have no example prompt.
Tools that depend on your plan or setup
Trust the live tool list your client shows over this page. A tool that does not apply to your connection is left out of tools/list:
| Depends on | Tools | Listed when |
|---|---|---|
| Per-channel attribution | get_attribution_breakdown, get_unattributed_revenue, run_sales_by_channel_report, get_organic_revenue | Per-channel attribution is enabled for your store. It is off by default |
| Plan -- Plus | run_business_valuation, run_product_viability, get_mca_status | Your plan includes business valuation, the product viability calculator and MCA funding tracking respectively |
| Plan -- Pro or Plus | list_reports, generate_report, get_anomalies | Your plan includes custom reports (the first two) or anomaly alerts |
| Role | Any tool | Your role has the permissions the tool's scope needs. An MCP connection never gets more access than you have in the dashboard |
Calling a tool hidden for attribution or plan returns tool_not_found; one your role does not allow returns insufficient_permissions. For an owner with attribution off, that leaves 72 tools on Plus, 69 on Pro and 66 on Starter.
Financial and P&L tools
Scope: mcp:pnl:read
get_pnl_summary
Get a profit and loss summary over a date range, broken down by revenue, COGS, ad spend, expenses, fees, and net profit. Optionally compare to the previous period or previous year for percentage deltas.
start_date(string, required) -YYYY-MM-DDend_date(string, required) -YYYY-MM-DDcompare_to(enum, optional) -previous_periodorprevious_year
Summarise this week's P&L with comparison to last week.
open_profit_waterfall (app-only)
The interactive profit waterfall for a preset period. It runs get_pnl_summary for that period, so it returns exactly the same figures: net revenue, each cost line and net profit.
range(enum, optional, default30d) -7d,30dor90d(trailing days),thisMonth,lastMonth, orytd, in your store's timezone
The period is clamped to your plan's history window, exactly as a direct get_pnl_summary call would be. The model uses get_pnl_summary itself; this tool is what the profit waterfall widget -- the one get_pnl_summary links to -- calls when you switch period inside it.
get_revenue_breakdown
Get revenue broken down by source, channel, or country over a date range.
start_date(string, required)end_date(string, required)group_by(enum, required) -source,channel,category, orcountry
category is accepted by the schema but is not implemented in this release -- it returns an empty row set with a note pointing you at get_top_products with rank_by='revenue' instead.
Stores without per-channel attribution enabled see only country in the tool schema, and source or channel are rejected if passed anyway.
Show me revenue by country for the last 30 days.
get_expenses_breakdown
Get OPEX and CAPEX expenses broken down by category and vendor, including recurring expenses and CAPEX amortisation.
start_date(string, required)end_date(string, required)category(string, optional) - restrict to one expense categoryinclude_capex(boolean, optional, defaulttrue)
What did I spend on software in the last month?
get_commission_breakdown
Get partner commissions -- creators, affiliates, influencers and other programs matched on Shopify order tags -- per commission rule over a date range. Every rule is listed with its tags, match mode (exact or prefix), percentage rate or fixed amount, the currency it was set up in (rule_currency), tax basis, stacking, position in evaluation order, date window and enabled flag, plus the orders it charged, the net product revenue it applied to and the commission. Rules are sorted by commission, highest first, and a rule that charged nothing in the range is listed at zero.
start_date(string, required) -YYYY-MM-DDend_date(string, required) -YYYY-MM-DD
total_commission equals the Commissions line on your P&L for the same range. Like that line, it counts orders in your reporting currency only, and it is already deducted from contribution margin, net profit and each order's profit -- do not subtract it again. commissioned_order_count counts each order once, even when it paid two stacking rules. A fixed amount is in the rule's rule_currency and only charges orders in that currency, which can differ from the reporting currency if your store currency changed after the rule was created. The figures follow your rules, not a partner platform's payout records. Rules are created and edited in Dashboard → Settings → Commissions; no MCP tool changes them.
What did our Trybe creators cost us last month, rule by rule?
get_bank_balance
Current bank balance, burn rate, and projected runway in days. The balance is your
cash across every active account, converted into your workspace currency, with a
per-account breakdown alongside it. last_recorded_at is the oldest of the
per-account dates, so it reflects how stale your weakest account is.
If an account cannot be converted, current_balance and
projected_runway_days come back null and unconverted_accounts is above
zero, rather than a partial total being reported as complete.
runway_periods(number array, optional, default[30, 60, 90]) - burn windows in days
What's my bank runway at current burn?
get_mca_status
Active revenue-based funding (MCA) agreements, repayment schedule, and impact on the current period P&L.
Each agreement carries a repaid_basis of actual or estimated. actual
means you have logged real remittances and the figure is authoritative;
estimated means nobody has logged a repayment and the figure is only a
projection of the revenue share. Also returns the agreement currency, any
monthly_remittance_cap and how much has been remitted against it this month.
- No parameters.
How much do I still owe on my MCA, and what's the daily deduction?
get_date_range_summary
High-level rollup of revenue, profit, orders, ad spend, and key metrics for an arbitrary date range. Best for quick time-period comparisons.
start_date(string, required)end_date(string, required)
Give me a quick summary of Q1 2026.
get_markets
The Markets dashboard table for a date range: real geo ad spend, blended fallback spend, revenue, net profit, margins, ROAS, POAS, CAC, and markets with spend but no orders.
start_date(string, required)end_date(string, required)country_codes(string array, optional, max 50) - ISO 3166-1 alpha-2 codesinclude_spend_without_orders(boolean, optional, defaulttrue)sort_by(enum, optional) -dashboard,net_profit,revenue,orders,spend,net_margin_pct,roas,poas,caclimit(integer, optional, 1-100, default50)
Each row also carries cogs_source (measured or allocated) and cogs_coverage, and they decide whether cost_ratios.cogs_pct means anything per market. Under measured it comes from that market's own orders and markets are comparable on it; under allocated it is the store-wide total split by revenue share, so it is identical on every row and comparing markets on it says nothing. See Margin by Region.
Which countries are profitable for me this quarter, sorted by POAS?
get_market_products
Country drilldown for the Markets view, ranked by variant and bundle contribution margin.
country_code(string, required) - ISO 3166-1 alpha-2start_date(string, required)end_date(string, required)limit(integer, optional, 1-100, default50)include_bundles(boolean, optional, defaulttrue)
What sells best in Germany this month, and at what margin?
get_tax_insights
Per-country tax exposure over a trailing window, using your configured tax rules, so you can see where estimated tax is eating margin.
days(number, optional, default 30, 1 to 365)
Where is tax costing me the most margin?
get_organic_revenue
Organic versus paid versus direct revenue, classified from the UTM parameters and referrer captured on the order at checkout - not from Google Analytics sessions, pageviews or traffic. Includes an attribution-confidence score and an optional daily trend.
start_date(string, required)end_date(string, required)compare_previous(boolean, optional, defaulttrue) - compare against the preceding period of equal lengthinclude_channels(boolean, optional, defaulttrue) - per-channel breakdown: Organic Search, Organic Social, Email, Referral, Direct, Other Organicinclude_trend(boolean, optional, defaultfalse) - daily organic-vs-paid trend
Only available when per-channel attribution is enabled for your store. Otherwise the tool is hidden from tools/list.
How much of last month came from organic rather than paid?
search_orders
Search orders by date range, customer email, order number, or product SKU. Returns a summary of matching orders with profit per order.
start_date(string, optional)end_date(string, optional)customer_email(string, optional) - must be a valid emailorder_number(string, optional) - with or without the leading#sku(string, optional)limit(integer, optional, 1-100, default20)
At least one filter is required, and results are hard-capped at 100.
Find the last 5 orders from the customer with email [email protected].
query_order_basket_analytics
Analyse orders filtered by what is in the basket - which products, and how many units - broken down by region, channel or month. Answers questions that per-order search and the pre-computed dashboard views cannot, such as "orders containing two chairs, average shipping per country".
start_date(string, required) -YYYY-MM-DD, in your store's timezoneend_date(string, required) -YYYY-MM-DD, in your store's timezoneproduct_ids(array of strings, optional, max 25) - get these fromresolve_productsmin_quantity(integer, optional) - basket contains at least this many units acrossproduct_idsexact_quantity(integer, optional) - basket contains exactly this many units. Mutually exclusive withmin_quantityregion_codes(array of strings, optional, max 50) - ISO 3166-1 alpha-2 shipping countriessales_channel(string, optional)group_by(string, optional) - one ofnone,shipping_country,sales_channel,month. Defaultnonelimit(integer, optional, 1-100, default50) - maximum groups returned
Each group returns the order count, net revenue, and both shipping figures: avg_shipping_charged and median_shipping_charged (what the customer paid, which is revenue) and avg_fulfillment_cost and median_fulfillment_cost (your actual outlay), plus fulfillment_cost_coverage_percent.
The cost figures come from your fulfilment data, which is only recorded when a 3PL is connected or per-product fulfilment costs are configured. When coverage is 0, avg_fulfillment_cost is returned as null, never as 0 - "not tracked" and "free shipping" are different answers.
min_quantity and exact_quantity require product_ids.
Look at all orders with two chairs in them across all regions and give me the average shipping cost.
resolve_products
Resolve a product name, category word, or SKU to concrete product IDs in your catalog. Call this before query_order_basket_analytics whenever a question names a product in words rather than by ID. Requires scope mcp:products:read.
query(string, required, 1-200 chars) - product name, category word, or SKUlimit(integer, optional, 1-25, default10)
Matching runs exact SKU first, then a name/SKU substring pass, then trigram similarity over the catalog. Each match returns a match_score and match_type so the client can tell you which products it interpreted your question as referring to.
Which of my products count as chairs?
Product intelligence tools
Scope: mcp:products:read
get_top_products
Top N products ranked by revenue, profit, margin, or units sold, using the same order-based product profit math as the dashboard.
start_date(string, required)end_date(string, required)rank_by(enum, required) -revenue,profit,margin_pct, orunitslimit(number, optional, 1-50, default10)
What are my 10 most profitable products this month?
get_bottom_products
Bottom N products ranked by profit or margin. Useful for finding SKUs that are losing money.
start_date(string, required)end_date(string, required)rank_by(enum, required) -profitormargin_pctlimit(number, optional, 1-50, default10)exclude_below_units(number, optional, default0) - drop low-volume noise
Which products are losing money after ad spend?
get_product_detail
Detailed profitability for a specific product including current catalogue price, variant-level pricing, COGS, and a 90-day trend.
product_id(string, required)
Tell me everything about product {id}.
find_cogs_gaps
Products or variants with missing or stale COGS data that are affecting P&L accuracy. Returns product titles, SKUs, and the gap reason.
include_zero_cost(boolean, optional, defaulttrue)stale_older_than_days(number, optional)
Find any COGS gaps in my catalog.
run_product_viability (heavy)
Simulate a new product launch: given a proposed price, COGS, and ad spend per unit, compute break-even ROAS, contribution margin, and sensitivity against store averages.
price(number, required, must be positive)cogs(number, required, zero or greater)expected_ad_spend_per_unit(number, required, zero or greater)expected_volume_per_month(number, optional, zero or greater)shipping_cost(number, optional, zero or greater, default0)
I'm thinking of launching a product at $49 with $12 COGS and $8 ad spend per unit. Is it viable?
Ads and marketing tools
Scope: mcp:ads:read
get_ad_performance
Ad spend performance across Meta, Google, Snapchat, and TikTok with spend, ROAS, orders, and attributed revenue.
start_date(string, required)end_date(string, required)platforms(array of enum, optional) - any ofmeta,google,snapchat,tiktokgroup_by(enum, optional, defaultplatform) -platform,campaign, orcountry
Results respect the workspace's campaign selection: Meta campaigns excluded from profit under Settings > Integrations are not returned, and their spend is not part of any total.
How are my Meta campaigns doing vs Google this month?
get_channel_roas
Blended MER (Marketing Efficiency Ratio) and per-platform ROAS, with optional comparison to the previous period.
start_date(string, required)end_date(string, required)compare_to(enum, optional) -previous_period
What's my blended MER across all paid channels this week?
get_attribution_breakdown
Attributed revenue by channel using MerchantFlow's attribution rules, including organic, paid, email, referral, and direct.
start_date(string, required)end_date(string, required)attribution_model(enum, optional, defaultlast_click) -first_click,last_click, orrule_based
Only available when per-channel attribution is enabled for your store. Otherwise the tool is hidden from tools/list.
Break down my attributed revenue by channel.
get_unattributed_revenue
Revenue MerchantFlow could not attribute to a known channel, with order count, percentage of total revenue, and recent examples.
start_date(string, required)end_date(string, required)
Only available when per-channel attribution is enabled for your store.
How much revenue did I leave unattributed last month?
Customer intelligence tools
Scope: mcp:customers:read
get_cohort_analysis
Cohort analysis showing LTV, repeat purchase rate, or revenue by cohort month or week.
cohort_start_date(string, required)cohort_end_date(string, required)metric(enum, required) -ltv,repeat_rate, orrevenueperiod(enum, required) -monthlyorweekly
Show me LTV by cohort month for the last 6 months.
get_ltv_summary
Customer lifetime value summary including average LTV, LTV by segment, and LTV:CAC ratio.
start_date(string, required)end_date(string, required)segment_by(enum, optional) -channel,first_product, orcountry. Defaults tochannelwhen attribution is enabled, otherwisecountry.
Stores without attribution cannot segment by channel.
What's my LTV by acquisition channel?
get_cac_payback
Customer acquisition cost and payback period, showing how long it takes to recoup CAC from first-order profit.
start_date(string, required)end_date(string, required)
What's my CAC payback on Meta vs Google?
list_customers
Customers ranked by lifetime value -- net profit after allocated overhead, summed across each customer's full order history -- from the same source as the dashboard Customers page. Names and email addresses are partially redacted.
start_date(string, optional) -YYYY-MM-DD. Only customers whose first order is on or after this dateend_date(string, optional) -YYYY-MM-DD. Only customers whose first order is on or before this datesort(enum, optional, defaultmarginLtv) -marginLtv(net profit),revenueLtv,orderCount, orfirstOrderAtdir(enum, optional, defaultdesc) -ascordescpage(integer, optional, 1 or greater, default1)limit(integer, optional, 1-50, default25)
The dates choose which customers appear; they do not limit each customer's lifetime totals to that window.
Who are my twenty most valuable customers?
get_customer_detail
Lifetime value detail for one customer: net profit, revenue, CAC, tenure, and their most recent 200 orders. Name and email are partially redacted.
customer_id(string, required) - an id fromlist_customers
Show me the order history behind customer cus_123.
North Star tools
Scope: mcp:north-star:read
get_north_star_status
Current status of all configured North Star KPIs with target, actual, delta, and trend direction.
period(enum, optional, defaultmonth) -today,week,month, orquarter
How am I tracking against my North Star KPIs this month?
Monitoring and activity tools
Scope: mcp:activity:read
list_capabilities
Report this connection's plan tier, how far back its history reaches, whether cross-store tools are available, current rate-limit headroom, and the known limits of the data. Ask for this first when you want to know what can be answered before asking for it.
- No parameters.
What can you actually see for this store, and how far back?
get_anomalies
Recent anomalies detected by MerchantFlow (profit drops, spend spikes, missing sync data, attribution issues).
since_days(number, optional, 1-30, default7)severity(enum, optional) -low,medium, orhigh
What are the top anomalies in my store this week?
get_recent_activity
Chronological feed of recent tenant activity: syncs, large orders, and integration events.
since_hours(number, optional, 1-168, default24)activity_types(string array, optional)
What happened in my store in the last 24 hours?
get_integration_status
Connection status of all integrations (Shopify, WooCommerce, GA4, ad platforms, SpeedFulfill) including last sync time and any errors.
- No parameters.
Which of my integrations haven't synced in the last 24 hours?
Valuation tools
Scope: mcp:valuation:read
run_business_valuation (heavy)
Full SDE-multiple valuation based on current P&L data, growth, margin, MER, and risk scoring. Returns a valuation range with sensitivity analysis.
lookback_months(number, optional, 1-36, default12) - 6 or fewer uses the 6-month dashboard mode, otherwise 12-month
Run a business valuation and tell me what's dragging the multiple down.
Inventory tools
Scope: mcp:inventory:read
run_stock_velocity
Rank products by units sold in the selected timeframe and classify them as fast, steady, slow, or dead.
timeframe(enum, optional, default30d) -7d,30d,90d, or1ylimit(integer, optional, 5-100, default50)
Which SKUs are my fastest movers over the last 90 days?
run_dead_stock_report
Products with zero sales in the window and, when Shopify is connected, their current on-hand inventory.
timeframe(enum, optional, default90d) -30d,90d, or1y
What inventory hasn't sold at all this quarter?
run_inventory_valuation (heavy)
Total dollar value of inventory currently on hand (on-hand quantity multiplied by recorded COGS per SKU).
top_n(integer, optional, 10-200, default50)
How much capital is tied up in inventory right now?
run_multi_location_inventory_audit (heavy)
Variants that are out of stock at some locations but available at others - candidates for transfers.
min_locations(integer, optional, 2-20, default2)
Which products should I transfer between warehouses?
Order intelligence tools
Scope: mcp:orders:read
run_fulfillment_digest
Digest of open orders by fulfillment status and age. Surfaces orders stuck for more than 3 days.
days(integer, optional, 1-180, default30)
Which orders are stuck in fulfillment?
lookup_order
Look up a single order by number and return its line items, margin, partner commissions, fulfillment state, and refund history.
order_number(string, required) - with or without the leading#, so a number copied fromsearch_ordersor from your storefront resolves either way
meta.commission_amount is the commission your commission rules charged on the order (already deducted from its gross profit), and meta.commissions lists it per rule with rule_name, amount and basis_amount.
Pull up order #1042 and tell me if it was profitable.
run_repeat_purchase_rate
Percentage of customers in the window who placed two or more orders.
days(integer, optional, 7-730, default90)
What's my repeat purchase rate over the last 90 days?
run_high_risk_order_report (heavy)
Shopify-flagged orders with medium or high fraud risk in the recent window.
days(integer, optional, 1-30, default7)min_level(enum, optional, defaultMEDIUM) -LOW,MEDIUM, orHIGH
Any high-risk orders I should review before fulfilling?
find_duplicate_customers
Group orders by customer email hash to find customers appearing under multiple names or phone numbers.
min_orders(integer, optional, 2-20, default2)limit(integer, optional, 5-200, default50)
Do I have duplicate customer records skewing my LTV?
Store and catalog audit tools
Scope: mcp:store:read
run_product_image_audit (heavy)
Products without a featured image or with fewer than N total images.
min_images(integer, optional, 1-10, default1)
Which products are missing images?
run_seo_metadata_audit (heavy)
Products missing an SEO title or with an SEO description shorter than the threshold.
min_description_length(integer, optional, 0-500, default50)
Audit my product SEO metadata.
run_collection_membership_audit
Every collection in the store with product count and last-updated date. Flags empty collections.
- No parameters.
Are any of my collections empty or stale?
run_product_completeness_score (heavy)
Scores every product 0-100 based on images, SEO fields, description length, and taxonomy.
limit(integer, optional, 10-500, default100)
Score my catalogue for completeness and show me the worst offenders.
run_url_redirect_audit
Lists every URL redirect and flags loops, empty targets, and redirect chains.
- No parameters.
Are any of my store redirects broken?
run_page_content_audit
Store pages flagged by content thinness, unpublished status, or staleness.
stale_days(integer, optional, 30-730, default180)min_body_chars(integer, optional, 0-500, default100)
Which store pages are thin or out of date?
run_gift_card_balance_report
Outstanding gift card balance grouped by currency, plus redemption percentage against initial issuance.
- No parameters.
How much outstanding gift card liability do I have?
Marketing operations tools
Scope: mcp:marketing:read
run_abandoned_cart_identifier
Recent abandoned checkouts with recoverable value. Read-only - it does not send messages.
days(integer, optional, 1-30, default7)
How much revenue is sitting in abandoned carts this week?
run_win_back_candidates
Valuable customers who haven't purchased in the last N days.
inactive_days(integer, optional, 30-730, default90)min_lifetime_spend(number, optional, zero or greater, default100)limit(integer, optional, 10-500, default100)
Build me a win-back list of lapsed high spenders.
run_customer_spend_tier_classifier
Classify customers into VIP, regular, casual, and one-time tiers based on lifetime spend and order count.
vip_spend_threshold(number, optional, zero or greater, default1000)regular_spend_threshold(number, optional, zero or greater, default300)window_days(integer, optional, 30-1825, default365)
How many VIP customers do I have, and what share of revenue do they drive?
run_sales_by_channel_report
Revenue, orders, profit, and AOV broken down by acquisition channel.
days(integer, optional, 7-365, default30)
Only available when per-channel attribution is enabled for your store.
Break down sales by acquisition channel for the last 30 days.
run_wismo_digest
"Where Is My Order" digest - in-flight orders with tracking status, age, and destination.
days(integer, optional, 1-90, default14)
Which shipments are running late and likely to generate support tickets?
get_discount_code_performance
Margin metrics for each discount code -- uses, revenue, discount cost, COGS, allocated ad spend, gross profit and margin percent -- ranked by any of those columns, with a summary across all codes, so you can see which promotions actually paid for themselves.
timeframe(enum, optional, default30d) -today,7d,30d,90d, or1y. Ignored whenstart_dateandend_dateare both suppliedstart_date(string, optional) -YYYY-MM-DD, start of a custom range. Requiresend_dateend_date(string, optional) -YYYY-MM-DD, end of a custom range. Requiresstart_datesort_by(enum, optional, defaultgrossProfit) -code,uses,grossRevenue,discountCost,totalCOGS,adSpendAllocated,grossProfit, ormarginPercentsort_order(enum, optional, defaultdesc) -ascordescpage(integer, optional, 1 or greater, default1)page_size(integer, optional, 1-100, default25)
7d, 30d, 90d and 1y are pre-aggregated during sync, so they are the fastest; today and a custom range are computed live. The response's source says which you got. Supplying only one of start_date and end_date returns invalid_date_range.
When an order used more than one code, its revenue, COGS and ad spend are split between the codes by each code's share of the order's discount. discount_cost is reported on its own and is not subtracted again from gross_profit, because order subtotals are already after discounts.
Which discount codes lost me money last quarter?
Report tools
Scope: mcp:reports:read
list_reports
List every report available to this store: saved template reports, custom reports, and the built-in template catalogue. Use the returned report id (or a template key) with generate_report.
type(enum, optional) -templateorcustominclude_archived(boolean, optional, defaultfalse)
What reports do I have saved in MerchantFlow?
generate_report (heavy)
Generate the data for any report over a date range - the same numbers the dashboard shows. Pass exactly one of report_id or template_key.
report_id(string, optional) - a saved or custom report id fromlist_reportstemplate_key(enum, optional) -pnl,product_performance,marketing_overview,order_summary,expense_breakdown,month_over_month,week_over_week, oryear_over_yearstart_date(string, optional) - defaults to the report's own default timeframe ending todayend_date(string, optional)comparison_mode(enum, optional) -none,previous_period, orprevious_year
Passing both report_id and template_key, or neither, returns invalid_params. Generating a template you have never opened materialises that template's report row in your workspace the first time.
Run my month-over-month comparison report for the last two months.
COGS tools
Scope: mcp:cogs:read
list_cogs
List cost-of-goods-sold entries for all items and variants, newest effective date first, enriched with the matching product and variant.
sku_contains(string, optional) - case-insensitive substring matcheffective_from(string, optional)effective_to(string, optional)page(number, optional, 1 or greater, default1)page_size(number, optional, 1-100, default50)
List every COGS entry I have recorded for SKUs containing "HOODIE".
get_item_cogs
Current COGS and full cost history for one item.
sku(string, optional)product_id(string, optional) - MerchantFlow's internal product idvariant_id(string, optional) - the commerce platform's variant id (for example the Shopify variant id), not an internal UUIDon_date(string, optional) - return the cost effective on that date
At least one of sku, product_id, or variant_id is required.
What has my cost been over time for SKU ABC-123?
get_cogs_coverage
How much of the catalogue, units sold, and revenue is covered by COGS data, including margin distribution and the top products still missing costs.
start_date(string, optional) - defaults to 30 days beforeend_dateend_date(string, optional) - defaults to today
What percentage of my revenue has accurate COGS behind it?
Multi-store tools
Scope: mcp:store:read
These require a plan that covers more than one store. On a single-store plan they return a structured message pointing at the upgrade rather than an error.
get_store_list
List the stores linked to this account with each store's platform, currency, timezone, connection state and last sync time. Use it to discover which stores exist before asking for combined figures.
- No parameters.
Which stores are connected to this account?
get_combined_pnl (heavy)
Combined profit and loss across every linked store for a date range, converted into a single reporting currency. Requires scope mcp:pnl:read.
start_date(string, optional) -YYYY-MM-DD, defaults to 30 days agoend_date(string, optional) -YYYY-MM-DD, defaults to todayreporting_currency(string, optional) - ISO 4217 code to convert every store into. Defaults to the primary store's currency.per_store(boolean, optional) - also return the per-store breakdown
Combine last month's P&L across all my stores in AUD, with the per-store split.
ChatGPT app tools
These ten tools power MerchantFlow's app inside ChatGPT: the sidebar home, the panel beside a conversation, the viewer that opens next to a supplier invoice or cost CSV, @-mentions in the composer, the settings on MerchantFlow's plugin page, and connecting more than one MerchantFlow account. Two of them are the write tools.
MerchantFlow lists them in tools/list like every other tool, for every client. All except get_profile are app-only, so ChatGPT calls them from its own interface rather than in answer to a prompt, and any host that supports MCP Apps keeps them away from the model. A client that does not understand that marker sees them as ordinary tools.
Each entry states its own scope.
open_merchantflow (app-only)
Opens the MerchantFlow app on one page of your store's figures. In ChatGPT this is MerchantFlow's sidebar entry, and the app calls it again whenever you change page or period.
page(enum, optional) -today,pnl,products,ads,markets, ororders. Defaults to your chosen home page,todayuntil you change itrange(enum, optional) -7d,30d,90d,thisMonth,lastMonth, orytd, in your store's timezone. Defaults to your chosen period,30duntil you change it
Scope: mcp:pnl:read
It returns the page, its period, and one section per block on the page. Each section holds either that block's figures or unavailable with a reason -- permission (the connection lacks that block's scope), plan (your plan does not include it) or error -- so a narrowly scoped connection still shows what it may see. The figures come from the tools below, which still apply their own scopes, plan gates and history window:
| Page | Blocks |
|---|---|
today | Yesterday's P&L against the day before (get_pnl_summary), anomalies from the last 7 days (get_anomalies), this month's North Star status (get_north_star_status), fulfillment digest (run_fulfillment_digest) |
pnl | P&L for the period against the previous period (get_pnl_summary) |
products | Top 10 and bottom 5 products by profit (get_top_products, get_bottom_products) |
ads | Blended MER and per-platform spend (get_channel_roas), top 10 campaigns by spend (get_ad_performance) |
markets | Top 10 markets by net profit (get_markets) |
orders | Up to 25 orders from the period (search_orders), fulfillment digest (run_fulfillment_digest) |
today always shows yesterday, whatever range says. Your home page and period are your own choice for this store -- see settings_update.
open_store_pulse (app-only)
A compact panel that stays open beside a ChatGPT conversation: yesterday's revenue, profit and orders against the day before, the last seven days, and the anomalies MerchantFlow flagged in the last 7 days.
- No parameters.
Scope: mcp:pnl:read
Returns the same shape as open_merchantflow, with page set to pulse.
open_cogs_import_file (app-only)
Opens when you open a supplier invoice (.pdf, .png, .jpg, .jpeg, .webp) or a cost CSV (.csv) in ChatGPT, to preview cost changes before you import them in MerchantFlow. It does not read the file itself: ChatGPT passes only the file's name and a reference that only the app's viewer can open.
file(object, required) -name(string, 1-255 characters, with extension) andresourceUri(string, the host's reference to the file)
Scope: mcp:cogs:read
Returns what the file is (invoice, csv, or unsupported) and what this connection may do with it. For an invoice, can_start_draft says whether start_invoice_import_draft will work, and if not, blocked_by says why: scope (the connection was not granted mcp:cogs:import), permission (your role cannot manage COGS), not_available (supplier invoice import is not switched on for your workspace), plan, or cap_reached (this month's invoice extractions are used up). It also returns the maximum file size, whether a CSV can be previewed, and a link to the COGS page in MerchantFlow.
preview_cogs_csv (heavy, app-only)
Compares a cost CSV with your current product costs: which SKUs match a product, and what each cost would change to. It changes nothing -- you import the file in MerchantFlow.
file_name(string, required, 1-255 characters)text(string, required, up to 2,000,000 characters) - the CSV contents
Scope: mcp:cogs:read
Returns whether the file can be imported as it is (and if not, the problem and the row), totals for rows, matched and unmatched SKUs and rows with a cost, the first 50 rows with each SKU's current and new cost, and a link to the CSV import in MerchantFlow. A file of more than 5,000 rows is reported as too many rows.
start_invoice_import_draft (write, heavy, app-only)
This tool writes. It starts a draft cost import from a supplier invoice, the same as uploading the invoice in the dashboard: MerchantFlow queues the invoice to be read and its lines matched to your products. Each draft counts toward your monthly invoice extraction allowance. No cost changes until you review the draft and apply it in MerchantFlow.
file_name(string, required, 1-255 characters) - must end in.pdf,.png,.jpg,.jpeg, or.webpmime_type(string, optional) - the declared file type; the file's contents decidedata_base64(string, required) - the invoice file, base64-encoded
Scope: mcp:cogs:import (write)
Returns the draft's import_id, its status (queued), and a link that opens the draft in MerchantFlow. The call is refused unless the connection was granted mcp:cogs:import, your role can manage COGS, supplier invoice import is switched on for your workspace, your plan includes it (see Pricing Plans), and this month's allowance is not used up.
get_invoice_import_draft (app-only)
Progress of a draft invoice import: its status and, once the invoice has been read, the supplier and the lines with their matched products. Read-only.
import_id(string, required, 1-64 characters) - fromstart_invoice_import_draft
Scope: mcp:cogs:read
status is one of queued, extracting, review, matched, applying, applied, reverting, failed, or discarded, and ready is true once the lines are extracted and matched. The response also carries the supplier, invoice number and date, currency, match statistics, the line count, the first 50 lines (with matched product and match confidence), and a link to the draft in MerchantFlow.
search_mentions (app-only)
Lists products and ad campaigns matching the text you type after @ in the ChatGPT composer, as links ChatGPT can attach to your message.
query(string, required, up to 100 characters) - may be empty
Scope: declared as mcp:products:read, but callable with any connected token. Each half of the result checks its own scope: products need mcp:products:read, campaigns need mcp:ads:read.
Returns up to 8 items: up to 6 products, matched the same way as resolve_products (with an empty query, your top products by revenue over the last 30 days), and up to 4 campaigns with ad spend in the last 90 days whose names contain the query, highest spend first. Each item is a resource_link to a merchantflow://products/... or merchantflow://campaigns/... resource.
get_profile
The MerchantFlow account and store this connection is signed in as. ChatGPT uses it to tell several MerchantFlow connections apart -- a second store, or a client's store -- and to recognise the same connection after you reconnect.
- No parameters.
Scope: declared as mcp:store:read, but callable with any connected token and by every role.
Returns an opaque id (starting prf_) that stays the same across token refreshes and reconnections and is different for each user and store, plus, when known, your name, your email, and a nickname made of your name and the store name. It returns your own account details, never store data. It is not app-only, so any client can call it.
Which MerchantFlow account and store is this connection using?
settings_read (app-only)
Your own MerchantFlow preferences for this store, with the schema and layout ChatGPT uses to draw them as controls on MerchantFlow's plugin settings page.
- No parameters.
Scope: declared as mcp:store:read, but callable with any connected token and by every role.
| Group | Settings |
|---|---|
| MerchantFlow app | app_home_page, app_default_period |
| Daily AI Summary | daily_summary_enabled, daily_summary_frequency, daily_summary_send_hour |
| Anomaly alert emails | anomaly_emails_enabled, anomaly_min_severity -- only on plans with anomaly alerts |
Values come back as labels in your language.
settings_update (write, app-only)
This tool writes. It changes your own MerchantFlow preferences for this store -- the settings settings_read returns -- through the same code the dashboard uses. It changes no store data and no setting shared with your team.
set(object, required) - at least one of:app_home_page-today,pnl,products,ads,markets, orordersapp_default_period-7d,30d,90d,thisMonth,lastMonth, orytddaily_summary_enabled(boolean)daily_summary_frequency-daily,weekday_only,weekly_monday, orcustomdaily_summary_send_hour(integer, 0-23)anomaly_emails_enabled(boolean)anomaly_min_severity-critical,warning, orinfo
Scope: mcp:settings:write (write)
Each value can be given as the code above or as its label in your language. Every value is checked before anything is saved, so one invalid value leaves all your settings unchanged. custom needs your custom days to be picked in the dashboard first. Turning anomaly alert emails off works on any plan; any other anomaly alert change needs a plan with anomaly alerts. Returns the updated values.
ChatGPT connector tools
Scope: mcp:products:read (order results additionally require mcp:orders:read)
search and fetch are the two tools ChatGPT's standard Connectors surface expects. They are a retrieval pair, not an analytics one: they find records and return them. For profit, ad, cohort or valuation figures, use the dedicated tools above - in ChatGPT they are available when you add MerchantFlow from the plugin directory or turn on developer mode, and they are available in every other MCP client.
Order documents returned here carry money, dates and status only, never customer names, emails or addresses.
search
Search this store for products and orders matching a query. Returns documents with id, title and url.
query(string, required) - free text
Find my products matching "merino beanie".
fetch
Retrieve the full record for a document id returned by search.
id(string, required) - an id fromsearch, shapedproduct:<uuid>ororder:<uuid>
Open that first result and show me the details.
Scopes
Each tool declares one scope. There are 13 read scopes and 2 write scopes. Granting mcp:read:all (the default on the consent screen) expands to the 13 read scopes -- never to a write scope.
Three read-only tools -- get_profile, settings_read and search_mentions -- can be called with any connected token, whatever scopes it holds. They return your own account and preferences, or (for search_mentions) only the results the token's other scopes allow.
| Scope | Tools it unlocks |
|---|---|
mcp:pnl:read | P&L, profit waterfall, revenue, expenses, commissions, bank balance, MCA, date-range summary, Markets, tax insights, organic revenue, order search, basket analytics, combined multi-store P&L, the MerchantFlow app pages (open_merchantflow, open_store_pulse) |
mcp:products:read | Top/bottom products, product detail, COGS gaps, viability simulation, product name/SKU resolution, search and fetch |
mcp:ads:read | Ad performance, channel ROAS, attribution, unattributed revenue |
mcp:customers:read | Cohorts, lifetime value, CAC payback, customer list and detail |
mcp:valuation:read | Business valuation |
mcp:north-star:read | North Star KPI status |
mcp:activity:read | Capabilities, anomalies, recent activity, integration status |
mcp:inventory:read | Stock velocity, dead stock, inventory valuation, multi-location audit |
mcp:orders:read | Fulfillment digest, order lookup, repeat rate, high-risk orders, duplicate customers |
mcp:store:read | Image, SEO, collection, completeness, redirect, page, and gift card audits; store list |
mcp:marketing:read | Abandoned carts, win-backs, spend tiers, sales by channel, WISMO digest, discount code performance |
mcp:reports:read | Listing and generating saved and template reports |
mcp:cogs:read | COGS listing, per-item cost history, coverage reporting, opening and previewing a cost file, reading a draft invoice import |
mcp:settings:write (write) | settings_update |
mcp:cogs:import (write) | start_invoice_import_draft |
Calling a tool your token was not scoped for returns an insufficient_scope error telling you to re-authorize with broader permissions.
Write scopes
Two scopes let a tool change something in MerchantFlow. Neither can change your Shopify or WooCommerce store or your ad accounts.
| Write scope | Tool | What it allows |
|---|---|---|
mcp:settings:write | settings_update | Changing your own preferences for this store: the MerchantFlow app in ChatGPT, your Daily AI Summary schedule and your anomaly alert emails. No store data, and no setting that affects your team |
mcp:cogs:import | start_invoice_import_draft | Uploading a supplier invoice to start a draft cost import, which uses one of your monthly invoice extractions. Costs change only when you review and apply the draft in MerchantFlow. Needs a role that can manage COGS |
A write scope is never granted by default:
mcp:read:alldoes not include either one.- OAuth: a write scope appears on the consent screen only when the AI client asks for it by name. It is listed with what it changes, and you can untick it under Customize before you click Allow access.
- Personal access tokens: each write scope is its own checkbox when you create the token. It is never preselected and Select all does not tick it.
- Your role still applies. A connection only receives the scopes your role allows --
mcp:cogs:import, for example, is dropped for a role that cannot manage COGS.
Rate limits
Rate limits are per workspace and split into two buckets. Standard tools and heavy tools each get their own per-minute budget, so a runaway valuation loop cannot starve your P&L queries.
| Plan | Per minute | Heavy per minute | Per hour | Per day |
|---|---|---|---|---|
| Trial | 60 | 10 | 300 | 2,000 |
| Starter | 60 | 10 | 300 | 2,000 |
| Pro | 90 | 15 | 600 | 5,000 |
| Plus | 150 | 20 | 1,200 | 10,000 |
| Agency | 150 | 20 | 1,200 | 10,000 |
Agency workspaces also share a book-wide budget of 25,000 calls per day across every client store, so one busy client cannot exhaust the rest.
The limits exist to stop a looping agent, not to ration normal use - driving an AI client by hand will not reach them. The daily bucket is shared, so heavy calls count against it too, and OAuth clients and personal access tokens draw from the same buckets.
Exceeding a limit returns a rate_limited error with the number of seconds to wait.
Built-in prompts
Compatible MCP clients can also surface these guided prompts:
weekly_briefing
Generate a structured weekly P&L briefing with revenue, profit, top products, ad performance, and recommendations.
week_start(required) - Monday of the target week,YYYY-MM-DDinclude_recommendations(optional)
find_profit_leaks
Audit COGS coverage, unprofitable products, inflated expense categories, and ad efficiency gaps. Returns a prioritised list of profit leaks to investigate. No arguments.
product_launch_check
Run a viability simulation for a proposed product and return a launch recommendation with sensitivity analysis.
proposed_price(required)expected_cogs(required)expected_ad_spend_per_unit(required)
month_end_close
Walk through the month-end close checklist: missing COGS, outstanding expenses, integration sync gaps, and anomalies to resolve before closing the books. No arguments.
growth_opportunity_scan
Identify products with good margins but low ad spend, ad efficiency gaps, and customer segments with good LTV but underused retention. No arguments.
exit_readiness_check
Run the business valuation plus a diligence-style checklist (COGS coverage, integration coverage, margin trend, customer concentration). No arguments.
Resources
Compatible MCP clients can also read these resources:
merchantflow://tenant/summary
Store name, platform, currency, timezone, subscription tier, creation date, and last sync time, so the AI can orient itself before calling tools.
merchantflow://help/tool-guide
Markdown guide generated live from the tool registry, explaining what each tool available to your store does and when to use it.
merchantflow://integrations/status
Registered but currently returns placeholder content. Use the get_integration_status tool for live integration health.
merchantflow://north-star/definitions
Registered but currently returns placeholder content. Use the get_north_star_status tool for live KPI values.
Related
Last updated: November 24, 2026
Last updated on
MCP Security and Data Handling
What an AI client connected to MerchantFlow can and cannot do: read scopes, the two opt-in write scopes, tenant isolation, PII redaction, what gets logged, token lifetimes, and how to revoke access.
15 Example Prompts to Ask Claude About Your MerchantFlow Store
Copy-paste prompts that show off what MerchantFlow MCP makes easy. Use these as-is or adapt them to your store.