Commerce
setInventory
Set Inventory
Set the on-hand inventory count on a product (turns inventory tracking on) or on one variant.
Ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "set shilajit stock to 40", and it calls setInventory.
Example call
The MCP tools/call params, with the required arguments only.
{
"arguments": {
"appId": "<appId>",
"quantity": 1
},
"name": "setInventory"
}Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.productIdstringoptionalThe product ID to set total inventory on.quantityintegerrequiredThe absolute on-hand count.variantIdstringoptionalThe variant ID to set inventory on.
Returns
The registry does not declare a return shape.
Declared limits
quantity: minimum 0quantity: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- set shilajit stock to 40
- we have 12 of the 50ML left
- restock this item
Pair it with
The verbs that finish the job.
Questions
What does setInventory do?
Set the on-hand inventory count on a product (turns inventory tracking on) or on one variant. It is one of the tools The Cloud MCP server gives every connected AI.
How do I use setInventory 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 "set shilajit stock to 40", and it calls setInventory.
Is setInventory safe to let an AI call?
setInventory 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.