Commerce
setOptionRule
Set Option Rule
State a rule BETWEEN two option choices: when whenChoiceId is selected, hidesChoiceId is unavailable (e.g.
Ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "when someone picks vegan, remove cream cheese frosting", and it calls setOptionRule.
Example call
The MCP tools/call params, with the required arguments only.
{
"arguments": {
"appId": "<appId>",
"hidesChoiceId": "<hidesChoiceId>",
"whenChoiceId": "<whenChoiceId>"
},
"name": "setOptionRule"
}Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.hidesChoiceIdstringrequiredChoice B: unavailable while choice A is selected.productIdstringoptionalHold the rule on this one product. Omit for every product.removebooleanoptionaltrue takes the rule away. Defaults false.whenChoiceIdstringrequiredChoice A: the choice that, once selected, hides B.
Returns
The registry does not declare a return shape.
Ask for it
The Cloud routes these requests to this verb.
- when someone picks vegan, remove cream cheese frosting
- these two options can't go together
Pair it with
The verbs that finish the job.
Questions
What does setOptionRule do?
State a rule BETWEEN two option choices: when whenChoiceId is selected, hidesChoiceId is unavailable (e.g. It is one of the tools The Cloud MCP server gives every connected AI.
How do I use setOptionRule from Claude or ChatGPT?
Connect your AI to The Cloud at https://mcp.thecloud.so/mcp and sign in once. Then ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "when someone picks vegan, remove cream cheese frosting", and it calls setOptionRule.
Is setOptionRule safe to let an AI call?
setOptionRule changes your workspace. What an AI creates is Private until you share it.
Connect
One endpoint gives your AI this tool and every other one: connect Claude, ChatGPT, Cursor or Gemini, read what The Cloud is, or see pricing.