Available Tools
Available Tools
The Eraya MCP Server provides 16 tools across four categories:
Store & Configuration —
list_stores,switch_store,get_eraya_schemaExperiments & Results —
list_experiments,get_experiment_details,get_experiment_results,get_experiment_statistics,get_experiment_ordersStore Data & Analytics —
get_store_orders,get_products,get_product_analytics,get_business_kpis,get_test_recommendationsShopify Store Data —
list_collections,list_pages,search_policies
Store & Configuration
list_stores
list_storesList all Shopify stores your Eraya account has access to. Shows which store is currently active for the session.
Parameters: None
Example response:
{
"currentStoreId": "64a1f2e3c4d5e6f7a8b9c0d1",
"stores": [
{
"id": "64a1f2e3c4d5e6f7a8b9c0d1",
"name": "My Shopify Store",
"isCurrent": true
},
{
"id": "64a1f2e3c4d5e6f7a8b9c0d2",
"name": "My Second Store",
"isCurrent": false
}
]
}switch_store
switch_storeSwitch the active store for this session. All subsequent tool calls will use the selected store. Call list_stores first to find available store IDs.
Note: The target store must be on an active Eraya Pro plan.
Parameters:
storeId(required): The ID of the store to switch to (uselist_storesto find IDs)
Example response:
get_eraya_schema
get_eraya_schemaReturns the complete Eraya data schema: test types, order property naming conventions, collection names, data flow, and a guide on which tool to use for each analytics task.
Recommended: Call this at the start of a session to help the AI understand your store data before querying it.
Parameters: None
Example response:
Experiments & Results
list_experiments
list_experimentsList all A/B experiments for the active store. Returns all test types by default. Filter by status and/or test type.
Parameters:
status(required): Filter by test status —"active","completed", or"all"testType(optional): Filter by test type —"price","shipping","theme","content","redirect","checkout","template", or"offer"
Example response:
get_experiment_details
get_experiment_detailsGet the full configuration of a specific experiment: variations, goals, targeting, traffic allocation, and run dates.
Parameters:
experimentId(required): The ID of the experimenttestType(required): The type of test —"price","shipping","theme","content","redirect","checkout","template", or"offer"
Example response:
get_experiment_results
get_experiment_resultsGet session-based funnel analytics for an experiment: sessions → add-to-cart → purchases, broken down by variation, device type, and visitor type (new vs. returning).
Parameters:
experimentId(required): The ID of the experimenttestType(required): The type of test —"price","shipping","theme","content","redirect","checkout","template", or"offer"startDate(optional): Start date filter (YYYY-MM-DD). Defaults to test start date.endDate(optional): End date filter (YYYY-MM-DD). Defaults to today or test end date.
Example response:
get_experiment_statistics
get_experiment_statisticsGet pre-computed Bayesian statistics for an experiment. Includes win probability, revenue lift, credible intervals, statistical significance, and per-variation conversion rate, revenue, and AOV.
Use this tool for winner determination and reporting. Statistics are computed nightly. More accurate than
get_experiment_resultsfor significance analysis.
Parameters:
experimentId(required): The ID of the experimentasOfDate(optional): Get stats for a specific date (YYYY-MM-DD). Defaults to the most recent snapshot.
Example response:
get_experiment_orders
get_experiment_ordersRetrieve raw Shopify orders attributed to a specific experiment. Useful for revenue deep-dives, AOV analysis, and per-variation purchasing behaviour.
Parameters:
experimentId(required): The ID of the experimenttestType(required): The type of test —"price","shipping","theme","content","redirect","checkout","template", or"offer"startDate(optional): Start date filter (ISO format, e.g.2026-01-01)endDate(optional): End date filter (ISO format, e.g.2026-05-01)productIds(optional): Array of Shopify product ID strings to filter orders by specific products. Useget_productsto find IDs.limit(optional): Number of orders to return (max 500, default 100)skip(optional): Number of orders to skip for pagination (default 0)
Example response:
Privacy: Customer names, email addresses, phone numbers, and billing addresses are automatically stripped from all order responses.
Store Data & Analytics
get_store_orders
get_store_ordersRetrieve all store orders for a date range regardless of experiment. Useful for analysing overall revenue trends, discount usage, product popularity, and customer purchasing behaviour.
Parameters:
startDate(optional): Start date (ISO format, e.g.2026-01-01)endDate(optional): End date (ISO format, e.g.2026-05-01)productIds(optional): Array of Shopify product ID strings to filter to specific productslimit(optional): Number of orders to return (max 500, default 100)skip(optional): Number of orders to skip for pagination (default 0)
Example response:
Privacy: Customer names, email addresses, phone numbers, and billing addresses are automatically stripped from all order responses.
get_products
get_productsRetrieve the full product catalogue including variants, prices, inventory levels, and status.
Parameters:
search(optional): Search by product name or tagsstatus(optional): Filter by product status —"active","draft", or"archived"limit(optional): Number of products to return (max 500, default 100)skip(optional): Number of products to skip for pagination (default 0)
Example response:
get_product_analytics
get_product_analyticsRetrieve daily per-product analytics: page views, add-to-cart events, orders, revenue, units sold, and price. Useful for understanding product performance trends over time.
Parameters:
productId(optional): Filter to a specific product IDstartDate(optional): Start date (YYYY-MM-DD)endDate(optional): End date (YYYY-MM-DD)limit(optional): Number of records to return (max 500, default 100)skip(optional): Number of records to skip for pagination (default 0)
Example response:
get_business_kpis
get_business_kpisGet store-level daily KPIs: sessions, revenue, conversion rate, and average order value (AOV). Useful for tracking overall store health trends.
Parameters:
period(required): Preset period —"last7days","last30days", or"last90days"startDate(optional): Custom start date (YYYY-MM-DD). Overridesperiodwhen provided withendDate.endDate(optional): Custom end date (YYYY-MM-DD). Overridesperiodwhen provided withstartDate.
Example response:
Shopify Store Data
list_collections
list_collectionsList product collections in the Shopify store. Useful for understanding catalogue structure, finding collection handles for redirect or content tests, or browsing how products are organised.
Parameters:
query(optional): Filter collections by title (case-insensitive substring match)limit(optional): Number of collections to return (max 250, default 50)after(optional): Cursor for pagination (endCursorfrom a previous response)
Example response:
list_pages
list_pagesList content pages in the Shopify store (About Us, FAQ, Contact, Terms of Service, etc.). Useful for finding pages to run content or redirect tests on.
Parameters:
query(optional): Filter pages by title (case-insensitive substring match)limit(optional): Number of pages to return (max 250, default 50)after(optional): Cursor for pagination (endCursorfrom a previous response)
Example response:
search_policies
search_policiesRetrieve store policies: privacy policy, refund policy, terms of service, shipping policy, and subscription policy. Useful for answering customer policy questions or analysing policy content.
Parameters:
query(optional): Filter policies by keyword in title or body (case-insensitive). Omit to return all policies.
Example response:
Last updated