| name | dynamicweb-product-query-creator |
| description | Design, validate, and generate Dynamicweb 10 product queries for administration use and follow-up dashboard work. Use when the user wants to build, fix, refactor, or explain Dynamicweb product queries in either the manual UI model or the MCP payload model. |
Dynamicweb Product Query Creator
Objective
Create reliable Dynamicweb product queries that match the current create_or_update_product_queries MCP tool.
Read First
Load references/product-query-authoring.md before building or changing a query.
Core Tools
get_standard_fields
get_product_category_fields
get_macro_fields
get_completion_rules
get_product_queries
create_or_update_product_queries
Workflow
- capture the intent in plain language
- discover available fields from the API before writing any expression
- if completeness matters, load real completion rule IDs from
get_completion_rules
- choose whether the query logic should be strict (
And) or broad (Or)
- build the payload using only confirmed field system names
- validate
sourceIndex in Repo|Index format
- return the final payload and any follow-up widget payloads if needed
Output Contract
Always return:
- query intent summary
- clause table
- final
ProductQueryModel payload
- widget payloads if the user also asked for dashboard widgets
- validation notes and assumptions
Guardrails
- Never assume field system names.
- Never assume completion rule IDs.
- Keep query names lowercase with underscores.
- If the query needs unsupported Dynamicweb test value types such as Parameter or Macro test values, say so clearly and recommend the Dynamicweb UI.
Reference
See references/product-query-authoring.md.