Xonta MAX
MAX messenger bots and mini-apps in English or Russian: Bot API, code checks, Telegram migration
Should I use this
Quality & Safety
Findings (2)
- LOWin server_status
- LOWin max_check_webhook_secret
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"max": {
"command": "uvx",
"args": [
"xonta-max-mcp"
]
}
}
}Runnable packages
0.1.0stdioRemote endpoints
https://mcp.xonta.ru/max/mcpstreamable-httpWhat it can do
Tool inventory
Tools (20)
π’max_api_reference(query, topic, lang)
Look up current facts about the MAX Bot API and Mini Apps (MAX Bridge) with links to dev.max.ru. Covers base URL and auth, the Russian Trusted Root CA, advertising in MAX (topic 'ads'), webhooks vs long polling, sending messages, inline keyboards and callbacks, formatting, uploads, chat tracking without GET /chats, mini-apps, initData validation, deep links, who may create bots, official libraries. Language models usually know an outdated API (platform-api.max.ru, token in query, GET /chats) β use this before writing MAX code. With no arguments returns the list of topics.
Input Schema
{
"type": "object",
"properties": {
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Free text in English or Russian, e.g. 'webhook certificate', 'callback answer', 'initData', 'GET /chats', 'attachment.not.ready'",
"title": "Query"
},
"topic": {
"anyOf": [
{
"enum": [
"auth",
"tls",
"webhook",
"messages",
"keyboard",
"formatting",
"uploads",
"chats",
"mini_apps",
"init_data",
"deeplinks",
"access",
"libraries",
"ads",
"sources"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Return one whole topic instead of searching",
"title": "Topic"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_api_referenceArguments"
}π’max_endpoint_info(verb, path, lang)
Details of one MAX Bot API method (query params, body, limits, gotchas, docs link) or the full method list. Also tells when a method was removed or restricted (GET /chats, POST /chats/{chatId}/members).
Input Schema
{
"type": "object",
"properties": {
"verb": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "HTTP method: GET, POST, PUT, PATCH, DELETE. Omit to list all endpoints",
"title": "Verb"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path like '/messages', '/chats/{chatId}/pin' or a concrete one '/chats/-123/pin'",
"title": "Path"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_endpoint_infoArguments"
}π’max_limits(lang)
All MAX platform limits in one table: text length, rate limits, keyboard size, attachments, file sizes, deep link payloads, webhook rules, bots per profile β each with a source link. Also update types, button types, errors.
Input Schema
{
"type": "object",
"properties": {
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_limitsArguments"
}π’max_changelog(lang)
Dated MAX platform changes in 2026 that break old code: host move to platform-api2, removed GET /chats, restricted member adding, HTTPS-only webhooks, comments API, self-employed access.
Input Schema
{
"type": "object",
"properties": {
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_changelogArguments"
}π’max_lint_code(code, lang)
Check MAX bot or mini-app code for known mistakes, with line numbers and fixes. Finds: old host platform-api.max.ru, token in query string, 'Bearer' prefix, disabled TLS verification, removed GET /chats, restricted member adding, type=photo uploads, wrong webhook setup (port, HTTP, /webhook), disable_link_preview in body, plain == comparison of the webhook secret, initData signed directly with the token, trusting initDataUnsafe, hardcoded upload hosts, Telegram leftovers. Static, never runs the code.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Source code of a MAX bot or mini-app (any language), or a config / curl snippet",
"title": "Code",
"type": "string"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"code"
],
"title": "max_lint_codeArguments"
}π’max_migrate_from_telegram(code, lang)
Plan a port of a Telegram bot or Web App to MAX. With code: every Telegram API usage with line number and the MAX replacement, features with no MAX equivalent, effort estimate and a step-by-step plan. Without code: the full Telegram β MAX method map.
Input Schema
{
"type": "object",
"properties": {
"code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Telegram bot source (aiogram, python-telegram-bot, telebot, Telegraf, grammY, raw HTTPβ¦). Omit to get only the method map",
"title": "Code"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_migrate_from_telegramArguments"
}π’max_scaffold_bot(language, lang)
Generate a ready MAX bot project: polling for dev, webhook for prod, the Russian Trusted Root CA in the Dockerfile, chat tracking without GET /chats, callback answers, constant-time secret check, rate limits and text splitting (Python). lang sets the language of comments, README and the bot's replies. Returns a map of file name β content. Write the files as they are. Creating the bot itself and getting a token requires a verified profile on business.max.ru.
Input Schema
{
"type": "object",
"properties": {
"language": {
"default": "python",
"description": "python (httpx, no official SDK), typescript (@maxhub/max-bot-api) or go (official client v2)",
"enum": [
"python",
"typescript",
"go"
],
"title": "Language",
"type": "string"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_scaffold_botArguments"
}π’max_validate_message(body, target, chat_type, lang)
Validate a message body before sending to MAX: 4000-char text, format, keyboard limits (210/30/7, 3 per row with link/open_app/request_*), button fields and lengths, attachment combinations (β€12 media, file only with a keyboard, audio/sticker/contact alone), comment restrictions, Telegram fields left in the body.
Input Schema
{
"type": "object",
"properties": {
"body": {
"additionalProperties": true,
"description": "NewMessageBody JSON: {text, format, attachments, link, notify}",
"title": "Body",
"type": "object"
},
"target": {
"default": "message",
"description": "message β POST /messages, comment β POST /messages/{id}/comments",
"enum": [
"message",
"comment"
],
"title": "Target",
"type": "string"
},
"chat_type": {
"anyOf": [
{
"enum": [
"dialog",
"chat",
"channel"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Where it goes, for channel-specific rules",
"title": "Chat Type"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"body"
],
"title": "max_validate_messageArguments"
}π’max_build_message(text, format, buttons, image_urls, reply_to_mid, ...)
Build a correct POST /messages request for MAX: JSON body with inline keyboard and images, validation result and a ready curl command. Use it instead of hand-writing keyboard JSON.
Input Schema
{
"type": "object",
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Message text, up to 4000 characters",
"title": "Text"
},
"format": {
"anyOf": [
{
"enum": [
"markdown",
"html"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Text markup",
"title": "Format"
},
"buttons": {
"anyOf": [
{
"items": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Rows of buttons. Short form: {text, payload} β callback, {text, url} β link, {text, web_app, payload?} β open_app; or full {type, text, ...}",
"title": "Buttons"
},
"image_urls": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "External image URLs to attach without uploading",
"title": "Image Urls"
},
"reply_to_mid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Reply to this message id",
"title": "Reply To Mid"
},
"chat_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "For the curl example",
"title": "Chat Id"
},
"user_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "For the curl example, private dialog",
"title": "User Id"
},
"disable_link_preview": {
"default": false,
"title": "Disable Link Preview",
"type": "boolean"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_build_messageArguments"
}π’max_split_text(text, limit, lang)
Split text into MAX messages of at most 4000 characters, cutting at paragraphs, lines or sentences.
Input Schema
{
"type": "object",
"properties": {
"text": {
"description": "Long text to send",
"title": "Text",
"type": "string"
},
"limit": {
"default": 4000,
"description": "Max characters per message",
"maximum": 4000,
"minimum": 100,
"title": "Limit",
"type": "integer"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"text"
],
"title": "max_split_textArguments"
}π’max_convert_formatting(text, source, target, lang)
Convert formatted text to MAX markup: Telegram MarkdownV2 (underline __x__ β ++x++, unescape), Telegram HTML (tg://user β max://user, spoilers dropped) or ordinary Markdown from an LLM (lists β bullets, rules removed). Reports what MAX cannot show (spoilers, tables, lists, inline images). Use the returned format value in the body.
Input Schema
{
"type": "object",
"properties": {
"text": {
"description": "Formatted text",
"title": "Text",
"type": "string"
},
"source": {
"description": "Where the text comes from; 'markdown' = ordinary Markdown (e.g. LLM output)",
"enum": [
"telegram_markdownv2",
"telegram_html",
"markdown"
],
"title": "Source",
"type": "string"
},
"target": {
"default": "max_markdown",
"description": "MAX format to produce",
"enum": [
"max_markdown",
"max_html"
],
"title": "Target",
"type": "string"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"text",
"source"
],
"title": "max_convert_formattingArguments"
}π’max_deeplink(kind, bot_name, payload, text, user_id, ...)
Build and validate MAX deep links. 'share' gives a link, an HTML button and a JS helper that open MAX's chat picker with prefilled text β works on any website or AI agent output without owning a bot. Payload limits are checked, because MAX silently drops payloads that are too long or have bad characters.
Input Schema
{
"type": "object",
"properties": {
"kind": {
"description": "start β open bot with payload; startapp β open mini-app; share β 'send to MAX' link for any site, no bot needed; mention β user mention markup",
"enum": [
"start",
"startapp",
"share",
"mention"
],
"title": "Kind",
"type": "string"
},
"bot_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Bot public name as in max.ru/<name> (start, startapp)",
"title": "Bot Name"
},
"payload": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "start: β€128 chars; startapp: β€512, A-Za-z0-9_- only",
"title": "Payload"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "share: text to prefill; mention: display name",
"title": "Text"
},
"user_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "mention: MAX user id",
"title": "User Id"
},
"button_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "share: label for the generated HTML button; default depends on lang",
"title": "Button Label"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"kind"
],
"title": "max_deeplinkArguments"
}π’max_mock_update(update_type, text, payload, chat_type, chat_id, ...)
Generate a realistic MAX webhook Update for tests, shaped like the official schema, plus a curl command to send it to your local webhook. Lets you test a bot before it passes moderation or without a token.
Input Schema
{
"type": "object",
"properties": {
"update_type": {
"description": "message_created, message_callback, bot_started, bot_added, bot_removed, message_edited, message_removed, user_added, user_removed, comment_created, chat_title_changed, dialog_muted, bot_admin_permissions_changed, β¦",
"title": "Update Type",
"type": "string"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Message text (message_created/edited, comments) or new title",
"title": "Text"
},
"payload": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Callback payload or bot_started deep link payload",
"title": "Payload"
},
"chat_type": {
"default": "dialog",
"description": "Where it happens",
"enum": [
"dialog",
"chat",
"channel"
],
"title": "Chat Type",
"type": "string"
},
"chat_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Chat id; default is generated",
"title": "Chat Id"
},
"overrides": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Deep-merge into the generated update",
"title": "Overrides"
},
"webhook_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "If set, also returns a curl command that POSTs the update there",
"title": "Webhook Url"
},
"secret": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Webhook secret to put into X-Max-Bot-Api-Secret",
"title": "Secret"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"update_type"
],
"title": "max_mock_updateArguments"
}π’max_mock_init_data(test_bot_token, user_id, first_name, chat_type, start_param, ...)
Produce a correctly signed MAX mini-app initData string (two-step HMAC with 'WebAppData') for backend tests, with the token used, so you can check your validator end to end.
Input Schema
{
"type": "object",
"properties": {
"test_bot_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A TEST token to sign with. Omit to generate a random one. Never pass a production token to a hosted server",
"title": "Test Bot Token"
},
"user_id": {
"default": 100500,
"title": "User Id",
"type": "integer"
},
"first_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "First Name"
},
"chat_type": {
"default": "DIALOG",
"description": "Where the mini-app was opened",
"enum": [
"DIALOG",
"CHAT",
"CHANNEL"
],
"title": "Chat Type",
"type": "string"
},
"start_param": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Value from ?startapp=",
"title": "Start Param"
},
"age_seconds": {
"default": 0,
"description": "Make auth_date this many seconds old, to test expiry",
"minimum": 0,
"title": "Age Seconds",
"type": "integer"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_mock_init_dataArguments"
}π’max_bridge_mock(platform, start_param, test_bot_token, user_id, first_name, ...)
Generate max-bridge-mock.js: a window.WebApp emulator to develop MAX mini-apps in a normal browser on localhost. Emulates initData/initDataUnsafe (signed if a test token is given), BackButton (Esc), DeviceStorage and SecureStorage (localStorage, 10-key cap), BiometricManager, HapticFeedback, NfcManager, ScreenCapture, requestContact with a valid hash, openLink/downloadFile/shareMaxContent click requirements and per-platform restrictions. Logs every call. Use only on localhost.
Input Schema
{
"type": "object",
"properties": {
"platform": {
"default": "android",
"description": "Platform to emulate: limits which Bridge features work",
"enum": [
"ios",
"android",
"desktop",
"web"
],
"title": "Platform",
"type": "string"
},
"start_param": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Emulated ?startapp= value",
"title": "Start Param"
},
"test_bot_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "TEST token: initData and requestContact hash will be validly signed with it",
"title": "Test Bot Token"
},
"user_id": {
"default": 100500,
"title": "User Id",
"type": "integer"
},
"first_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "First Name"
},
"phone": {
"default": "79990000000",
"title": "Phone",
"type": "string"
},
"entry_point": {
"default": "default",
"enum": [
"default",
"tabbar"
],
"title": "Entry Point",
"type": "string"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_bridge_mockArguments"
}π’max_check_webhook_secret(secret, lang)
Check a MAX webhook secret against the rules (5-256 chars, A-Z a-z 0-9 _ -) or generate a strong one.
Input Schema
{
"type": "object",
"properties": {
"secret": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Secret to check; omit to generate a new one",
"title": "Secret"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "max_check_webhook_secretArguments"
}π’server_status(lang)
Server version, facts date, mode (hosted or local), languages and whether operator tools are active.
Input Schema
{
"type": "object",
"properties": {
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"title": "server_statusArguments"
}π’max_tracking_links(campaign, placements, bot_name, mini_app_bot, site_url, ...)
Make a separate tracking link (and promo code) for every channel where an ad is placed in MAX, so you can see which placement brought users and sales. Bot links use ?start=<id>: the id arrives in bot_started.payload, which works even for clicks that never leave the messenger. Returns a media plan as CSV. Then feed the counts to max_ad_report.
Input Schema
{
"type": "object",
"properties": {
"campaign": {
"description": "Campaign name, e.g. 'black friday'",
"title": "Campaign",
"type": "string"
},
"placements": {
"description": "Channels where the ad goes: [{name, cost?, erid?}]. name may be a title or max.ru link",
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Placements",
"type": "array"
},
"bot_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Your bot's public name: each placement gets max.ru/<bot>?start=<id>",
"title": "Bot Name"
},
"mini_app_bot": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Bot with your mini-app: each placement gets ?startapp=<id>",
"title": "Mini App Bot"
},
"site_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Landing page: each placement gets UTM tags and its erid",
"title": "Site Url"
},
"utm_medium": {
"default": "seeding",
"title": "Utm Medium",
"type": "string"
},
"promo_codes": {
"default": true,
"description": "Also make one promo code per placement",
"title": "Promo Codes",
"type": "boolean"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"campaign",
"placements"
],
"title": "max_tracking_linksArguments"
}π’max_ad_report(placements, events, campaign, min_orders, lang)
Compare ad placements in MAX by real results: CPM, cost per click or bot start, cost per lead and per order, ROAS, profit after ads and ROMI (with margin), conversion with a 95% confidence interval. Says when a difference between channels may be chance and when there is too little data. A calculator only: it does not touch ad accounts or move money.
Input Schema
{
"type": "object",
"properties": {
"placements": {
"description": "Per placement: {name, id?, cost, views?, clicks?, starts?, leads?, orders?, revenue?, margin_pct?}",
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Placements",
"type": "array"
},
"events": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional bot_started updates, {'payload': β¦} objects or payload strings; starts are counted per placement id",
"title": "Events"
},
"campaign": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Only count payloads of this campaign",
"title": "Campaign"
},
"min_orders": {
"default": 5,
"description": "Below this many orders a placement is flagged as low data",
"minimum": 1,
"title": "Min Orders",
"type": "integer"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"placements"
],
"title": "max_ad_reportArguments"
}π’max_check_ad_post(text, links, channel_subscribers, channel_has_a_plus, advertiser_site, ...)
Check an ad post for MAX against Russian ad marking rules: the 'Π Π΅ΠΊΠ»Π°ΠΌΠ°' label at the top, advertiser details (name and INN/OGRN or a site), an erid token in the link or text, the A+ mark for channels over 10,000 subscribers, and the 4000-character limit. A hint, not legal advice; ORD registration is not checked.
Input Schema
{
"type": "object",
"properties": {
"text": {
"description": "Ad post text as it will be published",
"title": "Text",
"type": "string"
},
"links": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Links used in buttons or elsewhere, if not in the text",
"title": "Links"
},
"channel_subscribers": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Subscribers of the channel where it goes",
"title": "Channel Subscribers"
},
"channel_has_a_plus": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the channel has the A+ mark (RKN registry)",
"title": "Channel Has A Plus"
},
"advertiser_site": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Site with the advertiser's details, if they are not in the text",
"title": "Advertiser Site"
},
"lang": {
"anyOf": [
{
"enum": [
"ru",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG)",
"title": "Lang"
}
},
"required": [
"text"
],
"title": "max_check_ad_postArguments"
}Community
Evidence