Read shop
shop_readReads the shop of the site for its owner: categories, products, variations, stock, orders and their statuses, product comments and currencies, and the unfinished basket of a site user. Nothing is sold or paid in the chat. Full buyer data is only in the complete form of an order (order_get, or invoices_list with detail=full).
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": {
"action": "<action>"
},
"name": "shop_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Goods, category, comment, or basket line id. | |
| cnt | No | Quantity of the product that get shows the details for; 1 by default. | |
| ids | No | Ids separated by commas (invoice_*: order ids, also separated by |; stock_remove). | |
| pid | No | Parent category id. | |
| date | No | invoices_list created period date1|date2. | |
| hide | No | Hide flag or invoices_list group. | |
| page | No | List page, from 1. | |
| pnum | No | Goods list page, the earlier name of page; page wins when both are set. | |
| sort | No | Goods list sort field. | |
| view | No | Goods list view. Default usergoods when user_id is given, otherwise allgoods. | |
| cdate | No | invoices_list delivery period date1|date2. | |
| f_art | No | ||
| order | No | List asc/desc or order hash. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| detail | No | Record form of a paged list. brief (default): the fields that identify a record, without descriptions and HTML; for products id, title up to 120 characters, status (visible or hidden), date added (UTC, ISO 8601), public URL, price, stock, category id and an excerpt up to 200 characters. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from. | |
| f_name | No | Goods name filter (plain; MCP encodes Base64). | |
| f_warr | No | ||
| offset | No | Records to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next. | |
| status | No | Order status code. | |
| f_brand | No | ||
| f_price | No | Price filter MIN|MAX|CUR. | |
| f_stock | No | ||
| inv_sum | No | invoices_list sum1|sum2. | |
| site_id | No | Site to read: site_id from list_sites. Without it the call reads the site chosen with select_site; pass it when several sites or chats are in use. | |
| user_id | No | Site user id: a list filter, or the user whose goods or basket are read. | |
| f_status | No | ||
| f_weight | No | ||
| goods_id | No | Wishlist goods id (get). | |
| per_page | No | Records per page: 1-50, 20 by default, larger values count as 50. | |
| parent_id | No | Synonym for pid / category_list parent. | |
| payment_id | No | ||
| delivery_id | No | ||
| get_globals | No | 1 = global categories in category_list. | |
| group_courier | No | ||
| variation_crc | No | Variation hash from variations_list. |