Skip to main content
Glama

Update Rules on Imported Product

dsers_product_update_rules

Modify pricing, content, images, or variant rules for imported dropshipping products. Apply incremental updates to product data while preserving unchanged elements.

Instructions

Update pricing, content, images, or variant rules on an already-imported product. Rules are merged incrementally: pricing/images/variant_overrides replace by family; content merges by field (set title_prefix without losing description). To clear a content field, send it as empty string or null (e.g. title_prefix:''). To remove an entire family, pass null (e.g. rules_json='{"pricing":null}'). option_edits are always fully replaced (ordered operations, not mergeable). OPTION_EDITS actions: rename_option {action,option_name,new_name} — rename e.g. Color→Style. rename_value {action,option_name,value_name,new_name} — rename a value within an option. remove_value {action,option_name,value_name} — remove value and DELETE all variants with that value. remove_option {action,option_name} — remove entire option dimension. RESPONSE: compact preview with active_rules showing all currently applied rules. If rule persistence to DSers backend fails, job status is set to persist_failed and subsequent push will be blocked. Retry the rule update or re-import the product.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesJob ID from a previous dsers_product_import call.
rules_jsonNoRules as JSON string. Keys: pricing, content, images, variant_overrides, option_edits. PRICING: {mode:'fixed_price',fixed_price:9.99} | {mode:'multiplier',multiplier:2} | {mode:'fixed_markup',fixed_markup:5}. VARIANT_OVERRIDES: [{match:'Red',sell_price:9.99,compare_at_price:19.99}]. CONTENT: {title_override, title_prefix, title_suffix, description_override_html, tags_add:['tag']}. Content fields merge individually — set title_prefix without losing description. Clear with '' or null. IMAGES: {drop_indexes, reorder, add_urls, keep_first_n}. OPTION_EDITS (always full replacement): [{action:'rename_option',option_name:'Color',new_name:'Style'},{action:'rename_value',option_name:'Color',value_name:'Red',new_name:'Crimson'},{action:'remove_value',option_name:'Color',value_name:'Gray'},{action:'remove_option',option_name:'Size'}]. Only include families you want to change. Others are preserved automatically.
pricing_modeNoFlat param: pricing mode. Use instead of rules_json for simple pricing.
pricing_multiplierNoFlat param: multiplier value when pricing_mode='multiplier'.
pricing_fixed_markupNoFlat param: markup in dollars when pricing_mode='fixed_markup'.
pricing_fixed_priceNoFlat param: exact price in dollars when pricing_mode='fixed_price'.
title_overrideNoFlat param: replace entire product title.
title_prefixNoFlat param: prepend to product title.
title_suffixNoFlat param: append to product title.
description_override_htmlNoFlat param: replace full description (HTML).
description_append_htmlNoFlat param: append HTML to description.
target_storeNoStore ID or name from dsers_store_discover.
visibility_modeNobackend_only (default, safe) or sell_immediately (live — confirm with user).
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate non-read-only, non-destructive, non-idempotent, open-world hints. The description adds substantial behavioral context beyond annotations: explains incremental merging rules, clearing mechanisms, option_edits replacement behavior, response format (compact preview), failure states (persist_failed blocks subsequent push), and retry/re-import recovery options. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately front-loaded with core purpose, followed by detailed behavioral rules. Every sentence adds value: merging rules, clearing methods, option_edits actions, response format, and error handling. Slightly dense but well-structured for a complex tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with no output schema, the description provides comprehensive behavioral details (merging, clearing, failure states) and parameter semantics. It covers key aspects like incremental updates and error recovery, though doesn't explicitly document all 13 parameters' usage scenarios or sibling tool relationships.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the baseline is 3. The description adds meaningful semantic context: clarifies rules_json structure (keys, merging behavior, clearing rules), explains option_edits actions with examples, and distinguishes between rules_json and flat parameters. However, it doesn't fully detail all 13 parameters' interactions beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Update') and resource ('pricing, content, images, or variant rules on an already-imported product'), distinguishing it from siblings like dsers_product_import (import new) or dsers_product_delete (remove). It specifies this is for incremental rule updates rather than full replacements.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context ('on an already-imported product') and mentions retry scenarios, but doesn't explicitly state when to use this versus alternatives like dsers_product_import for new products or dsers_rules_validate for validation. It provides operational guidance but lacks comparative sibling differentiation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lofder/dsers-mcp-product'

If you have feedback or need assistance with the MCP directory API, please join our Discord server