update_setting
Update a single setting value in a WooCommerce store. First retrieve valid setting IDs and options via get_settings, then apply the new value.
Instructions
Update a single setting value. Use get_settings first to find the setting ID and valid options. Example: group_id='general', setting_id='woocommerce_currency', value='INR'.
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": {
"group_id": "<group_id>",
"setting_id": "<setting_id>",
"value": "<value>"
},
"name": "update_setting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | New value for the setting | |
| fields | No | Comma-separated fields to return in response | |
| group_id | Yes | Setting group ID | |
| setting_id | Yes | Setting ID within the group |