list_ecommerce_stores
Retrieve connected e-commerce stores (Shopify, WooCommerce) along with their revenue statistics to monitor performance.
Instructions
List connected e-commerce stores (Shopify, WooCommerce, etc.) with revenue stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp_mailchimp/server.py:1322-1340 (handler)The handler function for the 'list_ecommerce_stores' tool. It calls the Mailchimp API GET /ecommerce/stores and formats the response with store details (id, name, platform, domain, list_id, currency_code, money_format, is_syncing, created_at).
@mcp.tool() async def list_ecommerce_stores(count: int = 20) -> str: """List connected e-commerce stores (Shopify, WooCommerce, etc.) with revenue stats.""" mc = get_client() data = await mc.get("/ecommerce/stores", params={"count": min(count, 100)}) stores = [] for s in data.get("stores", []): stores.append({ "id": s.get("id", ""), "name": s.get("name", ""), "platform": s.get("platform", ""), "domain": s.get("domain", ""), "list_id": s.get("list_id", ""), "currency_code": s.get("currency_code", ""), "money_format": s.get("money_format", ""), "is_syncing": s.get("is_syncing", False), "created_at": s.get("created_at", ""), }) return _fmt({"total_items": data.get("total_items", 0), "stores": stores}) - mcp_mailchimp/server.py:1322-1323 (registration)The tool is registered via the @mcp.tool() decorator on line 1322, making it available as an MCP tool named 'list_ecommerce_stores'.
@mcp.tool() async def list_ecommerce_stores(count: int = 20) -> str: