SLAM Commerce MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SLAM_DB_PATH | Yes | Absolute path to the SLAM Gadget .db file (schema version 3, downloaded from the Gadget dashboard) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| slam_healthA | Introspect the SLAM MCP server: MCP protocol version, server version, SQLite version, database pathname, row counts per table, last sync timestamp, and store metadata. Use as the first call to verify the connection and detect version drift. |
| slam_meta_statusA | Returns sync metadata (last sync time, minutes since sync) and row counts for every entity table in the SLAM database. |
| slam_meta_storeB | Returns store information from the SLAM metadata table: shop domain, currency, timezone, and other store-level settings. |
| slam_meta_schemaA | Returns the full database schema (tables + columns), logical relationships, TEMP view documentation with semantic descriptions and column type notes, and copy-paste SQL patterns for common cross-table queries. Call this before writing slam_run_query to understand the data model. |
| slam_metafields_queryA | Browse and filter metafields (custom fields) across products, variants, customers, orders, and collections. Filter by owner type, namespace, key, a specific entity ID, or a substring of the value. Returns owner label (product title, customer email, or variant title) alongside each metafield. |
| slam_products_listA | Returns a paginated list of products with variant counts. Supports filtering by status, vendor, and product_type. Use the data_quality parameter to filter to products with content gaps (e.g. 'no_description' returns only products with empty body_html). |
| slam_products_getA | Returns a single product by ID, including all its variants, collection memberships, and metafields. |
| slam_products_searchA | Searches products by title, vendor, product_type, or tags using LIKE matching. Returns paginated results with variant counts. |
| slam_products_countB | Returns the total count of products, optionally filtered by status, vendor, or product_type. |
| slam_product_imagesB | Returns product images from the product_media table. Supports filtering by product_id. |
| slam_variants_listB | Returns a paginated list of variants. Optionally filter by product_id to see variants for a specific product. |
| slam_variants_getB | Returns a single variant by ID, including parent product information, inventory items, and inventory levels. |
| slam_variants_searchB | Look up variants by exact SKU or barcode. Returns variant details plus parent product info. Provide sku, barcode, or both. |
| slam_variant_optionsC | Returns product option names and values from the product_options table (option_values stored as JSON). |
| slam_inventory_levelsB | Returns inventory levels joined with variant info (SKU, title) and location name. Filterable by product_id, SKU, or location_id. |
| slam_inventory_summaryB | Returns aggregated inventory statistics: total SKUs tracked, total units, units by location, out-of-stock count, and low stock count. |
| slam_inventory_alertsA | Returns variants at or below a stock threshold — your reorder list. Uses multi-location inventory_levels aggregation via the variant_stock_health view. Sorted by lowest stock first. |
| slam_inventory_oversoldA | Returns variants where total available stock is negative — meaning orders have exceeded inventory (overselling). Distinct from out-of-stock (zero stock). Sorted by most negative first. |
| slam_inventory_by_locationB | Returns inventory stock totals aggregated by location (warehouse/store). Shows available, on_hand, reserved, and committed units per location. |
| slam_dead_stockA | Returns variants that have available inventory but no recorded sales (order_count = 0). Useful for identifying stock to clearance or discontinue. Sorted by highest stock first. |
| slam_collections_listB | Returns a paginated list of collections with product counts. Filterable by collection_type ('smart' or 'custom'). |
| slam_collections_getB | Returns a single collection by ID, including all member products. |
| slam_collections_for_productC | Returns all collections that contain the specified product. |
| slam_products_for_collectionA | Returns all products in a collection, each enriched with variant count and sales metrics (order_count, units_sold, total_revenue) from the product_sales view. Products with no sales show zeros. |
| slam_orders_listB | Returns a paginated list of orders with customer name and line item count. Filterable by financial_status and fulfillment_status. |
| slam_orders_getA | Returns a single order by ID, including line items, discount codes, and customer info. |
| slam_orders_searchA | Search orders by customer email or name fragment, date range, or status. Use for support workflows like 'find all orders from jane@example.com' or 'show unfulfilled orders from last week'. |
| slam_order_line_items_listA | List individual order line items. Filter by product, variant, or specific order. Useful for cross-order product queries like 'show all orders containing variant X' or 'which orders had this product?' |
| slam_discounts_summaryC | Returns discount code usage summary from order_discount_codes. Shows most-used codes, total discount amounts, and discount types. |
| slam_discounts_activeC | Returns active discount codes from the discounts table (not order_discount_codes). Shows current live promotions. |
| slam_fulfillment_trackingB | Returns fulfillment records from the fulfillments table. Filter by order or status. |
| slam_refunds_summaryC | Returns refund records joined with refund line items. Shows refund amounts, reasons, and order context. |
| slam_returns_summaryC | Returns return records from the returns table, joined with return line item counts. |
| slam_draft_orders_listC | Returns draft orders with line item counts. Draft orders are unpaid/pending orders not yet converted. |
| slam_customers_listC | Returns a paginated list of customers with orders_count and total_spent. Optionally filter by tag. |
| slam_customers_getA | Returns a single customer by ID, including recent orders (up to 10) and metafields. |
| slam_customers_by_tagC | Returns customer tag distribution from the customer_tags table. Shows which tags are most common and how many customers have each. |
| slam_customers_searchA | Search customers by email address or name fragment. Matches against email, first_name, and last_name using a case-insensitive substring search. |
| slam_customers_topA | Returns customers ranked by total spend, order count, or average order value. Use min_orders to filter to repeat buyers only. |
| slam_customer_addressesC | Returns customer addresses from the customer_addresses table. |
| slam_prices_currentB | Returns current variant prices. Use below_compare to show only variants where price < compare_at_price (on sale). Filterable by product_id. |
| slam_price_analysisA | Returns variants with discount analysis from the price_comparison view. By default shows only items on sale (compare_at_price > price), sorted by biggest discount first. |
| slam_conditions_contentA | Runs content quality checks: products with empty descriptions, 'Copy of'/'Untitled' titles, or missing tags. |
| slam_conditions_pricingB | Runs pricing anomaly checks: zero-price variants, inverted compare_at_price, and compare_at_price equal to price. |
| slam_conditions_identifiersB | Runs identifier completeness checks: empty SKUs, empty barcodes, and duplicate product titles. |
| slam_conditions_inventoryB | Runs inventory status checks: out-of-stock variants, negative inventory, and untracked inventory items. |
| slam_conditions_ordersB | Runs order quality checks: orders with no line items, missing customer email, zero total price, and refunded-but-unfulfilled status. |
| slam_conditions_customersA | Runs customer quality checks: missing email, duplicate emails, zero order count, and customers with orders but zero total spent. |
| slam_sales_summaryA | Returns a store sales dashboard: total orders, total revenue, average order value, breakdown by financial and fulfillment status, and top 5 products by revenue. Optionally filter by financial_status. |
| slam_sales_by_periodA | Returns orders grouped by day, week, or month — a time-series view of sales performance. Each period includes order_count, total revenue, and average order value. Most recent periods first. |
| slam_products_topA | Returns products ranked by sales performance (revenue, units sold, or order count). Supports pagination, sort direction, and optional vendor/product_type filters. Uses the product_sales view which joins orders and line_items — only products with at least one order appear. |
| slam_products_bought_togetherA | Returns product pairs ranked by co-purchase frequency — how often two products appear together in the same order. Use to discover bundle opportunities. Supply product_id to anchor on a specific product, or omit to see the top pairs across all orders. |
| slam_vendors_summaryB | Returns sales performance grouped by vendor — total revenue, units sold, order count, and product count per vendor. Sorted by revenue by default. |
| slam_locations_listB | Returns all fulfilment locations with stock totals. Uses the inventory_by_location view. |
| slam_b2b_companies_listB | Returns B2B companies with location and contact counts. |
| slam_content_pagesB | Returns pages and articles for content audit. Use content_type filter to restrict to 'page' or 'article'. |
| slam_gift_cards_summaryB | Returns outstanding gift card balance summary grouped by currency. |
| slam_selling_plans_listC | Returns subscription selling plan groups with plan and product counts. |
| slam_store_snapshotA | Returns a one-call store health snapshot: sales totals, inventory counts, data condition issue counts, and sync freshness. Answers 'what is the state of my store right now?' without requiring multiple tool calls. |
| slam_run_queryA | Executes a read-only SQL query against the SLAM database with validation, pagination, money column warnings, and fuzzy error suggestions. Only SELECT, PRAGMA, EXPLAIN, and WITH statements are allowed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/valljo888ai/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server