Для AI-агентов: markdown этой страницы — /docs/mcp-catalog.mdиндекс документации — /llms.txt
MCP: catalog
Обновлено
Определения инструментов. Обновляйте tools/list после изменения прав. required_scopes: ALL.
assign_catalog_item_to_group
Put a catalog item (`item_id`) into a catalog group (`group_id`); an item may sit in several groups. Optional `sort` orders it inside the group. Repeating it only updates `sort`. Read memberships back in get_catalog_item `groups`.
Scopes (ALL): ["catalog:write"]. Risk: "write".
create_catalog_group
Create a catalog group for the active business. Returns its `id`; put products into it with assign_catalog_item_to_group.
Scopes (ALL): ["catalog:write"]. Risk: "write".
delete_catalog_group
Delete a catalog group by its `id`; assigned products remain.
Scopes (ALL): ["catalog:write"]. Risk: "destructive".
delete_catalog_item
Soft-delete a catalog item by its `id`: it leaves the showcase, storefront and listings and can no longer be bought; existing orders keep their own item snapshot. Repeating it returns deleted:true. Undo with publish_entity intent RESTORE. To only pause sales, patch `is_active:false` instead.
Scopes (ALL): ["catalog:write"]. Risk: "destructive".
get_catalog
List all live catalog items (cursor-paginated; deleted excluded) with reach pair `is_active`/`is_public`: `is_active:false` = off, sold by nothing; both true = in the showcase, offer freely; `is_public:false` = link-only, never volunteer it. Every item carries `is_create_order_on_click`: whether a click on it creates the order at once. `public_url` is the ready storefront page to share (null while the item is off or link-only). `mini_app_links` (telegram / max / vk) open this page AS the mini app for a post, a broadcast or an old bot: copy the one you need, never build one yourself. A channel the business has not connected has `url: null` and a `reason`; a page that is switched off or link-only (not volunteered) answers `page_not_published` on every channel. `zone` (ru/com) selects price presentation and the public_url domain, default ru.
Scopes (ALL): ["catalog:read"]. Risk: "read".
get_catalog_group
Read one catalog group by its `id`.
Scopes (ALL): ["catalog:read"]. Risk: "read".
get_catalog_item
Read one catalog item by its `id`; the response carries the `etag` you pass to update it, its `groups`, `is_create_order_on_click` (whether a click on the item creates the order at once), `public_url` (storefront page, null while off or link-only), `mini_app_links` (the same page as the Telegram / MAX / VK mini app: copy, never build) and `delivery` — what the buyer receives after payment: `{message_content_id, kind}` or null. To set or replace the delivery (text, a file via media_refs, or a link in the text) call publish_entity with target_topic 'catalog', intent 'REPLACE', replace_target {kind:'delivery', id}. `external_refs` is its ids in outside systems (`{getcourse: {offer_id}}`) or null. `related` is its «С этим берут» list in carousel order — `{id, title, is_visible}`, `is_visible:false` on an offered item the buyer does not see now; set it with set_related_items. `zone` (ru/com) selects price presentation, default ru.
Scopes (ALL): ["catalog:read"]. Risk: "read".
list_catalog_groups
List catalog groups with their `id`, reach state, sort order and item count.
Scopes (ALL): ["catalog:read"]. Risk: "read".
list_variant_combinations
List the priced combinations of one product (catalog_id): each combination with its combination_key, selected_options, prices per currency and stock. Use the combination_key to change prices with manage_variant_combinations or stock with set_stock.
Scopes (ALL): ["catalog:read"]. Risk: "read".
manage_variant_combinations
Change the priced combinations of one product (catalog_id): action upsert or remove. A combination picks one option on every select:single axis (selected_options) and carries its own absolute prices per currency; the combinations not listed stay. At most 5 axes and 50 combinations, otherwise VARIANT_LIMIT_EXCEEDED. Read the current ones with list_variant_combinations and send its version as expected_version; combinations changed since then are refused with PRECONDITION_FAILED, and the answer carries the new version.
Scopes (ALL): ["catalog:write"]. Risk: "write".
onboarding_execute_first_payment
Execute the owner-approved preparation receipt, save its exact catalog price and send a real purchase card. Card delivery does not confirm payment. Optional: payment setup is not part of the mandatory onboarding path and never blocks onboarding_complete.
Scopes (ALL): ["catalog:write","payments:config"]. Risk: "money".
onboarding_prepare_first_payment
Prepare a paid version of the delivered test product and show its exact price and provider for owner approval. product_id is the id of that test product, as returned by create_quest_product or onboarding_check_test_product. This does not charge money. Optional: payment setup is not part of the mandatory onboarding path and never blocks onboarding_complete.
Scopes (ALL): ["catalog:write","payments:config"]. Risk: "money".
remove_catalog_item_from_group
Take a catalog item (`item_id`) out of a catalog group (`group_id`); the item and the group both remain.
Scopes (ALL): ["catalog:write"]. Risk: "write".
sale_preset_apply
Set up a ready recipe in one call: specialist, consultation_free_zoom, consultation_paid_zoom, office_hourly, cottage_daily, event_free, event_tickets, event_online. A booking recipe creates the business point (from address), the resource with working weeks for this month and the next, and the booking service; an event recipe creates the ticket types and a draft event linked to them. Pass what the recipe needs: prices (the catalog price list, not all zero) for a paid one, start_at, stream_url, address, capacity where it asks. A paid recipe takes money now when a payment provider is connected, otherwise after the order (payment_timing pay_later, with a notice). Applying the same recipe again adds only what is missing and switches the recipe's pay_later positions to pay_now once a provider is connected (a pay_now position whose provider is gone is left as it is; sale_readiness_check reports it); it changes nothing else you edited, and answers an empty changes list when everything is in place. Each change names the entity, its id (seq_num), before (null when created) and after. Then check with sale_readiness_check. A Zoom recipe does not connect Zoom: connect it with the meeting provider tools.
Scopes (ALL): ["booking:write","catalog:write","events:write"]. Risk: "write".
sale_readiness_check
Check what keeps the business from selling: every problem at once, not the first one. Omit both ids for the whole business, or pass catalog_item_id or event_id (the seq_num of one position or one event). Each violation names its subject (catalog_item, event or section), subject_id (that seq_num), the rule code and a recipe with the fix. A position, event or section with a violation is hidden from buyers until it is fixed; setup in any order is allowed. `notices` hide nothing: PRESET_PAY_LATER_NO_PROVIDER says a paid position takes its money after the order because no payment provider is connected.
Scopes (ALL): ["booking:read","catalog:read","events:read"]. Risk: "read".
search_catalog
Search what a buyer can see (switched on, listed in the showcase) one page at a time: q = words that must all occur in the title or description, group_ids = categories (any of), price_min/price_max in one currency (required with a price bound or a price sort), availability in_stock, sort manual | title | newest | price_asc | price_desc, limit ≤ 50. Each hit carries its `id`, availability, prices, variants and unavailable_combination_keys. Follow next_cursor while has_more; a page filtered by availability can be empty while has_more is true. The price to charge and whether a purchase is allowed are decided by the order tools, not by this result.
Scopes (ALL): ["catalog:read"]. Risk: "read".
set_related_items
Set the «С этим берут» list of a catalog item — the items offered together with it, shown to the buyer as a carousel. `catalog_id` is the item's number (its seq_num, the `id` get_catalog returns); `related_ids` are the numbers of the offered items, in carousel order. The list REPLACES the stored one: [] clears it, the same list again changes nothing. Refused with SALE_CONFIG_INVALID, every broken rule listed with its own recipe, when the item is offered with itself (RELATED_SELF) or an offered item is not ready for sale (RELATED_NOT_SALE_READY). Returns the item as get_catalog_item reads it: `related[]` in carousel order, `is_visible:false` on an offered item the buyer does not see now (switched off), and the new `etag` — the change moves it.
Scopes (ALL): ["catalog:write"]. Risk: "write".
set_stock
Set the stock of a product or of one of its combinations (combination_key; required when the product has combinations): on_hand is the units available, 0 closes it, null removes the limit. Refused with a conflict when the new limit is below the units currently held by buyers.
Scopes (ALL): ["catalog:write"]. Risk: "destructive".
update_catalog_group
Update a catalog group by its `id`, using its updated_at as if_match.
Scopes (ALL): ["catalog:write"]. Risk: "write".
update_catalog_item
Patch a catalog item (sparse — omitted fields are untouched). Requires `etag` for optimistic concurrency and `idempotency_key` for durable receipt replay. A nonempty patch returns its canonical committed receipt identically on first success and exact replay. Use `get_catalog_item` for the current RU or COM price presentation and payment-provider availability. Optional `zone` selects that current presentation for an empty no-op patch; omitted defaults to RU. To configure selectable POS modifiers, patch the canonical nested `variants` object; retained keys are stable addresses, so an illegal key rewrite is rejected by the canonical writer. Reach is two INDEPENDENT booleans you may patch separately: `is_active:false` switches the item off entirely (purchasable by nothing); `is_public:false` takes it out of the showcase and storefront while it stays fully payable through its direct link. `is_create_order_on_click:true` makes a click on the item create the order at once (a deferred-payment item cannot switch it off). To configure a booking service, patch nested `booking`: `enabled`, `mode` (`hourly`/`daily`), `duration_value`, `buffer_minutes`, and `resource_ids` (the resource numbers, seq_num — `id` of booking_list_resources). Duration is in hours for hourly mode (1 = 60 minutes), days for daily mode. Enabling booking atomically moves an ordinary catalog item to booking scope; event items cannot be converted. `external_refs` holds the item's ids in outside systems and is replaced whole: `{getcourse: {offer_id}}` is the GetCourse offer (digits) that a GetCourse payment link and a GetCourse CRM deal use instead of the title; `null` clears it.
Scopes (ALL): ["catalog:write"]. Risk: "write".