Create and publish a data product using the Snowplow CLI MCP tool
This page shows a typical interaction pattern. In this example, the AI assistant is helping build a new data product, with new data structures and source application.
Import Snowplow context
Always ensure get_context is called at the start of your conversation. If you don't see it happen, then ask for it.
Example prompt:
Please call get_context before we start working.
The assistant will retrieve the built-in schemas and rules that define how Snowplow components should be structured.
Create a new data structure
Example prompt:
Create a data structure for tracking when users view a product page.
Include properties for product ID, product name, category, and price.
The assistant will:
- Generate a proper UUID for the data structure
- Create a valid event schema following Snowplow conventions
- Save the file locally to the appropriate location
- Automatically validate the created structure and report any issues
You can iterate if needed. Example prompt:
The price should be optional, not required.
Also add a description field.
The assistant will modify the structure, and validate again.
Create a new data product
Example prompt:
Create a data product for ecommerce product interactions. Include:
- The existing product page views that you just made
- Add to cart events
- A source application for our website
- Proper validation of all components
The assistant will:
- Create the necessary additional data structures for events
- Create a source application definition
- Create a data product linking everything together
- Validate and cross-reference all the components together
Publish to Console
All files are created locally. When you're ready to publish to Console, use the standard Snowplow CLI commands:
snowplow-cli data-structures publish
snowplow-cli data-products publish