{
  "server": "shopify",
  "url": "https://setup.shopify.com/mcp",
  "date": "2026-11-17",
  "protocolVersion": "2026-07-28",
  "serverInfo": {
    "name": "shopify-mcp-server",
    "version": "1.0.0",
    "icons": [
      {
        "src": "https://setup.shopify.com/icons/shopify.png?v=f9f77672bd2b",
        "mimeType": "image/png",
        "sizes": [
          "192x192"
        ]
      },
      {
        "src": "https://setup.shopify.com/icons/shopify.svg?v=bcb5b56d2f50",
        "mimeType": "image/svg+xml",
        "sizes": [
          "any"
        ]
      }
    ]
  },
  "listChangedDeclared": false,
  "toolCount": 43,
  "outputSchemaCoveragePct": 81.39,
  "tools": [
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Add one or more products to a collection in the connected Shopify store. Use this when the user wants to organize products into a collection. Find the collection's GID with search_collections first.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "collectionId": {
            "description": "The collection GID (e.g. gid://shopify/Collection/123). Always use the full GID format, not a bare numeric ID.",
            "type": "string"
          },
          "productIds": {
            "description": "The product GIDs to add to the collection (e.g. gid://shopify/Product/123). Always use the full GID format, not bare numeric IDs.",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "collectionId",
          "productIds"
        ],
        "type": "object"
      },
      "name": "add-to-collection",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "collectionId": {
            "type": "string"
          },
          "collectionTitle": {
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "products": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currencyCode": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "variantTitle",
                "imageUrl",
                "price",
                "currencyCode",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productsAdded": {
            "type": "number"
          },
          "totalProducts": {
            "type": "number"
          }
        },
        "required": [
          "collectionId",
          "collectionTitle",
          "productsAdded",
          "totalProducts",
          "products",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Add to Collection"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Update the status of multiple products at once. Accepts a list of product IDs or a collectionId and a target status (ACTIVE, DRAFT, or ARCHIVED). Each product is updated individually so partial failures are possible. When using collectionId, only the first 50 products in the collection will be updated.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "collectionId": {
            "description": "GID of a collection whose products should be updated (e.g. gid://shopify/Collection/123). When used, only the first 50 products in the collection will be updated.",
            "type": "string"
          },
          "productIds": {
            "description": "List of product GIDs to update. At least one of productIds or collectionId must be provided.",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "status": {
            "description": "Target status for all products",
            "enum": [
              "ACTIVE",
              "DRAFT",
              "ARCHIVED"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "name": "bulk-update-product-status",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "failed": {
            "type": "number"
          },
          "results": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "success": {
                  "type": "boolean"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "title",
                "imageUrl",
                "success",
                "error"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "succeeded": {
            "type": "number"
          },
          "targetStatus": {
            "type": "string"
          },
          "totalRequested": {
            "type": "number"
          }
        },
        "required": [
          "targetStatus",
          "totalRequested",
          "succeeded",
          "failed",
          "results"
        ],
        "type": "object"
      },
      "title": "Bulk Update Product Status"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products",
              "write_publications"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Create a new collection in the connected Shopify store and publish it to the Online Store.\nUse this when the user wants to organize products into a new group.\n\nCOLLECTION TYPES:\n- Manual collection: pass `productIds` to add specific products.\n- Smart collection: pass `ruleSet` with conditions to auto-populate products.\n- `productIds` and `ruleSet` are mutually exclusive — provide one or neither.\n\nSMART COLLECTION RULES:\n- Common rule columns: TAG, VENDOR, TYPE, TITLE, VARIANT_PRICE.\n- Common relations: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GREATER_THAN, LESS_THAN.\n- `appliedDisjunctively: true` means products matching ANY rule are included (OR logic).\n- `appliedDisjunctively: false` means products must match ALL rules (AND logic).\n\nIMAGE REQUIREMENTS:\n- Images must be publicly accessible HTTPS URLs (e.g. https://example.com/photo.jpg).\n- Local file paths (e.g. /mnt/data/..., file://...) are NOT supported and will fail.\n- If you only have a local file or a generated image, ask the user for a publicly accessible HTTPS URL; this host cannot upload one.\n- Avoid placeholder or non-deterministic image URLs (e.g. picsum.photos) for real collections.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "descriptionHtml": {
            "description": "HTML description of the collection",
            "type": "string"
          },
          "image": {
            "description": "Collection image. Must be a publicly accessible HTTPS URL.",
            "properties": {
              "altText": {
                "description": "Image alt text",
                "type": "string"
              },
              "url": {
                "description": "Publicly accessible HTTPS image URL for the collection",
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "productIds": {
            "description": "Product GIDs to add to a manual collection (e.g. gid://shopify/Product/123). Mutually exclusive with ruleSet.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ruleSet": {
            "description": "Rules for a smart collection. Mutually exclusive with productIds.",
            "properties": {
              "appliedDisjunctively": {
                "description": "true = products match ANY rule (OR), false = products match ALL rules (AND)",
                "type": "boolean"
              },
              "rules": {
                "items": {
                  "properties": {
                    "column": {
                      "description": "Rule column: TAG, VENDOR, TYPE, TITLE, VARIANT_PRICE, etc.",
                      "type": "string"
                    },
                    "condition": {
                      "description": "The value to match against (e.g. \"sale\", \"Nike\", \"50\")",
                      "type": "string"
                    },
                    "relation": {
                      "description": "Rule relation: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GREATER_THAN, LESS_THAN",
                      "type": "string"
                    }
                  },
                  "required": [
                    "column",
                    "relation",
                    "condition"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "appliedDisjunctively",
              "rules"
            ],
            "type": "object"
          },
          "sortOrder": {
            "description": "The order in which products are sorted in the collection",
            "enum": [
              "ALPHA_ASC",
              "ALPHA_DESC",
              "BEST_SELLING",
              "CREATED",
              "CREATED_DESC",
              "MANUAL",
              "PRICE_ASC",
              "PRICE_DESC"
            ],
            "type": "string"
          },
          "title": {
            "description": "The collection title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "name": "create-collection",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "collectionType": {
            "enum": [
              "manual",
              "smart"
            ],
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "imageAltText": {
            "type": [
              "string",
              "null"
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "products": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currencyCode": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "variantTitle",
                "imageUrl",
                "price",
                "currencyCode",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productsCount": {
            "type": "number"
          },
          "rules": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "appliedDisjunctively": {
                    "type": "boolean"
                  },
                  "rules": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string"
                        },
                        "relation": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "column",
                        "relation",
                        "condition"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "appliedDisjunctively",
                  "rules"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "sortOrder": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "descriptionHtml",
          "imageUrl",
          "imageAltText",
          "sortOrder",
          "collectionType",
          "productsCount",
          "products",
          "rules",
          "updatedAt",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Create Collection"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Create a draft product through Shopify Digital Products. The result includes the product and first variant identifiers used to attach and deliver the digital file. If the merchant is selling access to something already on the web — a Notion template, an online course, a booking page — pass it as 'link' and skip the file upload; the link must be hosted by a provider Digital Products supports, and if it is not, the reply names the ones that are. To set the price and the buyer-facing description, call update-product with productId as its 'id' and variantId in 'variants' — prices are in the shop's own currency, so ask the merchant for the amount rather than guessing one. Do not rename the product through update-product: Digital Products keeps its own copy of the title. This tool does not publish the draft.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "link": {
            "description": "An external link to deliver instead of a file. Omit it when the merchant will upload a file.",
            "properties": {
              "name": {
                "description": "Buyer-facing name for the link. Buyers see the URL itself when this is omitted.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "url": {
                "description": "The link the buyer receives after purchase. Must be an http(s) URL hosted by a supported provider.",
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "title": {
            "description": "Title for the new draft digital product.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "name": "create-digital-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "automaticDelivery": {
            "type": "boolean"
          },
          "created": {
            "type": "boolean"
          },
          "errors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "linkAttached": {
            "type": "boolean"
          },
          "linkHost": {
            "type": [
              "string",
              "null"
            ]
          },
          "productId": {
            "type": [
              "string",
              "null"
            ]
          },
          "productTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "shopDomain": {
            "type": "string"
          },
          "variantId": {
            "type": [
              "string",
              "null"
            ]
          },
          "variantTitle": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "created",
          "shopDomain",
          "productId",
          "productTitle",
          "variantId",
          "variantTitle",
          "errors"
        ],
        "type": "object"
      },
      "title": "Create Digital Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Deprecated: use create-digital-product with its 'link' input instead. Creates an unpublished draft digital product that delivers an external link to the buyer.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "title": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "url": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title",
          "url"
        ],
        "type": "object"
      },
      "name": "create-digital-product-from-link",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "automaticDelivery": {
            "type": "boolean"
          },
          "created": {
            "type": "boolean"
          },
          "errors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "linkAttached": {
            "type": "boolean"
          },
          "linkHost": {
            "type": [
              "string",
              "null"
            ]
          },
          "productId": {
            "type": [
              "string",
              "null"
            ]
          },
          "productTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "shopDomain": {
            "type": "string"
          },
          "variantId": {
            "type": [
              "string",
              "null"
            ]
          },
          "variantTitle": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "created",
          "shopDomain",
          "productId",
          "productTitle",
          "variantId",
          "variantTitle",
          "errors",
          "linkAttached",
          "linkHost",
          "automaticDelivery"
        ],
        "type": "object"
      },
      "title": "Create Digital Product From Link"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_discounts",
              "write_products",
              "write_customers"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Create a percentage-based discount code for the connected Shopify store. Use this when the merchant wants to set up a new discount code with a specific percentage off — including one limited to particular products or to a collection — with optional minimum purchase or quantity requirements.\n\nSCOPE — what the discount applies to:\n- Call both search_products and search_collections on whatever the merchant named, even if the first one already matches — a product and a collection can share a name. If both match, ask the merchant which they meant rather than picking one.\n- Specific products (\"20% off the Snake Plant\", \"put these three items on sale\"): pass productIds with their product GIDs, up to 50 of them. Look the GIDs up with search_products or get-product first.\n- An existing collection (\"20% off everything in Summer Sale\"), or any set larger than 50 products: pass collectionId.\n- Every product in the store: omit both.\n- productIds and collectionId are mutually exclusive. Passing both is rejected before anything is created.\n\nDo NOT create a collection just to scope a discount to products. This tool discounts products directly in one call, so a collection made only as a stepping stone leaves the merchant with one they never asked for. This is not a restriction on create-collection itself: if the merchant asked for a collection, create it and then scope the discount to it with collectionId. What matters is why the collection exists — one the merchant wants is fine, one invented to work around productIds is not.\n\nBEFORE CALLING — get two answers from the merchant, in one message if both are missing. Do not call this tool until you have both, and do not fill either in yourself: there is no default start date and no default audience.\n- When the discount starts: right away, or on a specific date. Pass startsAt as an ISO 8601 timestamp: the current date and time for \"right away\", or the date the merchant chose.\n- Who can use it: every customer, or only certain customer segments. Pass customerEligibility=\"all_customers\" once the merchant confirms everyone, or customerSegments with the names of segments that exist on this store.\n\nOne exception: if the merchant wants the discount limited to a customer segment and you do not know which segments this store has, call with startsAt set and both customerEligibility and customerSegments omitted. Nothing is created; the tool replies with the store's segment names. Show them to the merchant, then call again with the one they choose.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "code": {
            "description": "The discount code customers will enter",
            "type": "string"
          },
          "collectionId": {
            "description": "Scope the discount to every product in a collection the merchant already has (e.g. gid://shopify/Collection/123). If the merchant named individual products instead, pass productIds — do not create a collection to hold them if the merchant did not ask for a collection to be created. Mutually exclusive with productIds. Omit both to discount every product in the store.",
            "type": "string"
          },
          "customerEligibility": {
            "description": "Set to \"all_customers\" once the merchant has explicitly confirmed they want this discount available to every customer. Ask them who the discount is for before calling this tool; never assume everyone. Mutually exclusive with customerSegments.",
            "enum": [
              "all_customers"
            ],
            "type": "string"
          },
          "customerSegments": {
            "description": "Customer segment names to scope the discount to (e.g. [\"VIP Customers\"]). Names must match (case-insensitive) segments that already exist on the connected store. Segments are merchant-defined — there are no built-in names like \"new_customers\" or \"returning_customers\", so never guess one. If the merchant wants a segment and you do not know which segments exist, call with startsAt set and both this field and customerEligibility omitted; the tool returns the segment names on this store instead of creating anything. Mutually exclusive with customerEligibility.",
            "items": {
              "type": "string"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          },
          "endsAt": {
            "description": "ISO 8601 end date (defaults to no end date)",
            "type": "string"
          },
          "minimumPurchaseAmount": {
            "description": "Minimum order subtotal required to use the discount (must be greater than 0). Mutually exclusive with minimumQuantity.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "minimumQuantity": {
            "description": "Minimum number of items required to use the discount. Mutually exclusive with minimumPurchaseAmount.",
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "percentage": {
            "description": "The discount percentage (1-100)",
            "maximum": 100,
            "minimum": 1,
            "type": "number"
          },
          "productIds": {
            "description": "Scope the discount to specific products. Use this whenever the merchant names the products the discount applies to. Pass full product GIDs (e.g. [\"gid://shopify/Product/123\"]), never bare numeric IDs or product titles; look them up with search_products or get-product first. At most 50 products — for a larger set, use a collection and pass collectionId. Mutually exclusive with collectionId. Omit both to discount every product in the store.",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "startsAt": {
            "description": "ISO 8601 start date. Ask the merchant when the discount should start before calling this tool. For a discount they want active right away, pass the current date and time; for a scheduled one, pass the date they chose. Never pick a date the merchant did not give you.",
            "type": "string"
          },
          "title": {
            "description": "The title of the discount",
            "type": "string"
          }
        },
        "required": [
          "title",
          "code",
          "percentage"
        ],
        "type": "object"
      },
      "name": "create-discount",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "appliesTo": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "collectionProducts": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currencyCode": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "variantTitle",
                "imageUrl",
                "price",
                "currencyCode",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "customerEligibility": {
            "enum": [
              "all_customers",
              "specific_segments"
            ],
            "type": "string"
          },
          "customerSegments": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "endsAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "minimumRequirement": {
            "type": "string"
          },
          "needsInput": {
            "additionalProperties": false,
            "properties": {
              "availableSegments": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "missingFields": {
                "items": {
                  "enum": [
                    "startsAt",
                    "customerEligibility"
                  ],
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "missingFields"
            ],
            "type": "object"
          },
          "percentage": {
            "type": "number"
          },
          "startsAt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "totalProductCount": {
            "type": "number"
          },
          "validationErrors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "title",
          "code",
          "percentage",
          "startsAt",
          "endsAt",
          "appliesTo",
          "minimumRequirement",
          "collectionProducts",
          "totalProductCount",
          "customerEligibility"
        ],
        "type": "object"
      },
      "title": "Create Discount"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products",
              "write_publications"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Create a new product in the connected Shopify store.\nIf create-product-interactive is available, prefer it over create-product.\nUse this when the user wants to add a product with a title, description, variants, images, or other product details.\n\nVARIANTS \u0026 OPTIONS:\n- When providing `variants`, you MUST also provide the `options` field as a string array of option names.\n- Example: for a single default variant use `options: ['Title']`, for Size/Color variants use `options: ['Size', 'Color']`.\n- The `options` field must be an array of strings (e.g. `['Size', 'Color']`), NOT an array of objects.\n- Each variant's `optionValues` must reference option names declared in the `options` array.\n\nINVENTORY TRACKING:\n- To enable inventory tracking on variants, set `inventoryItem: { tracked: true }` on each variant.\n- If omitted, inventory defaults to untracked and set-inventory will not work as expected.\n\nIMAGE REQUIREMENTS:\n- Images must be publicly accessible HTTPS URLs (e.g. https://example.com/photo.jpg).\n- Local file paths (e.g. /mnt/data/..., file://...) are NOT supported and will fail.\n- If you only have a local file or a generated image, ask the user for a publicly accessible HTTPS URL; this host cannot upload one.\n- Avoid placeholder or non-deterministic image URLs (e.g. picsum.photos) for real products.\n- The first image provided becomes the product's featured image.\n\nCOLLECTION:\n- Optionally pass `collectionId` to add the product to a collection after creation.\n- To add to multiple collections, use add-to-collection afterward.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "collectionId": {
            "description": "GID of a collection to add this product to after creation (e.g. gid://shopify/Collection/123). To add to multiple collections, use add-to-collection afterward.",
            "type": "string"
          },
          "descriptionHtml": {
            "description": "HTML description of the product",
            "type": "string"
          },
          "images": {
            "description": "Product images. Each image must have a publicly accessible HTTPS URL. The first image becomes the featured image.",
            "items": {
              "properties": {
                "altText": {
                  "description": "Image alt text",
                  "type": "string"
                },
                "url": {
                  "description": "Publicly accessible HTTPS image URL (e.g. https://cdn.example.com/photo.jpg). Local file paths are not supported.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "options": {
            "description": "Product option names as a string array. REQUIRED whenever `variants` is provided. For a single default variant use `['Title']`; for multiple option axes use e.g. `['Size', 'Color']`. Must be plain strings, not objects.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "productType": {
            "description": "The product type",
            "type": "string"
          },
          "status": {
            "default": "DRAFT",
            "description": "The product status (defaults to DRAFT)",
            "enum": [
              "ACTIVE",
              "DRAFT",
              "ARCHIVED"
            ],
            "type": "string"
          },
          "tags": {
            "description": "Tags for the product",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "description": "The product title",
            "type": "string"
          },
          "variants": {
            "description": "Product variants. If you provide this, you MUST also provide the top-level `options` field (use `['Title']` for a single default variant). Each variant's `optionValues` must reference names declared in `options`.",
            "items": {
              "properties": {
                "inventoryItem": {
                  "description": "Inventory item settings for this variant. Use this to enable inventory tracking when creating a product.",
                  "properties": {
                    "tracked": {
                      "description": "Whether inventory is tracked for this variant. Set to true to enable inventory management. Defaults to false if omitted.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "optionValues": {
                  "description": "Option values for this variant. Each `optionName` must be one of the names in the top-level `options` array.",
                  "items": {
                    "properties": {
                      "name": {
                        "description": "Option value",
                        "type": "string"
                      },
                      "optionName": {
                        "description": "Option name",
                        "type": "string"
                      }
                    },
                    "required": [
                      "optionName",
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "price": {
                  "description": "Variant price",
                  "type": "string"
                },
                "sku": {
                  "description": "Variant SKU",
                  "type": "string"
                },
                "title": {
                  "description": "Variant title",
                  "type": "string"
                }
              },
              "required": [
                "price"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "vendor": {
            "description": "The product vendor",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "name": "create-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "featuredImageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "images": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "altText": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "mediaId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "altText"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "totalInventory": {
            "type": "number"
          },
          "totalVariants": {
            "type": "number"
          },
          "variants": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "inventoryQuantity": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "title",
                "sku",
                "price",
                "inventoryQuantity"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "vendor": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "vendor",
          "status",
          "productType",
          "descriptionHtml",
          "tags",
          "totalInventory",
          "featuredImageUrl",
          "images",
          "totalVariants",
          "variants",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Create Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Create a new Shopify store the user can start building right away, without signing in or creating an account. Returns a link to preview it, and the store's domain, which is its ID for tool calls. It's where someone with no Shopify store connected starts when they want to sell something or start a business.\n\nWHEN TO USE:\n  - The user says they want to sell something, e.g. \"I want to sell handmade soy candles\", and has no Shopify store connected.\n  - The user wants to start a business, open a shop or start selling online, and has no Shopify store connected.\n  - The user asks you to create, make or build a store, and has no Shopify store connected.\n  - The user asks to see store designs, or what their store could look like, and has no Shopify store connected. A new store's preview link shows its design.\n  - The user wants to try building a store before signing up.\n\nA mockup or a described design is not a store; a store's design is its preview link.\n\nWHEN NOT TO USE:\n  - A store is already connected and the user wants to work on it. Call graphql_query and graphql_mutation without `store`.\n  - A store was already created in this conversation. Keep using its domain; a new one starts empty.\n\nBEFORE CALLING:\n  - Work out which country the user's business is in. Use it if the user has said, or if you already know where they are. Otherwise, ask them. If they don't say, call without `country`.\n\nAFTER CREATING:\n  - To show the user the store, give them the preview link. Until the store is saved to a Shopify account, don't show or link its domain to the user: it's only the store's ID for tool calls, and opening it in a browser doesn't show the preview.\n  - To make changes to the store, pass its domain as `store` to graphql_schema, graphql_query and graphql_mutation. They are the only tools that work on it, including for adding products: the other store tools need a sign-in and start one.\n\nAnyone with this store's address can view and edit it, and can get a link to save it, until it's saved to a Shopify account. Tell the user so, and that saving it keeps it.\nThe preview link works for about 30 minutes. When the user wants to see the store again, its products or a change you made after that, call get_preview_store_links with its domain and give them the new preview link. That call also gets a link to save the store to a Shopify account.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "country": {
            "description": "The country the user's business is in, as a two-letter ISO 3166-1 alpha-2 code in capitals, e.g. 'CA' for Canada or 'GB' for the United Kingdom (not 'UK'). Country names like 'Canada' and three-letter codes like 'CAN' are refused. It sets the store's country, currency and shipping zones, and test checkout in the preview only works when the store's country matches the user's. Pass it when the user has said where they or their business are, or when you already know where the user is, e.g. 'CA' if they say they're in Toronto. Don't guess it from the language they write in or the store's name. If you don't know, ask the user. If they don't say, omit it, and the store is created in the United States.",
            "type": "string"
          },
          "name": {
            "description": "Name for the store, e.g. 'Ember \u0026 Oak'. Use a name the user gave; omit it otherwise.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "create_store",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": "string"
          },
          "previewUrl": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "domain",
          "previewUrl"
        ],
        "type": "object"
      },
      "title": "Create Preview Store"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Find ready-made sample catalogs (from mock.shop) that fit the merchant's business, so they can pick one to seed their store with realistic products and collections instead of starting empty.\n\nWHEN TO USE:\n  - The merchant has a new or empty store and wants sample products, a starter catalog, demo data, or \"something to look at\" before adding their own products.\n  - The merchant describes what they sell (or plan to sell) and wants a store populated quickly.\n\nWHEN NOT TO USE:\n  - The merchant wants one-off placeholder products rather than a whole catalog — use find-sample-product.\n  - The merchant wants real products to source or resell — this returns sample data, not supplier inventory.\n  - The merchant wants to browse products already in their store — use search-products.\n\nINPUT: a short description of the business or what it sells (e.g. \"handmade soy candles\", \"supplies for a new puppy\", \"streetwear for teens\"). Take it from what the merchant said. If they gave no hint at all, ask one question — what do they plan to sell? — then call.\n\nOUTPUT: up to `limit` catalogs (default 3), best match first. Each has a name, short description, categories, collection titles, product and collection counts, currency, and a `storefrontUrl` the merchant can open to browse it as a live storefront. Present them as a short list with the storefront links and ask the merchant which one they want. Pass the chosen catalog's `subdomain` to import-mock-shop-catalog to copy it into their store. An empty list means nothing matched well — suggest the merchant describe their business differently.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "limit": {
            "description": "How many catalogs to return. Defaults to 3; leave unset unless the merchant asks for more options.",
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "What the merchant sells or plans to sell, in a few words (e.g. 'handmade soy candles', 'supplies for a new puppy'). Plain language; no need to singularize or reformat.",
            "maxLength": 500,
            "minLength": 1,
            "pattern": ".+",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "find-mock-shop-catalogs",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "catalogs": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "categories": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "collectionCount": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "collectionTitles": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "currencyCode": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "productCount": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "shortDescription": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "storefrontUrl": {
                  "type": "string"
                },
                "subdomain": {
                  "type": "string"
                }
              },
              "required": [
                "subdomain",
                "name",
                "shortDescription",
                "categories",
                "collectionTitles",
                "productCount",
                "collectionCount",
                "currencyCode",
                "storefrontUrl"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "query": {
            "type": "string"
          }
        },
        "required": [
          "query",
          "catalogs"
        ],
        "type": "object"
      },
      "title": "Find Mock Shop Catalogs"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Generate business name ideas for someone starting a Shopify store.\n\nWHEN TO USE:\n  - The user wants name ideas for a new business or store.\n  - The user has described a business but has not named it yet.\n  - The user has a name and wants alternatives in the same vein.\n\nWHEN NOT TO USE:\n  - The user already knows the name they want and only needs to set it — that is done in the Shopify admin, not here.\n  - The user wants a product name, a slogan, or a tagline rather than a business name.\n\nINPUT: a short description of the business in the user's own words — what they sell, who it is for, or the feeling they want ('hand-poured soy candles for dark, woody scents'). Max 255 characters. Pass what the user actually said; do NOT invent a business they have not described.\n\nEvery name comes back with a `signupUrl`, the link that acts on it, so present it rather than describing it. Where it goes depends on the user: with no Shopify store connected it opens store signup with the name already filled in; with a store connected it opens the store name setting in that store's Shopify admin, where they save the new name themselves. Either way the tool only hands back a link — it creates and renames nothing.\n\nA store name is not exclusive, so the user can take any of these for their store. Nothing here is verified, though — no trademark search, no business registry, no check of whether someone else is already trading under the name — so tell them to check that before building a brand on it.\n\nIf the user is building a PreviewStore and no store is connected, pass its domain as store. Each signupUrl then saves that PreviewStore to their Shopify account with the name they pick, rather than starting a second store. When the PreviewStore can't be saved yet, the links start a new store instead, and the response says so.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "description": {
            "description": "REQUIRED — always send this field. A short description of the business in the user's own words: what they sell ('hand-poured soy candles'), who it is for ('running gear for trail runners'), or the feeling the name should have ('something calm and coastal'). Max 255 characters — a longer value is refused and the user gets nothing. Use what the user actually said rather than inventing a business for them, and send the description itself, not a name you have already thought of.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          }
        },
        "required": [
          "description"
        ],
        "type": "object"
      },
      "name": "generate-business-names",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "suggestions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "signupUrl": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "description",
          "suggestions"
        ],
        "type": "object"
      },
      "title": "Generate Business Names"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Suggest available domain names for a Shopify store. Every domain returned has been checked against the domain registry and was available at the time of the call.\n\nWHEN TO USE:\n  - The user wants a domain for a business or store name.\n  - The user's preferred domain is taken and they want alternatives.\n  - The user asks whether a domain idea is available.\n  - The user wants to know what a domain costs.\n  - The user wants to buy or register a particular domain.\n\nWHEN NOT TO USE:\n  - The user wants to connect or troubleshoot a domain they already own — that is done in the Shopify admin, not here.\n  - The user only wants store-name ideas and does not care whether a domain is available or what it costs.\n\nINPUT: a store name, a domain the user has in mind, or a short description of the business. All three work.\nIf the user named a domain, the tool checks that exact domain, checks the same name at other common TLDs, and also returns 3 alternatives. An unusual TLD is fine — keep the one the user said. Pass the domain on its own as the query, or — when it sits inside a sentence — put it in exactDomain.\nIf the user named no domain, put the words the domain should be built from in storeName: a name the user proposed ('volcanic balloon', 'Ember \u0026 Oak'), or the subject of what they described ('a domain about hippos, giraffes, and iguanas' → 'hippos giraffes iguanas'). Four words at most, lead-in and connecting words dropped, in the user's own words rather than converted to a domain yourself. The tool compresses them into a domain and checks that the same way; without storeName there is no availability check for a query like that, only suggestions.\nOnly the exact domain checked can come back unavailable. Every other domain returned is available to buy, so do not describe any of them as taken, and do not say which TLDs were checked — an unlisted TLD may have been taken or may not have been quoted, and you cannot tell which.\n\nEvery domain on offer carries a `signupUrl`, the one link that buys it, so present it rather than describing it. Where it leads depends on whether a Shopify store is connected to the call, not on whether the user owns one. With a store connected, it opens that domain's purchase page in that store's Shopify admin, so buying it attaches the domain to the store rather than starting a second one; the response says when this applies. Without one, it opens store signup with the domain already selected, even for a user who says they already have a store.\n\nAvailability is a point-in-time check, not a hold. Tell the user to register a domain they want promptly, and never promise a domain is still available later in the conversation.\n\nPrices, where present, are the registry's quote for the first registration term in the stated currency. Renewal is priced separately and is often higher, so present a price as what registering costs today, not as an ongoing rate. A domain can come back without a price; say nothing about its cost rather than guessing, and in particular do not read a missing price as a domain that costs nothing. Every domain here has to be bought. Say a domain is \"available\" or \"unavailable\" — never that it is \"free\", which states a price rather than an availability and states it wrongly.\n\nIf the user is building a PreviewStore and no store is connected, pass its domain as store. Each signupUrl then saves that PreviewStore to their Shopify account and opens the domain's purchase there, rather than starting a second store. When the PreviewStore can't be saved yet, the links start a new store instead, and the response says so.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "exactDomain": {
            "description": "Optional. A full domain the USER named, TLD included, when the query is a sentence rather than the domain on its own: 'is fern.com available?' → 'fern.com'; 'can I get emberandoak.shop' → 'emberandoak.shop'. An unusual TLD is fine. This is the domain the tool reports a verdict on, so it must be one the user actually said — do NOT compose one from a name or a description, and do NOT guess a TLD they did not give. Use storeName for that instead; storeName and exactDomain are alternatives to each other, not a pair. Neither replaces query, which is always sent.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "query": {
            "description": "REQUIRED — always send this field, in every call. A store name ('Ember \u0026 Oak'), a domain the user has in mind ('emberandoak.com'), or a short description of the business ('hand-poured soy candles for dark, woody scents') — max 255 characters. Use what the user actually said; do NOT invent a business description they have not given you. When the whole query is a domain ('fern.com') it is checked as one; when the domain sits inside a sentence ('is fern.com available?'), name it in exactDomain as well. storeName and exactDomain are extras that go ALONGSIDE this field, never instead of it: a call without query is rejected and the user gets nothing.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "storeName": {
            "description": "Optional. The words the domain should be built from — at most 4 words, max 60 characters. Set it whenever the user gave you something to build on, whether they named it or described it: 'what would be a good domain name for volcanic balloon' → 'volcanic balloon'; 'i want something like Ember \u0026 Oak' → 'Ember \u0026 Oak'; 'i want a domain about hippos, giraffes, and iguanas' → 'hippos giraffes iguanas'; 'hand-poured soy candles for dark, woody scents' → 'soy candles'. Drop the lead-in and the connecting words, and keep it to 4 words or fewer — a longer value is refused and the user loses the availability check. Omit it when the user already named a domain; exactDomain is where that belongs. Send it in addition to query, never instead of it. Do NOT invent words the user has not said, and do NOT convert it to a domain: this tool compresses these words itself and needs the user's own words to tell them what it derived from.",
            "maxLength": 60,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "generate-domain-names",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "availableVariants": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "domain": {
                  "type": "string"
                },
                "price": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "signupUrl": {
                  "type": "string"
                }
              },
              "required": [
                "domain",
                "price",
                "currency",
                "signupUrl"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "checkedDomain": {
            "additionalProperties": false,
            "properties": {
              "available": {
                "type": "boolean"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "domain": {
                "type": "string"
              },
              "price": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signupUrl": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "domain",
              "available",
              "price",
              "currency",
              "signupUrl"
            ],
            "type": "object"
          },
          "query": {
            "type": "string"
          },
          "suggestions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "domain": {
                  "type": "string"
                },
                "price": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "signupUrl": {
                  "type": "string"
                }
              },
              "required": [
                "domain",
                "price",
                "currency",
                "signupUrl"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "query",
          "suggestions",
          "availableVariants"
        ],
        "type": "object"
      },
      "title": "Generate Domain Names"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve detailed information about a specific Shopify collection by its GID, including title, description, image, products, and rules (for smart collections). MUST be called whenever the user refers to a collection they own or previously created — regardless of phrasing. Trigger phrases include: \"my collection\", \"that collection\", \"the collection\", \"show me my collection\", \"get my collection\", or any reference to a previously created or known collection. \"Show\" and \"get\" mean the same thing here: always fetch live data from Shopify. Do NOT rely on memory or prior responses — always call this tool for the source of truth.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "description": "The collection GID (e.g. gid://shopify/Collection/123)",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "get-collection",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "collectionType": {
            "enum": [
              "manual",
              "smart"
            ],
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "imageAltText": {
            "type": [
              "string",
              "null"
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "products": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currencyCode": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "variantTitle",
                "imageUrl",
                "price",
                "currencyCode",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productsCount": {
            "type": "number"
          },
          "rules": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "appliedDisjunctively": {
                    "type": "boolean"
                  },
                  "rules": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string"
                        },
                        "relation": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "column",
                        "relation",
                        "condition"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "appliedDisjunctively",
                  "rules"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "sortOrder": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "descriptionHtml",
          "imageUrl",
          "imageAltText",
          "sortOrder",
          "collectionType",
          "productsCount",
          "products",
          "rules",
          "updatedAt",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Get Collection"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Show the merchant a card for a digital product: its media image, title, price, status, and what the buyer receives.\nCall this after each step of the digital product flow — after the price is set, after the file is attached, after the media image is added, and after publishing — so the merchant sees the listing as it stands. Every field is read back from Shopify, so the card is current rather than a summary of what was asked for.\nThis only reads. It changes nothing about the product.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "productId": {
            "description": "Product GID returned by create-digital-product.",
            "pattern": "^gid:\\/\\/shopify\\/Product\\/\\d+$",
            "type": "string"
          }
        },
        "required": [
          "productId"
        ],
        "type": "object"
      },
      "name": "get-digital-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "currencyCode": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "defaultVariant": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "files": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "bytes": {
                          "default": null,
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "bytes"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "id": {
                    "type": "string"
                  },
                  "links": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "deliveryUrl": {
                          "type": "string"
                        },
                        "name": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deliveryUrl",
                        "name"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "title",
                  "files",
                  "links"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "description": {
            "type": "string"
          },
          "mediaImageStatus": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "mediaImageUrl": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "productId": {
            "type": "string"
          },
          "shopDomain": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "shopDomain",
          "productId",
          "title",
          "description",
          "status",
          "price",
          "currencyCode",
          "mediaImageUrl",
          "mediaImageStatus",
          "defaultVariant"
        ],
        "type": "object"
      },
      "title": "Get Digital Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Report whether the Digital Products app is installed on the authenticated store.\nCall this once after the merchant says they have finished the Shopify Admin install flow that open-digital-products-install handed them. Do not poll it.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "type": "object"
      },
      "name": "get-digital-products-install-status",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "installed": {
            "type": "boolean"
          }
        },
        "required": [
          "installed"
        ],
        "type": "object"
      }
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_inventory",
              "write_locations"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve inventory levels for all variants of a product across locations. Use this when the user asks about stock quantities, inventory availability, or wants to see how much inventory is at each location for a given product.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "productId": {
            "description": "The product GID (e.g. gid://shopify/Product/123)",
            "type": "string"
          }
        },
        "required": [
          "productId"
        ],
        "type": "object"
      },
      "name": "get-inventory-levels",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "inventoryItems": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "available": {
                  "type": "number"
                },
                "committed": {
                  "type": "number"
                },
                "inventoryItemId": {
                  "type": "string"
                },
                "locationId": {
                  "type": "string"
                },
                "locationName": {
                  "type": "string"
                },
                "onHand": {
                  "type": "number"
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "variantTitle": {
                  "type": "string"
                }
              },
              "required": [
                "inventoryItemId",
                "locationId",
                "variantTitle",
                "sku",
                "locationName",
                "available",
                "committed",
                "onHand"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productTitle": {
            "type": "string"
          }
        },
        "required": [
          "productTitle",
          "inventoryItems"
        ],
        "type": "object"
      },
      "title": "Get Inventory Levels"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_orders",
              "read_all_orders",
              "write_customers",
              "write_fulfillments",
              "write_locations",
              "write_merchant_managed_fulfillment_orders"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve detailed information about a specific Shopify order including line items, fulfillment status, shipping address, and tracking. Use this when the user asks about a particular order's details or status.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "description": "The order GID (e.g. gid://shopify/Order/12345) or the order name exactly as it appears in Shopify admin. Order names often carry a shop-configured prefix or suffix, so letters and dashes are expected (e.g. 1022, #1022, EB-1022, 22420FP). Pass the name through as-is instead of stripping it down to digits.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "get-order",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "customerEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "customerName": {
            "type": [
              "string",
              "null"
            ]
          },
          "financialStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "fulfillmentStatus": {
            "type": "string"
          },
          "fulfillments": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "type": "string"
                },
                "locationName": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "trackingCompany": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trackingNumber": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trackingUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "status",
                "locationName",
                "trackingCompany",
                "trackingNumber",
                "trackingUrl",
                "createdAt"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "lineItems": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": "number"
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": "string"
                },
                "unitPrice": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "quantity",
                "unitPrice",
                "sku",
                "imageUrl",
                "variantTitle"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "shippingAddress": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "address1": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "address2": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "province": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "zip": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "address1",
                  "address2",
                  "city",
                  "province",
                  "country",
                  "zip"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtotalPrice": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "totalPrice": {
            "type": "string"
          },
          "totalTax": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "createdAt",
          "customerName",
          "customerEmail",
          "totalPrice",
          "subtotalPrice",
          "totalTax",
          "currencyCode",
          "financialStatus",
          "fulfillmentStatus",
          "tags",
          "lineItems",
          "shippingAddress",
          "fulfillments"
        ],
        "type": "object"
      },
      "title": "Get Order"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve detailed information about a specific Shopify product by its GID, including title, status, vendor, variants, images, tags, and inventory. MUST be called whenever the user refers to a product they own or previously created — regardless of phrasing. Trigger phrases include: \"my product\", \"that product\", \"the product\", \"show me my product\", \"get my product\", \"pull up the product\", \"open my product\", or any reference to a previously created or known product. \"Show\" and \"get\" mean the same thing here: always fetch live data from Shopify. Do NOT rely on memory or prior responses — always call this tool for the source of truth.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "description": "The full product GID in the form gid://shopify/Product/\u003cnumeric_id\u003e (e.g. gid://shopify/Product/123). Bare numeric IDs are NOT accepted — if you only have a product number, title, or SKU, call search-products first to look up the GID.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "get-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "featuredImageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "images": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "altText": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "mediaId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "altText"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "totalInventory": {
            "type": "number"
          },
          "totalVariants": {
            "type": "number"
          },
          "variants": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "inventoryQuantity": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "title",
                "sku",
                "price",
                "inventoryQuantity"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "vendor": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "vendor",
          "status",
          "productType",
          "descriptionHtml",
          "tags",
          "totalInventory",
          "featuredImageUrl",
          "images",
          "totalVariants",
          "variants",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Get Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve basic information about the connected Shopify store including name, domain, email, plan, currency, timezone, and country. Use this when you need store context to tailor advice (e.g. plan limitations, currency for pricing, timezone for scheduling), when the user asks about their store details, or to verify which store is connected.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "type": "object"
      },
      "name": "get-shop-info",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "country": {
            "type": "string"
          },
          "criticalUserMessage": {
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "planName": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "domain",
          "email",
          "planName",
          "currencyCode",
          "timezone",
          "country",
          "criticalUserMessage"
        ],
        "type": "object"
      },
      "title": "Get Shop Info"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Get new links for a PreviewStore: one to preview its storefront, and one to save it to a Shopify account.\n\nCall it when the user wants to see the store (the storefront, its products, or a change you made, e.g. \"can I see my store?\" or \"where are my products?\") and you have no preview link from the last about 30 minutes, which is how long one works. Also call it when a link no longer works, or the user lost the link to save the store.\n\nGive the user the preview link. Until the store is saved to a Shopify account, don't show or link its domain to the user: it's only the store's ID for tool calls, and opening it in a browser doesn't show the preview.\n\nAnyone with this store's address can view and edit it, and can get a link to save it, until it's saved to a Shopify account. Tell the user so, and that saving it keeps it.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "store": {
            "description": "Domain of the PreviewStore, e.g. k3f9a2x7.myshopify.com.",
            "type": "string"
          }
        },
        "required": [
          "store"
        ],
        "type": "object"
      },
      "name": "get_preview_store_links",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "claimUrl": {
            "anyOf": [
              {
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain": {
            "type": "string"
          },
          "previewUrl": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "domain",
          "previewUrl",
          "claimUrl"
        ],
        "type": "object"
      },
      "title": "Get Preview Store Links"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "read_all_orders",
              "read_analytics",
              "read_apps",
              "write_checkout_branding_settings",
              "write_checkouts",
              "read_companies",
              "write_content",
              "write_customers",
              "write_discounts",
              "write_draft_orders",
              "write_files",
              "write_fulfillments",
              "write_inventory",
              "read_legal_policies",
              "write_locales",
              "write_locations",
              "write_marketing_events",
              "write_markets",
              "write_merchant_managed_fulfillment_orders",
              "write_metaobject_definitions",
              "write_metaobjects",
              "write_online_store_navigation",
              "write_order_edits",
              "write_orders",
              "write_price_rules",
              "write_products",
              "write_publications",
              "read_reports",
              "write_returns",
              "read_rollouts",
              "write_shipping",
              "write_themes",
              "write_translations",
              "write_validations",
              "write_collective.access",
              "write_digital_products_product",
              "write_theme_agent.access"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Execute a GraphQL mutation against the Shopify Admin API when no dedicated built-in tool covers the request.\nBefore execution, call graphql_schema with operation 'mutation' to discover the exact mutation field and its arguments. Then use operation 'schema' and type_name to inspect unfamiliar input and return types, following nested named types as needed. Never guess fields. search_docs_chunks can supplement discovery with examples but never replaces it.\nSome dangerous mutations are blocked for safety (e.g. refunds, gift card writes, staff management, theme deletion, theme publishing). Theme file writes (themeFilesCopy, themeFilesUpsert) are allowed on unpublished themes only — writes that target the live/MAIN theme are blocked. If a mutation is blocked, inform the user and suggest they perform the action in Shopify admin.\nAfter constructing the mutation, call this tool to execute it. The host app will prompt the user for confirmation before executing. setup-mcp also validates the operation against its pinned Admin schema before sending it to Admin.\nAfter executing, present the results clearly rather than dumping raw JSON.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "description": "GraphQL mutation string",
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "variables": {
            "additionalProperties": {},
            "description": "GraphQL variables object",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "graphql_mutation",
      "title": "GraphQL Mutation (Advanced)"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "read_all_orders",
              "read_analytics",
              "read_apps",
              "write_checkout_branding_settings",
              "write_checkouts",
              "read_companies",
              "write_content",
              "write_customers",
              "write_discounts",
              "write_draft_orders",
              "write_files",
              "write_fulfillments",
              "write_inventory",
              "read_legal_policies",
              "write_locales",
              "write_locations",
              "write_marketing_events",
              "write_markets",
              "write_merchant_managed_fulfillment_orders",
              "write_metaobject_definitions",
              "write_metaobjects",
              "write_online_store_navigation",
              "write_order_edits",
              "write_orders",
              "write_price_rules",
              "write_products",
              "write_publications",
              "read_reports",
              "write_returns",
              "read_rollouts",
              "write_shipping",
              "write_themes",
              "write_translations",
              "write_validations"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Execute a read-only GraphQL query against the Shopify Admin API when no dedicated built-in tool covers the request.\nRaw schema introspection (__schema / __type) is not allowed through this tool. Use graphql_schema with operation 'query' to find an unknown query field or inspect its arguments and return type. Use operation 'schema' and type_name only for unfamiliar types needed by the query, including custom scalars whose value formats are unknown. Reuse schema details already discovered; skip built-in scalars (String, Int, Float, Boolean, ID). Never guess fields.\nAfter constructing the query, call this tool to execute it. The server validates Admin GraphQL against its pinned schema before sending the query to Admin. search_docs_chunks supplements schema discovery with examples but cannot replace it.\nEvery connection returns at most 100 items per page, whether first or last is a literal or a variable and however deeply nested; a larger page is refused before it runs. For more items select pageInfo { hasNextPage endCursor }, then use the returned endCursor as the after variable.\nPresent results clearly to the user rather than dumping raw JSON. For writes, discover the operation with graphql_schema using operation 'mutation', then use graphql_mutation.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "after": {
            "description": "Pagination cursor from a previous response's endCursor",
            "type": "string"
          },
          "first": {
            "default": 10,
            "description": "Number of items to return (1-100, default 10)",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "GraphQL query string",
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "variables": {
            "additionalProperties": {},
            "description": "GraphQL variables object",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "graphql_query",
      "title": "GraphQL Query (Advanced)"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "read_all_orders",
              "read_analytics",
              "read_apps",
              "write_checkout_branding_settings",
              "write_checkouts",
              "read_companies",
              "write_content",
              "write_customers",
              "write_discounts",
              "write_draft_orders",
              "write_files",
              "write_fulfillments",
              "write_inventory",
              "read_legal_policies",
              "write_locales",
              "write_locations",
              "write_marketing_events",
              "write_markets",
              "write_merchant_managed_fulfillment_orders",
              "write_metaobject_definitions",
              "write_metaobjects",
              "write_online_store_navigation",
              "write_order_edits",
              "write_orders",
              "write_price_rules",
              "write_products",
              "write_publications",
              "read_reports",
              "write_returns",
              "read_rollouts",
              "write_shipping",
              "write_themes",
              "write_translations",
              "write_validations"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Discover queries, mutations, and named types in the Shopify Admin GraphQL schema. This tool only inspects the schema; it never executes an operation. Every call needs operation or type_name; a call with neither is rejected.\nSet operation to 'query' or 'mutation' to list top-level field names, optionally filtered by a case-insensitive search. Supply an exact field_name to inspect its arguments, return type, and description; skip the name list if the field is already known.\nSet operation to 'schema' and type_name to a namedType returned by discovery to inspect one named type. Objects and interfaces list field names and return types; input objects list input fields and isOneOf without recursively expanding nested types. Enums list values, and unions/interfaces list possible types. Supply field_name for one field's or enum value's details.\nInspect only unfamiliar types needed by the operation, including custom scalars whose formats are unknown. Reuse discovered details and skip built-in scalars (String, Int, Float, Boolean, ID). Never guess fields. QueryRoot and Mutation must be discovered with operation 'query' or 'mutation'.\nAfter constructing an operation, call graphql_query or graphql_mutation to execute it. Those execution tools validate before sending the operation to Admin. search_docs_chunks supplements discovery with examples but never replaces it. Documentation questions go straight to search_docs_chunks.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "field_name": {
            "description": "Exact operation field, object/input field, or enum value to inspect",
            "minLength": 1,
            "type": "string"
          },
          "operation": {
            "description": "Discover query fields, mutation fields, or a named type. Send operation or type_name on every call",
            "enum": [
              "query",
              "mutation",
              "schema"
            ],
            "type": "string"
          },
          "search": {
            "description": "Case-insensitive substring to filter query or mutation names",
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "type_name": {
            "description": "Named type returned by discovery; required when operation is 'schema'",
            "minLength": 1,
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "graphql_schema",
      "title": "Explore GraphQL Schema"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products",
              "write_publications"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Copy a mock.shop sample catalog's starter set — its first 2 collections and up to 8 products from each (with variants, prices, images), so at most 16 products — into the merchant's connected store, publishing everything to the Online Store. Use it after the merchant picks a catalog from find-mock-shop-catalogs. One call does the whole import.\n\nRE-RUNNING IS SAFE AND NEVER OVERWRITES: calling again (after a timeout or `partial: true`) adds only what is missing — products not yet imported, memberships and publications not yet made. A product already imported from this catalog is left exactly as it is — including any edits the merchant has made since, and including whether it is published — and counted under `unchanged`; if it is not published, it is listed under `unpublished` for the merchant to publish or delete in Admin. A product the merchant already has at the same handle from elsewhere is left untouched and reported under `skipped`. A collection the merchant already has at the same handle is reused when its title matches the catalog's (missing imported products are added to it) and skipped when it does not. Collections are created only with their imported products, so none is ever left empty.\n\nINPUT: `subdomain` from the chosen catalog (e.g. \"pets\"). Nothing else.\n\nOUTPUT: counts of products created/unchanged/skipped and collections created/reused/skipped, and `currency`. If `partial` is true Shopify rate-limited the call: wait a few seconds, then call again with the same `subdomain`. Prices are copied as plain amounts; when `currency.mismatch` is true tell the merchant prices came from a ${currency.source} catalog and were not converted, so they should review them.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "subdomain": {
            "description": "The catalog's subdomain from find-mock-shop-catalogs (e.g. 'pets'). Not a URL.",
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9][a-z0-9-]*$",
            "type": "string"
          }
        },
        "required": [
          "subdomain"
        ],
        "type": "object"
      },
      "name": "import-mock-shop-catalog",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "catalogName": {
            "type": "string"
          },
          "collections": {
            "additionalProperties": false,
            "properties": {
              "created": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "reused": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "skipped": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "handle",
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "unpublished": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "handle",
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "created",
              "reused",
              "skipped",
              "unpublished"
            ],
            "type": "object"
          },
          "currency": {
            "additionalProperties": false,
            "properties": {
              "destination": {
                "type": "string"
              },
              "mismatch": {
                "type": "boolean"
              },
              "source": {
                "type": "string"
              }
            },
            "required": [
              "source",
              "destination",
              "mismatch"
            ],
            "type": "object"
          },
          "partial": {
            "type": "boolean"
          },
          "products": {
            "additionalProperties": false,
            "properties": {
              "created": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "processed": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "skipped": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "handle",
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "unchanged": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "unpublished": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "handle",
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "processed",
              "created",
              "unchanged",
              "skipped",
              "unpublished"
            ],
            "type": "object"
          },
          "subdomain": {
            "type": "string"
          }
        },
        "required": [
          "subdomain",
          "catalogName",
          "products",
          "collections",
          "partial",
          "currency"
        ],
        "type": "object"
      },
      "title": "Import Mock Shop Catalog"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_customers"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve a list of customers from the connected Shopify store, including name, email, phone, order count, and total spent. Use this when the user asks about their customers, wants to look up a specific customer, or needs customer data for analysis.\n\nSEARCH SYNTAX:\nWhen the user is looking for a specific customer (by name, email, tag, etc.), ALWAYS pass a structured `query` using Shopify's customer search syntax. Do NOT pass a bare free-text term like `Smith` for a name search — Shopify's default fields match addresses, tags, company names, and notes, which returns unrelated customers.\n\nField filters use `field:value`. Combine with `AND` / `OR` / `NOT`; parenthesize subqueries. Ranges use `:\u003c`, `:\u003c=`, `:\u003e`, `:\u003e=` on numeric / date fields.\n\nName lookups should query BOTH first and last name, e.g. for \"customers named Smith\" use `first_name:Smith OR last_name:Smith`.\n\nSupported filter fields:\n- Name: `first_name`, `last_name`\n- Contact: `email`, `phone`\n- Location: `country` (full name or code, e.g. `Canada` / `CA`)\n- Account state: `state` (`enabled` | `invited` | `disabled` | `declined`)\n- Marketing: `accepts_marketing` (boolean), `email_marketing_state` (`subscribed` | `not_subscribed` | `pending` | `invalid` | `redacted`)\n- Tags: `tag`, `tag_not`\n- Numeric (support ranges): `orders_count`, `total_spent`, `id`\n- Date (support ranges): `created_at`, `updated_at`, `order_date`, `last_abandoned_order_date` — use ISO 8601 in quotes, e.g. `created_at:\u003e'2024-01-01'`\n\nRECENCY OF ORDERS:\nTo filter by when a customer placed an order, use `order_date` — NOT `updated_at`. `order_date` matches customers who have at least one order within the given date range. `updated_at` is bumped by profile edits too, so it's a leaky proxy. For abandoned-checkout recency, use `last_abandoned_order_date`. Compose either with the same date syntax shown for `created_at` / `updated_at` above; for relative windows (\"last N days\"), compute the cutoff from the current date in your context.\n\nExamples:\n- `Find customers named Smith` → `first_name:Smith OR last_name:Smith`\n- `Customers with gmail addresses` → `email:*@gmail.com`\n- `Customers with more than 5 orders` → `orders_count:\u003e5`\n- `Customers from Canada` → `country:Canada`\n- `VIP customers` → `tag:vip`\n- `Subscribed to email` → `email_marketing_state:subscribed`\n\nIMPORTANT — invalid field names are silently ignored and return everything. Only use the fields listed above. Do NOT invent fields like `name:`, `full_name:`, `customer_name:`, or `city:`.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "first": {
            "default": 10,
            "description": "Number of customers to return (1-50, default 10).",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "Shopify customer search query. Use field filters like `first_name:Smith`, `last_name:Smith`, `email:*@gmail.com`, `tag:vip`, `country:Canada`, `orders_count:\u003e5`. For order recency use `order_date` — do NOT use `updated_at` as a proxy, since it's also bumped by profile edits. For abandoned-checkout recency use `last_abandoned_order_date`. Combine with AND/OR/NOT. For name lookups, search BOTH first_name and last_name (e.g. `first_name:Smith OR last_name:Smith`) — do NOT pass a bare name, which matches addresses, notes, tags, and company names and returns unrelated customers. Leave unset to list all customers.",
            "maxLength": 500,
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list-customers",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "customers": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "type": "string"
                },
                "currencyCode": {
                  "type": "string"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "firstName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "lastName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "ordersCount": {
                  "type": "number"
                },
                "phone": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "totalSpent": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "firstName",
                "lastName",
                "email",
                "phone",
                "ordersCount",
                "totalSpent",
                "currencyCode",
                "createdAt"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "customers"
        ],
        "type": "object"
      },
      "title": "List Customers"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_orders",
              "read_all_orders"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Retrieve recent orders from the connected Shopify store. Returns order name, customer, totals, financial and fulfillment status. Use this when the user asks about their orders, wants an overview of recent sales, or needs to find a specific order.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "first": {
            "description": "Number of orders to return (1-50, default 10)",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list-orders",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "orders": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "type": "string"
                },
                "currencyCode": {
                  "type": "string"
                },
                "customerName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "financialStatus": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "fulfillmentStatus": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "lineItemCount": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "totalPrice": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "createdAt",
                "customerName",
                "totalPrice",
                "currencyCode",
                "financialStatus",
                "fulfillmentStatus",
                "lineItemCount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "requestedCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalCount": {
            "type": "number"
          }
        },
        "required": [
          "orders",
          "totalCount",
          "requestedCount"
        ],
        "type": "object"
      },
      "title": "List Orders"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Get a Shopify Admin install link for Digital Products on the authenticated store.\nUse this only after the merchant has explicitly asked to install or prepare Digital Products for their store.\nThe app identity is fixed by Shopify; this tool cannot install arbitrary apps and does not install anything silently.\nRelay the link to the merchant and ask them to come back here once the install is done. They must complete the Shopify Admin install flow before Digital Products connector tools can continue; call get-digital-products-install-status once they say they have.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "type": "object"
      },
      "name": "open-digital-products-install",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "alreadyInstalled": {
            "type": "boolean"
          },
          "appDescription": {
            "type": "string"
          },
          "appImageUrl": {
            "format": "uri",
            "type": "string"
          },
          "appName": {
            "type": "string"
          },
          "installUrl": {
            "format": "uri",
            "type": "string"
          },
          "launchUrl": {
            "format": "uri",
            "type": "string"
          },
          "shopDomain": {
            "type": "string"
          },
          "shopHandle": {
            "type": "string"
          }
        },
        "required": [
          "appName",
          "appImageUrl",
          "appDescription",
          "shopDomain",
          "shopHandle",
          "installUrl",
          "launchUrl",
          "alreadyInstalled"
        ],
        "type": "object"
      },
      "title": "Install Digital Products"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Take a draft digital product live through Shopify Digital Products, so buyers can purchase and download it. Activates the product and requests its Online Store listing. Refuses to publish a product with nothing attached, so attach the file first with upload-digital-product-file. Digital Products does not report whether the Online Store listing succeeded, so tell the merchant to check the product in their Online Store if buyers cannot find it.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "productId": {
            "description": "Product GID returned by create-digital-product (e.g. gid://shopify/Product/123).",
            "pattern": "^gid:\\/\\/shopify\\/Product\\/\\d+$",
            "type": "string"
          },
          "title": {
            "description": "Title to publish under. Digital Products requires one and stores its own copy, so pass the product's current title unless the merchant asked to rename it — anything else silently renames the product.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "productId",
          "title"
        ],
        "type": "object"
      },
      "name": "publish-digital-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "errors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "onlineStoreConfirmed": {
            "const": false,
            "type": "boolean"
          },
          "productId": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": "boolean"
          },
          "shopDomain": {
            "type": "string"
          }
        },
        "required": [
          "published",
          "shopDomain",
          "productId",
          "onlineStoreConfirmed",
          "errors"
        ],
        "type": "object"
      },
      "title": "Publish Digital Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "read_reports"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Run a ShopifyQL analytics query. Returns tabular results with automatic chart visualization.\n\nIMPORTANT: Always use FROM...SHOW syntax. Use TIMESERIES for time charts, GROUP BY for categories.\n\n## Sales \u0026 Revenue\n- FROM sales SHOW gross_sales TIMESERIES day SINCE -30d UNTIL today\n- FROM sales SHOW orders, gross_sales, discounts, sales_reversals, net_sales, shipping_charges, taxes, total_sales TIMESERIES day SINCE -30d UNTIL today\n- FROM sales SHOW total_sales TIMESERIES day SINCE -30d UNTIL today COMPARE TO previous_period\n- FROM sales SHOW gross_sales, discounts, sales_reversals, net_sales, shipping_charges, taxes, total_sales\n- FROM sales SHOW average_order_value TIMESERIES day SINCE -30d UNTIL today\n\n## Orders\n- FROM sales SHOW orders TIMESERIES day SINCE -7d UNTIL today\n- FROM fulfillments SHOW orders_fulfilled, orders_shipped, orders_delivered TIMESERIES day SINCE -30d UNTIL today\n\n## Products\n- FROM sales SHOW gross_sales, net_sales, orders GROUP BY product_title ORDER BY gross_sales DESC LIMIT 10\n- FROM inventory SHOW starting_inventory_units, ending_inventory_units, inventory_units_sold, sell_through_rate GROUP BY product_title, product_variant_title\n\n## Customers\n- FROM sales SHOW returning_customers, customers, returning_customer_rate TIMESERIES day SINCE -30d UNTIL today\n- FROM sales SHOW new_customers, returning_customers TIMESERIES day SINCE -30d UNTIL today\n\n## Sessions \u0026 Conversion\n- FROM sessions SHOW sessions, online_store_visitors TIMESERIES day SINCE -30d UNTIL today\n- FROM sessions SHOW sessions, sessions_with_cart_additions, sessions_that_reached_checkout, sessions_that_completed_checkout, conversion_rate TIMESERIES day SINCE -30d UNTIL today\n- FROM sessions SHOW sessions GROUP BY session_device_type SINCE -30d UNTIL today\n- FROM sessions SHOW sessions GROUP BY session_country SINCE -30d UNTIL today\n\n## Marketing \u0026 Referrals\n- FROM sales SHOW orders, total_sales GROUP BY order_referrer_source, order_referrer_name SINCE -30d UNTIL today\n- FROM sessions SHOW sessions WHERE referrer_source = 'social' GROUP BY referrer_name SINCE -30d UNTIL today\n\n## Tables: sales, sessions, customers, fulfillments, inventory, payments. There is no orders table: count orders with FROM sales SHOW orders\n## Time grouping: TIMESERIES day/week/month. Category grouping: GROUP BY column\n## Comparison: COMPARE TO previous_period. Aggregates: WITH TOTALS, PERCENT_CHANGE",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "description": "The ShopifyQL query to execute",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "run-analytics-query",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "chartHint": {
            "additionalProperties": false,
            "properties": {
              "comparisonColumnIndex": {
                "type": "number"
              },
              "currencyCode": {
                "type": "string"
              },
              "type": {
                "enum": [
                  "line",
                  "bar"
                ],
                "type": "string"
              },
              "xAxisColumnIndex": {
                "type": "number"
              },
              "yAxisColumnIndices": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "yAxisFormat": {
                "enum": [
                  "money",
                  "number",
                  "percent"
                ],
                "type": "string"
              }
            },
            "required": [
              "type",
              "xAxisColumnIndex",
              "yAxisColumnIndices",
              "yAxisFormat"
            ],
            "type": "object"
          },
          "columns": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "dataType": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "dataType"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "currencyCode": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "rowCount": {
            "type": "number"
          },
          "rows": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "array"
          },
          "shopDomain": {
            "type": "string"
          },
          "summaryMetric": {
            "additionalProperties": false,
            "properties": {
              "changePercent": {
                "type": "number"
              },
              "label": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "required": [
          "query",
          "columns",
          "rows",
          "rowCount"
        ],
        "type": "object"
      },
      "title": "Run Analytics Query"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Search and browse collections on a Shopify store. Use this whenever the user wants to see, find, or look at collections in their store.\nTrigger phrases include: 'show me my collections', 'what collections do I have', 'list my collections', 'find a collection', 'search collections', or any reference to viewing multiple collections.\n'Show' and 'get' mean the same thing: always fetch live data from Shopify. Do NOT summarize from memory.\n\nUse this when the user wants to:\n    - list or search collections\n    - find a collection by name\n    - check what collections exist in their store\n    - find a collection GID to use with add-to-collection or create-product\n\nReturns collection data from the connected store via the Shopify Admin API.\n\nResults are capped at 50 per call. When `pageInfo.hasNextPage` is true, more matches exist than were returned. Tell the user you are showing the first N results and offer two paths: (a) load more via `after: pageInfo.endCursor`, or (b) refine the search with a stricter query. Only act on one of those paths when the user asks; do not auto-paginate.\n\nSEARCH SYNTAX:\nFree text matches across default fields (e.g. `summer`, `\"new arrivals\"`). Field filters use `field:value`. Combine with `AND` / `OR` / `NOT`; parenthesize subqueries. Ranges use `:\u003c`, `:\u003c=`, `:\u003e`, `:\u003e=` on numeric/date fields. Example: `collection_type:smart AND title:sale*`.\n\nIMPORTANT — invalid field names are silently ignored and return everything. Only use the fields listed below, as flat names. Do NOT invent dotted paths like `collection.title` or `rules.column`.\n\nSupported filter fields:\n- Text / exact: `title`, `handle`, `collection_type` (custom|smart)\n- Numeric (support ranges): `id`\n- Date (support ranges): `updated_at`, `published_at` — use ISO 8601 in quotes, e.g. `updated_at:\u003e'2024-01-01'`\n- ID: `product_id` (collections containing the given product)\n- Publication: `published_status` (e.g. `published`, `unpublished`, `online_store_channel`)\n\nNote: there is no server-side filter for product count, rules, or sort order. For those, filter by `collection_type` and inspect the returned `productsCount` / `sortOrder` fields client-side, or narrow with `title:` / `handle:`.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "after": {
            "description": "Cursor for pagination. Use the endCursor from a previous response to fetch the next page.",
            "type": "string"
          },
          "first": {
            "default": 10,
            "description": "Number of collections to return (1-50, default 10)",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "reverse": {
            "description": "Reverse the sort order (e.g. most recently updated first with UPDATED_AT + reverse)",
            "type": "boolean"
          },
          "search_query": {
            "description": "Search query to filter collections. Uses Shopify search syntax: free text, field filters (`title:Sale`, `collection_type:smart`, `updated_at:\u003e'2024-01-01'`), and AND/OR/NOT. See the tool description for the full list of valid filter fields. Invalid fields are silently ignored and return all collections.",
            "maxLength": 500,
            "type": "string"
          },
          "sort_key": {
            "description": "Sort key for results. Use RELEVANCE only when search_query is provided.",
            "enum": [
              "TITLE",
              "UPDATED_AT",
              "ID",
              "RELEVANCE"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "search_collections",
      "title": "Search Collections"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "This tool will take in the user prompt, search shopify.dev, and return relevant documentation and code examples that will help answer the user's question.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "api_name": {
            "description": "The API name to filter search results by. Pass the same API name you used with learn_shopify_api (e.g., 'polaris-admin-extensions', 'pos-ui', 'admin'). This filters results to only return documentation for that specific API surface.",
            "type": "string"
          },
          "max_num_results": {
            "description": "Maximum number of results to return from the search. Do not pass this when calling the tool for the first time, only use this when you want to limit the number of results deal with small context window issues.",
            "type": "number"
          },
          "prompt": {
            "description": "The search query for Shopify documentation",
            "type": "string"
          }
        },
        "required": [
          "prompt"
        ],
        "type": "object"
      },
      "name": "search_docs_chunks",
      "title": "search_docs_chunks"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Search and browse products on a Shopify store. MUST be called whenever the user wants to see, find, or look at products in their store.\nTrigger phrases include: 'show me my products', 'what products do I have', 'list my products', 'browse my catalog', 'find a product', 'search for', or any reference to viewing multiple products.\n'Show' and 'get' mean the same thing: always fetch live data from Shopify. Do NOT summarize from memory.\n\nUse this when the user wants to:\n    - list or search products\n    - look up a specific product by ID or handle\n    - check product status or details\n    - browse what's in their catalog\n\nReturns product data from the connected store via the Shopify Admin API.\n\nResults are capped at 50 per call. When `pageInfo.hasNextPage` is true, more matches exist than were returned. Tell the user you are showing the first N results and offer two paths: (a) load more via `after: pageInfo.endCursor`, or (b) refine the search with a stricter query. Only act on one of those paths when the user asks; do not auto-paginate.\n\nSEARCH SYNTAX:\nFree text matches across default fields (e.g. `shoes`, `\"green hoodie\"`). Field filters use `field:value`. Combine with `AND` / `OR` / `NOT`; parenthesize subqueries. Ranges use `:\u003c`, `:\u003c=`, `:\u003e`, `:\u003e=` on numeric/date fields. Example: `price:\u003c=25 AND status:active`.\n\nIMPORTANT — invalid field names are silently ignored and return everything. Only use the fields listed below, as flat names. Do NOT invent dotted paths like `variants.price`, `product.tag`, or `variant.sku`.\n\nSupported filter fields:\n- Text / exact: `title`, `vendor`, `product_type`, `handle`, `sku`, `barcode`, `variant_title`, `tag`, `tag_not`, `status` (active|archived|draft)\n- Numeric (support ranges): `price` (matches products with ANY variant whose price satisfies the condition), `inventory_total`, `id`, `variant_id`\n- Date (support ranges): `created_at`, `updated_at`, `published_at` — use ISO 8601 in quotes, e.g. `created_at:\u003e'2024-01-01'`\n- Boolean: `gift_card`, `bundles`, `is_price_reduced`, `out_of_stock_somewhere`, `tracks_inventory`, `has_only_default_variant`\n- ID: `collection_id`, `category_id`\n\nPrice examples (cross-variant semantics):\n- `price:\u003c=25` — products with at least one variant priced $25 or less\n- `price:\u003e100 price:\u003c=500` — products with at least one variant in $100–$500\n- `price:25` — products with at least one variant priced exactly $25\n\nSHOULD populate `search_summary` with a concise but descriptive plain-text heading in the user's language. Use a noun phrase that identifies the results as products instead of repeating only the search term—for example, \"Your sneaker products\", not \"Your sneakers\". The widget displays this text verbatim, so do not use Markdown.\n\nFor a min/max of every variant or a product-wide price band, this tool cannot express it server-side; tell the user and suggest narrowing with `price:` plus another filter (e.g. `product_type:`, `vendor:`, `tag:`).",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "after": {
            "description": "Cursor for pagination. Use the endCursor from a previous response to fetch the next page.",
            "type": "string"
          },
          "first": {
            "default": 10,
            "description": "Number of products to return (1-50, default 10)",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "reverse": {
            "description": "Reverse the sort order (e.g. newest first with CREATED_AT + reverse)",
            "type": "boolean"
          },
          "search_query": {
            "description": "Search query to filter products. Uses Shopify search syntax: free text, field filters (`status:active`, `vendor:Nike`, `price:\u003c=25`, `tag:sale`), and AND/OR/NOT. See the tool description for the full list of valid filter fields. Invalid fields are silently ignored and return all products.",
            "maxLength": 500,
            "type": "string"
          },
          "search_summary": {
            "description": "Concise but descriptive plain-text heading for these product results, written in the user's language. Identify the result type instead of repeating only the search term (for example, \"Your sneaker products\", not \"Your sneakers\"). The widget displays this text verbatim.",
            "maxLength": 160,
            "minLength": 1,
            "type": "string"
          },
          "sort_key": {
            "description": "Sort key for results. Use RELEVANCE only when search_query is provided.",
            "enum": [
              "TITLE",
              "PRODUCT_TYPE",
              "VENDOR",
              "INVENTORY_TOTAL",
              "UPDATED_AT",
              "CREATED_AT",
              "PUBLISHED_AT",
              "ID",
              "RELEVANCE"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "search_products",
      "title": "Search Products"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_inventory",
              "write_locations",
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Set the available inventory quantity for a specific inventory item at a given location. Always call get-inventory-levels first to get the inventoryItemId, locationId, and current available quantity. Pass the current quantity as compareQuantity so the update fails safely if stock changed since you read it.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "compareQuantity": {
            "description": "The current available quantity from get-inventory-levels. The update will fail if stock has changed since the read, preventing accidental overwrites.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "inventoryItemId": {
            "description": "The inventory item GID (e.g. gid://shopify/InventoryItem/123)",
            "type": "string"
          },
          "locationId": {
            "description": "The location GID (e.g. gid://shopify/Location/456)",
            "type": "string"
          },
          "quantity": {
            "description": "The new quantity to set as available",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reason": {
            "default": "correction",
            "description": "Why the inventory is being changed. Defaults to 'correction'. Use 'received' for new shipments, 'restock' for returns, 'shrinkage' for lost/stolen/damaged, 'damaged' for damaged goods, 'cycle_count_available' for cycle counts, or 'other' if none apply.",
            "enum": [
              "correction",
              "cycle_count_available",
              "damaged",
              "movement_created",
              "movement_updated",
              "movement_received",
              "movement_canceled",
              "other",
              "promotion",
              "quality_control",
              "received",
              "reservation_created",
              "reservation_deleted",
              "reservation_updated",
              "restock",
              "safety_stock",
              "shrinkage"
            ],
            "type": "string"
          }
        },
        "required": [
          "inventoryItemId",
          "locationId",
          "quantity",
          "compareQuantity"
        ],
        "type": "object"
      },
      "name": "set-inventory",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "inventoryItemId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "locationName": {
            "type": "string"
          },
          "productDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "productTitle": {
            "type": "string"
          },
          "quantityAfterChange": {
            "type": "number"
          },
          "quantitySet": {
            "type": "number"
          },
          "variantTitle": {
            "type": "string"
          }
        },
        "required": [
          "inventoryItemId",
          "locationId",
          "locationName",
          "quantitySet",
          "quantityAfterChange",
          "productTitle",
          "productDescription",
          "variantTitle",
          "imageUrl"
        ],
        "type": "object"
      },
      "title": "Set Inventory"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Switch to a different Shopify store. Call this tool whenever the user wants to work with a different store — including when they ask to fetch data, manage products, or perform any action on another shop. Revokes the current store's access token so the next tool call will prompt authorization for a new store. IMPORTANT: You must always make a follow-up tool call after this tool returns. If the user requested a specific action (e.g. fetch products), call that tool next. Otherwise, you MUST call get-shop-info to complete the shop switch.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "type": "object"
      },
      "name": "switch-shop",
      "title": "Switch Shop"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Verify that the connected store can exchange its Admin token and reach the Digital Products connector. This read-only check returns no credentials or connector data.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "type": "object"
      },
      "name": "test-digital-products-connection",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "connected": {
            "const": true,
            "type": "boolean"
          },
          "connectorUrl": {
            "type": "string"
          },
          "installedApp": {
            "additionalProperties": false,
            "properties": {
              "handle": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "handle"
            ],
            "type": "object"
          },
          "shopDomain": {
            "type": "string"
          }
        },
        "required": [
          "connected",
          "shopDomain",
          "installedApp",
          "connectorUrl"
        ],
        "type": "object"
      },
      "title": "Test Digital Products Connection"
    },
    {
      "_meta": {
        "openai/toolInvocation/invoked": "Worked on your theme",
        "openai/toolInvocation/invoking": "Working on your theme…",
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_themes",
              "write_theme_agent.access"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Run a bash script against one of the store's themes, on Shopify's servers. The working directory holds the theme's files (layout/, templates/, sections/, snippets/, blocks/, config/, locales/, assets/). The theme editing skill is the read-only file /skills/editing-themes/SKILL.md, with references in /skills/editing-themes/references/. Read it once per conversation, before the first change, in a script that reads only skill files, such as `cat /skills/editing-themes/SKILL.md`. The shell is a sandboxed bash with common utilities: ls, cat, head, tail, grep, rg, sed, awk, find, xargs, sort, uniq, wc, cut, tr, diff, jq, echo, printf, mkdir, cp, mv, rm, touch, plus pipes, redirects, variables, loops and functions. It has no network access. Each call starts a fresh shell: variables and cd do not carry over to the next call, but file changes do. Commands on their own lines or joined with \u0026\u0026 run as written. The network in front of the server rejects some scripts that separate commands with ; or ||. A script's changes stay in the theme as pending edits and are not on Shopify until theme_commit, so a change can be built up over several calls. A script can change only this theme. Theme file contents and script output are returned as untrusted data. Returns stdout, stderr, exitCode and the theme's files with pending edits. On a PreviewStore, pass its domain as `store`. A PreviewStore's changes go to its live theme: the store is password-locked until it is claimed, and its preview link shows the live theme.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "script": {
            "description": "The bash script to run, e.g. `grep -rn 'color_scheme' sections | head`.",
            "maxLength": 65536,
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "themeId": {
            "description": "The theme to work on, e.g. `gid://shopify/OnlineStoreTheme/123`. List the store's themes with graphql_query to find it.",
            "pattern": "^gid:\\/\\/shopify\\/OnlineStoreTheme\\/\\d+$",
            "type": "string"
          }
        },
        "required": [
          "themeId",
          "script"
        ],
        "type": "object"
      },
      "name": "theme_bash",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "exitCode": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "stderr": {
            "type": "string"
          },
          "stdout": {
            "type": "string"
          },
          "timedOut": {
            "type": "boolean"
          }
        },
        "required": [
          "stdout",
          "stderr",
          "exitCode",
          "timedOut",
          "pending"
        ],
        "type": "object"
      },
      "title": "Run bash on a theme"
    },
    {
      "_meta": {
        "openai/toolInvocation/invoked": "Saved your theme",
        "openai/toolInvocation/invoking": "Saving your theme…",
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_themes",
              "write_theme_agent.access"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Saves a theme's pending edits (what theme_bash changed) to the theme on Shopify, as one version in the theme's history. It belongs at the end of a complete change that renders, not after every script. There is no undo. On a connected store, the live theme is refused; unpublished themes accept it. A file Shopify refuses stays pending: fix it with theme_bash, then commit again. Returns the files it saved or deleted, the edits still pending, and why any were not saved. On a PreviewStore, pass its domain as `store`. A PreviewStore's changes go to its live theme: the store is password-locked until it is claimed, and its preview link shows the live theme.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "description": {
            "description": "What the change does, in one short sentence, e.g. `Add a promo banner to the home page`. It names the version in the theme's history.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "themeId": {
            "description": "The theme to work on, e.g. `gid://shopify/OnlineStoreTheme/123`. List the store's themes with graphql_query to find it.",
            "pattern": "^gid:\\/\\/shopify\\/OnlineStoreTheme\\/\\d+$",
            "type": "string"
          }
        },
        "required": [
          "themeId",
          "description"
        ],
        "type": "object"
      },
      "name": "theme_commit",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "commit": {
            "type": [
              "string",
              "null"
            ]
          },
          "deleted": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pending": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pushErrors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rejectedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "saved": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "commit",
          "saved",
          "deleted",
          "pending",
          "pushErrors",
          "rejectedReason"
        ],
        "type": "object"
      },
      "title": "Save a theme's edits"
    },
    {
      "_meta": {
        "openai/toolInvocation/invoked": "Published your theme",
        "openai/toolInvocation/invoking": "Publishing your theme…",
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_themes",
              "write_theme_agent.access"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Make one of the store's themes its live theme, the one every visitor to the online store sees. The theme that was live stays in the store, unpublished. This tool is called only after the user has said yes, in this conversation, to publishing this theme. Ask them first, name the theme, and wait for their answer. A request to edit or save a theme is not a request to publish it. A theme with pending edits is refused: save them with theme_commit first. Returns whether the theme is live now, and why not if it is not. On a PreviewStore, pass its domain as `store`, the same one you passed to theme_bash.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "themeId": {
            "description": "The theme to work on, e.g. `gid://shopify/OnlineStoreTheme/123`. List the store's themes with graphql_query to find it.",
            "pattern": "^gid:\\/\\/shopify\\/OnlineStoreTheme\\/\\d+$",
            "type": "string"
          },
          "userConfirmed": {
            "const": true,
            "description": "Set to `true` only when the user has said yes, in this conversation, to publishing this theme. Ask them before you set it. A request to edit or save the theme is not a yes.",
            "type": "boolean"
          }
        },
        "required": [
          "themeId",
          "userConfirmed"
        ],
        "type": "object"
      },
      "name": "theme_publish",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "pending": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "published": {
            "type": "boolean"
          },
          "rejectedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "themeId": {
            "type": "string"
          },
          "userErrors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "themeId",
          "published",
          "pending",
          "userErrors",
          "rejectedReason"
        ],
        "type": "object"
      },
      "title": "Publish a theme"
    },
    {
      "_meta": {
        "openai/toolInvocation/invoked": "Took a screenshot",
        "openai/toolInvocation/invoking": "Taking a screenshot…",
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_themes",
              "write_theme_agent.access"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Take a screenshot of one page of a store's theme, as a customer sees it, and return the image. It shows the theme with theme_bash's pending edits, before theme_commit saves them, so you can check a change first. Use it to check a design change, or to see a theme before you change it. The theme does not need to be published. On a PreviewStore, pass its domain as `store`, the same one you passed to theme_bash. Without `store`, it shows a theme on the connected store, which doesn't have a PreviewStore's themes.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "path": {
            "default": "/",
            "description": "The storefront page to capture, e.g. `/`, `/collections/all` or `/products/blue-shirt`.",
            "maxLength": 2048,
            "type": "string"
          },
          "store": {
            "description": "Domain of the PreviewStore to use, e.g. k3f9a2x7.myshopify.com. Omit to use the connected store.",
            "type": "string"
          },
          "themeId": {
            "description": "The theme to capture, e.g. `gid://shopify/OnlineStoreTheme/123`. List the store's themes with graphql_query to find it.",
            "pattern": "^gid:\\/\\/shopify\\/OnlineStoreTheme\\/\\d+$",
            "type": "string"
          },
          "viewport": {
            "default": "desktop",
            "description": "desktop is 1440 pixels wide. mobile is 390 pixels wide. both takes one of each, desktop first: use it only when you need to compare them, since it takes twice as long.",
            "enum": [
              "desktop",
              "mobile",
              "both"
            ],
            "type": "string"
          }
        },
        "required": [
          "themeId"
        ],
        "type": "object"
      },
      "name": "theme_screenshot",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "path": {
            "type": "string"
          },
          "previewLinkOnClick": {
            "default": false,
            "type": "boolean"
          },
          "previewUrl": {
            "anyOf": [
              {
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "themeId": {
            "type": "string"
          },
          "viewport": {
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string"
          },
          "width": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "themeId",
          "path",
          "viewport",
          "width",
          "previewUrl",
          "previewLinkOnClick"
        ],
        "type": "object"
      },
      "title": "Take a theme screenshot"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Update an existing collection's title, description, image, sort order, or rules.\nUse this when the user wants to modify, change, or edit collection details.\nTrigger phrases include: \"update my collection\", \"change the collection\", \"edit the collection\", \"rename the collection\".\n\nIMAGE REQUIREMENTS:\n- Images must be publicly accessible HTTPS URLs (e.g. https://example.com/photo.jpg).\n- Local file paths (e.g. /mnt/data/..., file://...) are NOT supported and will fail.\n- If you only have a local file or a generated image, ask the user for a publicly accessible HTTPS URL; this host cannot upload one.\n- Avoid placeholder or non-deterministic image URLs (e.g. picsum.photos) for real collections.\n\nSMART COLLECTION RULES:\n- Pass `ruleSet` to update the rules for a smart collection.\n- Common rule columns: TAG, VENDOR, TYPE, TITLE, VARIANT_PRICE.\n- Common relations: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GREATER_THAN, LESS_THAN.\n- Passing `ruleSet` replaces all existing rules. Omitting it leaves rules unchanged.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "descriptionHtml": {
            "description": "New HTML description of the collection",
            "type": "string"
          },
          "id": {
            "description": "The collection GID (e.g. gid://shopify/Collection/123)",
            "type": "string"
          },
          "image": {
            "description": "New collection image. Must be a publicly accessible HTTPS URL.",
            "properties": {
              "altText": {
                "description": "Image alt text",
                "type": "string"
              },
              "url": {
                "description": "Publicly accessible HTTPS image URL for the collection",
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "ruleSet": {
            "description": "Updated rules for a smart collection. Replaces all existing rules.",
            "properties": {
              "appliedDisjunctively": {
                "description": "true = products match ANY rule (OR), false = products match ALL rules (AND)",
                "type": "boolean"
              },
              "rules": {
                "items": {
                  "properties": {
                    "column": {
                      "description": "Rule column: TAG, VENDOR, TYPE, TITLE, VARIANT_PRICE, etc.",
                      "type": "string"
                    },
                    "condition": {
                      "description": "The value to match against (e.g. \"sale\", \"Nike\", \"50\")",
                      "type": "string"
                    },
                    "relation": {
                      "description": "Rule relation: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GREATER_THAN, LESS_THAN",
                      "type": "string"
                    }
                  },
                  "required": [
                    "column",
                    "relation",
                    "condition"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "appliedDisjunctively",
              "rules"
            ],
            "type": "object"
          },
          "sortOrder": {
            "description": "New sort order for products in the collection",
            "enum": [
              "ALPHA_ASC",
              "ALPHA_DESC",
              "BEST_SELLING",
              "CREATED",
              "CREATED_DESC",
              "MANUAL",
              "PRICE_ASC",
              "PRICE_DESC"
            ],
            "type": "string"
          },
          "title": {
            "description": "New collection title",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "update-collection",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "collectionType": {
            "enum": [
              "manual",
              "smart"
            ],
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "imageAltText": {
            "type": [
              "string",
              "null"
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "products": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "currencyCode": {
                  "type": "string"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "variantTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "title",
                "variantTitle",
                "imageUrl",
                "price",
                "currencyCode",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productsCount": {
            "type": "number"
          },
          "rules": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "appliedDisjunctively": {
                    "type": "boolean"
                  },
                  "rules": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string"
                        },
                        "relation": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "column",
                        "relation",
                        "condition"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "appliedDisjunctively",
                  "rules"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "sortOrder": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "descriptionHtml",
          "imageUrl",
          "imageAltText",
          "sortOrder",
          "collectionType",
          "productsCount",
          "products",
          "rules",
          "updatedAt",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Update Collection"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Update an existing product's title, description, status, images, variant pricing, or variant option values (e.g. color, size names).\nUse this when the user wants to modify, change, or edit product details — including status, variant prices, option values, or images.\nTrigger phrases include: 'update my product', 'change the price', 'edit the product', 'modify my product', 'rename the variant', 'change the color name'.\n\nIMAGE REQUIREMENTS:\n- Images must be publicly accessible HTTPS URLs (e.g. https://example.com/photo.jpg).\n- Local file paths (e.g. /mnt/data/..., file://...) are NOT supported and will fail.\n- If you only have a local file or a generated image, ask the user for a publicly accessible HTTPS URL; this host cannot upload one.\n- Avoid placeholder or non-deterministic image URLs (e.g. picsum.photos) for real products.\n\nREPLACING IMAGES:\n- To replace specific images, first use get-product to find the mediaId of the image(s) to remove.\n- Pass those mediaId values in removeMediaIds, and provide the new images in the images array.\n- To remove images without adding new ones, pass removeMediaIds without images.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "descriptionHtml": {
            "description": "New product description in HTML",
            "type": "string"
          },
          "id": {
            "description": "The product GID (e.g. gid://shopify/Product/123)",
            "type": "string"
          },
          "images": {
            "description": "Images to add to (or replace on) the product. Each image must have a publicly accessible HTTPS URL.",
            "items": {
              "properties": {
                "altText": {
                  "type": "string"
                },
                "url": {
                  "description": "Publicly accessible HTTPS image URL (e.g. https://cdn.example.com/photo.jpg). Local file paths are not supported.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "removeMediaIds": {
            "description": "Media IDs to remove from the product before adding new images (e.g. ['gid://shopify/MediaImage/123']). Use get-product to find media IDs for existing images.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "description": "New product status",
            "enum": [
              "ACTIVE",
              "ARCHIVED",
              "DRAFT"
            ],
            "type": "string"
          },
          "title": {
            "description": "New product title",
            "type": "string"
          },
          "variants": {
            "description": "Variant updates (id required, plus price/sku/compareAtPrice/optionValues)",
            "items": {
              "properties": {
                "compareAtPrice": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "optionValues": {
                  "description": "Option values to update on this variant (e.g. [{optionName: 'Color', name: 'Red'}])",
                  "items": {
                    "properties": {
                      "name": {
                        "description": "The new value for this option (e.g. 'Red', 'Large')",
                        "type": "string"
                      },
                      "optionName": {
                        "description": "The name of the product option (e.g. 'Color', 'Size')",
                        "type": "string"
                      }
                    },
                    "required": [
                      "optionName",
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "price": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "update-product",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "currencyCode": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "featuredImageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "images": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "altText": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "mediaId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "altText"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "productType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "totalInventory": {
            "type": "number"
          },
          "totalVariants": {
            "type": "number"
          },
          "variants": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "inventoryQuantity": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "price": {
                  "type": "string"
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "title",
                "sku",
                "price",
                "inventoryQuantity"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "vendor": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "vendor",
          "status",
          "productType",
          "descriptionHtml",
          "tags",
          "totalInventory",
          "featuredImageUrl",
          "images",
          "totalVariants",
          "variants",
          "currencyCode"
        ],
        "type": "object"
      },
      "title": "Update Product"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_digital_products_product",
              "write_products",
              "read_apps"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Give the merchant a Shopify Admin link for attaching the downloadable file to a digital product they have already created.\nCall this after create-digital-product, passing back the product and variant identifiers it returned.\nThis host cannot take a file from the merchant, so the attachment is finished in the Digital Products app rather than here. Relay the link this returns and ask the merchant to report back here once the upload is done; nothing tells this conversation on its own.\nThis does not create products and does not publish anything.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "productId": {
            "description": "Product GID returned by create-digital-product.",
            "pattern": "^gid:\\/\\/shopify\\/Product\\/\\d+$",
            "type": "string"
          },
          "productTitle": {
            "description": "Product title returned by create-digital-product.",
            "minLength": 1,
            "type": "string"
          },
          "variantId": {
            "description": "Variant GID returned by create-digital-product.",
            "pattern": "^gid:\\/\\/shopify\\/ProductVariant\\/\\d+$",
            "type": "string"
          },
          "variantTitle": {
            "description": "Variant title returned by create-digital-product.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "productId",
          "productTitle",
          "variantId",
          "variantTitle"
        ],
        "type": "object"
      },
      "name": "upload-digital-product-file",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "adminUploadUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "maxFileBytes": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "productId": {
            "type": "string"
          },
          "productTitle": {
            "type": "string"
          },
          "shopDomain": {
            "type": "string"
          },
          "variantId": {
            "type": "string"
          },
          "variantTitle": {
            "type": "string"
          }
        },
        "required": [
          "shopDomain",
          "productId",
          "productTitle",
          "variantId",
          "variantTitle",
          "maxFileBytes",
          "adminUploadUrl"
        ],
        "type": "object"
      },
      "title": "Upload Digital Product File"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "scopes": [
              "write_products",
              "write_files"
            ],
            "type": "oauth2"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Give the merchant a Shopify Admin link for adding a media image to a digital product they have already created.\nAsk the merchant whether they want a media image first, and only call this if they say yes. A digital product sells perfectly well without one.\nThis host cannot take an image from the merchant, so it is added on the product's page in Shopify Admin rather than here. Relay the link this returns and ask the merchant to report back here once the image is added; nothing tells this conversation on its own.\nThis does not change the price, description, attached file or status, and it does not publish anything.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "productId": {
            "description": "Product GID returned by create-digital-product.",
            "pattern": "^gid:\\/\\/shopify\\/Product\\/\\d+$",
            "type": "string"
          },
          "productTitle": {
            "description": "Product title returned by create-digital-product.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "productId",
          "productTitle"
        ],
        "type": "object"
      },
      "name": "upload-digital-product-media",
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "adminUploadUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "productId": {
            "type": "string"
          },
          "productTitle": {
            "type": "string"
          },
          "shopDomain": {
            "type": "string"
          }
        },
        "required": [
          "shopDomain",
          "productId",
          "productTitle",
          "adminUploadUrl"
        ],
        "type": "object"
      },
      "title": "Upload Digital Product Media Image"
    },
    {
      "_meta": {
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      },
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Compatibility no-op for clients that still call this tool. It always returns success and does not validate GraphQL syntax or schema.\n\nFor Admin GraphQL, graphql_query and graphql_mutation validate operations against setup-mcp's pinned Admin schema immediately before execution.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "api": {
            "default": "admin",
            "description": "The GraphQL API to use. Valid options are:\n- 'admin': Write or explain Admin GraphQL queries and mutations for apps and integrations that extend the Shopify admin. Use this when the user wants to understand, design, or generate the operation itself. Prefer `admin-execution` instead when the user explicitly wants to run the operation against 'my store', 'this store', a store domain, or a warehouse/location, including simple store-result reads and multi-step store workflows that first look up IDs from handles, SKUs, or location names.\n- 'storefront-graphql': Use for custom storefronts requiring direct GraphQL queries/mutations for data fetching and cart operations. Choose this when you need full control over data fetching and rendering your own UI. NOT for Web Components - if the prompt mentions HTML tags like \u003cshopify-store\u003e, \u003cshopify-cart\u003e, use storefront-web-components instead.\n- 'partner': The Partner API lets you programmatically access data about your Partner Dashboard, including your apps, themes, and affiliate referrals.\n- 'customer': The Customer Account API allows customers to access their own data including orders, payment methods, and addresses.\n- 'payments-apps': The Payments Apps API enables payment providers to integrate their payment solutions with Shopify's checkout.\n- 'functions_cart_checkout_validation': GraphQL schema for Cart and Checkout Validation Function input queries\n- 'functions_cart_transform': GraphQL schema for Cart Transform Function input queries\n- 'functions_delivery_customization': GraphQL schema for Delivery Customization Function input queries\n- 'functions_discount': GraphQL schema for Discount Function input queries\n- 'functions_discounts_allocator': GraphQL schema for Discounts Allocator Function input queries\n- 'functions_fulfillment_constraints': GraphQL schema for Fulfillment Constraints Function input queries\n- 'functions_local_pickup_delivery_option_generator': GraphQL schema for Local Pickup Delivery Option Generator Function input queries\n- 'functions_order_discounts': GraphQL schema for Order Discounts Function input queries\n- 'functions_order_routing_location_rule': GraphQL schema for Order Routing Location Rule Function input queries\n- 'functions_payment_customization': GraphQL schema for Payment Customization Function input queries\n- 'functions_pickup_point_delivery_option_generator': GraphQL schema for Pickup Point Delivery Option Generator Function input queries\n- 'functions_product_discounts': GraphQL schema for Product Discounts Function input queries\n- 'functions_shipping_discounts': GraphQL schema for Shipping Discounts Function input queries\nDefault is 'admin'.",
            "enum": [
              "admin",
              "storefront-graphql",
              "partner",
              "customer",
              "payments-apps",
              "functions_cart_checkout_validation",
              "functions_cart_transform",
              "functions_delivery_customization",
              "functions_discount",
              "functions_discounts_allocator",
              "functions_fulfillment_constraints",
              "functions_local_pickup_delivery_option_generator",
              "functions_order_discounts",
              "functions_order_routing_location_rule",
              "functions_payment_customization",
              "functions_pickup_point_delivery_option_generator",
              "functions_product_discounts",
              "functions_shipping_discounts"
            ],
            "type": "string"
          },
          "codeblocks": {
            "description": "Array of GraphQL code blocks with content and optional artifact metadata",
            "items": {
              "properties": {
                "artifactId": {
                  "description": "Stable id assigned to the generated code artifact. Use the same artifactId when retrying validation on modified code to track iterations.",
                  "type": "string"
                },
                "content": {
                  "description": "The GraphQL code block content which should contain raw GraphQL code (e.g., 'query { shop { name } }'), NOT markdown-formatted code blocks with backticks",
                  "type": "string"
                },
                "revision": {
                  "description": "Monotonic revision number for the artifact. Start with 1 for new code, increment for each retry/iteration on the same artifactId. This helps track validation retries vs new validations.",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "content"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "codeblocks"
        ],
        "type": "object"
      },
      "name": "validate_graphql_codeblocks",
      "title": "validate_graphql_codeblocks"
    }
  ]
}
