MyProduct: Calculate Price by Pricing Rule
simulate_pricing_rule[Pricing Rule]
[What it does] Simulates the selling price and compare-at price that the store's Pricing Rule would compute for a DSers-managed product's mapped variants in a given destination country and cost, without writing anything back.
[When to use] Use when the user wants to preview what price a Pricing Rule would produce before actually applying it, such as after a cost or destination change.
[When not to use] To actually write the live price, use update_managed_store_product. To view or edit the rule itself, use get_pricing_rule/update_pricing_rule.
[How to use] dsers_product_id and ship_to (2-letter country code) are required. Optionally list specific sales_product_variant_id values with an optional cost override (defaults to the mapped supplier cost); omitting the list simulates all mapped variants. Unmapped variants never appear in the results.
[Side effects] None; read-only and never writes back to the product.
[Confirmation] Not required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dsers_product_id": "<dsers_product_id>",
"ship_to": "<ship_to>"
},
"name": "simulate_pricing_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ship_to | Yes | Required two-letter destination country code used to select the applicable mapping and calculate the Pricing Rule, for example US. | |
| dsers_product_id | Yes | Exact DSers-managed product ID copied from list_managed_store_products items[].dsers_product_id. Required. | |
| sales_product_variant_list | No | Optional sales product variants to calculate. Omit this field to calculate all mapped variants. Paste JSON example: [{"cost":"12.50","currency":"USD","sales_product_variant_id":"45382179012608"}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable result summary | |
| operation | Yes | Stable operation name | |
| mapping_type | Yes | Product mapping type | |
| dsers_product_id | Yes | DSers managed product ID | |
| toolcall_response_at | Yes | UTC timestamp when the Tool response was returned, formatted as RFC3339. | |
| sales_product_variant_list | Yes | Calculated prices by sales product variant |