Draft a product
create_productCreate a DRAFT product in the store. Nothing goes live: show the user the draft (name, description, price) and ask them to approve before calling publish. Pass the store's agent_key (returned by open_store).
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": {
"agent_key": "<agent_key>",
"name": "<name>",
"description": "<description>",
"price_usd": "<price_usd>"
},
"name": "create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name, e.g. 'Inbox Triage' | |
| type | No | What kind of product it is | |
| agent_key | Yes | The store's agent key (rpy_…), returned by open_store | |
| price_usd | Yes | Price in US dollars, paid in USDC (1 USDC = 1 USD) | |
| description | Yes | One or two sentences buyers will read | |
| delivery_url | No | Optional https link buyers get after paying (file, repo, Notion page, ...). The owner can instead upload the file itself in the dashboard. |