К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-onboarding.mdиндекс документации — /llms.txt

MCP: onboarding

Обновлено

Определения инструментов. Обновляйте tools/list после изменения прав. required_scopes: ALL.

cancel_auto_renew

Cancel automatic renewal while keeping access through the paid period.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

check_free_conditions

Check the current conditions for keeping your business site on the free plan.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

check_slug_availability

Check address format and availability for the authenticated owner or scoped tenant without reserving it.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

claim_slug

Claim the immutable public address and language; automatic site preparation starts immediately. Read get_onboarding_state until site_operation completes; no business questionnaire is required.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

create_quest_product

Create a free quest product with delivery content for your trial business. Completion is recorded after the actual purchase and delivery.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

create_quick_site

Publish a business site from a description or structured fields.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

disconnect_bot

Owner only. Change the bot of the current business while no operator group is bound: the bot is taken off the business, the reserved technical account is released and the business returns to its bot step; connect another bot afterwards with init_managed_bot or register_existing_bot. The site, the address and the trial stay. disconnected:false means the business had no bot and nothing changed. Once a group or the technical account is bound the call is refused with GROUPS_ALREADY_BOUND.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

get_billing_state

Read the current plan, paid period and automatic renewal state, plus: `effective_plan` (the tier the business works on now — a trial reads ai_manager while `plan` says free); `usage` for this calendar month — charged AI tokens, people who got an AI answer and delivered outgoing messages, each with used / limit / percent against the Enterprise thresholds, and `resets_at`; on Enterprise `thresholds_apply` is false and limit/percent are null; `topup_available` — tokens still purchasable as top-up packages this month (null: no ceiling on Enterprise; 0: ceiling reached or the plan has no AI).

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

Get the deeplink to the Catalog topic in the tenant Settings supergroup (where products are added). Returns null with guidance if the Settings supergroup / catalog topic is not provisioned yet.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

get_onboarding_state

Read onboarding progress and the next action for the current business. Takes only the optional `src` (lowercase letters, digits, `_` and `-`, up to 64) and `intent`; any other key is refused by name.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

init_managed_bot

Get a two-tap Telegram deeplink to connect a new managed bot. The server derives its name from the published business site and its username from the claimed address.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

Owner only. Issue one fresh single-use link per operator group role that is not bound yet (Settings, Operations, Open Lines). The owner opens each link in Telegram, picks or creates a forum supergroup and keeps the suggested bot admin rights; the bot binds that group to the role and adds the technical account itself. Each link works once and expires at expires_at; calling again issues new links for the roles still unbound. When body.kind is "wait", body.wait_for gives retry_after_seconds: call again only after it. Read the binding status per role from get_onboarding_state (body.supergroups.roles): pending or bound, the technical account pending or joined, and the last refusal code.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

onboarding_check_test_product

Check that the saved test product and its digital delivery are ready.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

onboarding_check_test_purchase

Verify the owner’s test as a buyer of their own bot from server facts: a real product card shown to them (card_shown) and a confirmed digital delivery (delivery_state none, pending, delivered or refused with delivery_reason). The order status, price and product do not matter. When both facts hold, the check records the passed test (completed true), so finishing onboarding accepts it; the bonus is reported separately. This read therefore may write one derived, idempotent step: a repeat call writes nothing new, and while an earlier onboarding step is missing or the business is closed it writes nothing and answers completed false.

Scopes (ALL): ["onboarding:read"]. Risk: "read".

Вход, результат и права

onboarding_complete

After explicit owner confirmation, verify every mandatory condition and finish this business onboarding. A payment provider and a first payment are not mandatory conditions.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

onboarding_defer_first_payment

Record the owner’s decision to receive their first live payment later. Informational only: a first payment is not required to finish onboarding.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

onboarding_save_ai_preferences

Save the AI application the owner explicitly chose to connect.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

register_existing_bot

Connect the owner’s existing Telegram bot using the bot_token supplied in this agent conversation. The existing registration pipeline validates and finalizes the connection; connected:true means completed finalization. Never echo or place the token in a subsequent instruction. Retry the same token safely, or use resume_bot_connection after a lost response.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

register_mini_app_origin

Register the tenant host as the Mini App origin of one channel (telegram, MAX or VK) in one zone; MAX and VK exist only in zone ru. The result is pending with a recipe: the URL to set in BotFather (Telegram) or business.max.ru (MAX), or nothing to paste (VK). The origin becomes registered automatically on the first validly signed launch from it. The origin defaults to the zone's tenant host, the only origin accepted. No messenger API is called.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

request_manual_supergroups

Request platform confirmation of the current business’s three operator groups when they cannot be bound by link. Supply a private Telegram message link from each group. Acceptance records a request; follow next_action while platform operations confirms the groups.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

resume_bot_connection

Resume the selected business’s frozen bot connection operation without sending a token again. connected:true requires the existing durable finalized result matching the currently bound bot; a partial or unfinished connection returns BOT_CONNECTION_NOT_READY.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

resume_infrastructure

After the owner repairs the reported permissions or group settings, resume infrastructure for the current business using its existing confirmed groups and durable convergence operation. This does not bind groups. Terminal platform failures require the repair described by next_action before setup can continue. body.resume says whether this call started a run: reason queued (started), not_blocked (infrastructure is not blocked, nothing was started) or mode_not_resumable (the current operation is not resumable, nothing was started). While infrastructure is blocked every call counts against the owner admission limit: 2 manual starts per minute, then pauses of 60, 120 and 240 seconds; the limit resets after 10 quiet minutes. A call during a pause is refused with RATE_LIMIT_EXCEEDED and retry_after_seconds; call again only after it.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

retry_onboarding_site

Retry a failed automatic first-site operation using its saved work. Read get_onboarding_state for phases and the final two-zone bio result; no description is required.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

send_tariff_checkout_card

Send the selected live platform tariff checkout card to the owner for this explicit business, for example when its trial ends. The owner completes checkout in Telegram; card presentation does not confirm payment.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права

set_tax_profile

Set the business tax profile for payment setup. Returns onboarding progress and the next action. Optional: payment setup is not part of the mandatory onboarding path and never blocks onboarding_complete.

Scopes (ALL): ["onboarding:write"]. Risk: "write".

Вход, результат и права