telegram-ads-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| stel_ssid | Yes | The stel_ssid cookie from ads.telegram.org | |
| stel_token | Yes | The stel_token cookie from ads.telegram.org |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_sessionA | Ping the current ads.telegram.org session. |
| reload_sessionA | Re-read .env (STEL_TOKEN / STEL_SSID / STEL_ADOWNER) and rebuild the HTTP session. |
| list_accountsA | List ad cabinets for this Telegram login. Works even on a Stars cabinet so you can switch away. |
| select_accountA | Switch the active ad cabinet. Then check_session / get_account. |
| get_accountA | Current cabinet card: owner_id, cabinet (ton/eur/stars), currency (GRAM/EUR), balance, write_gate. |
| get_adsA | List ads (100 per page). Filter by status client-side. |
| get_adA | Fetch a single ad by id (API method, HTML state, or list fallback). |
| create_adA | Create an ad. TON/Gram cabinets allow channels, bots, search, and users (geo). EUR too. |
| edit_adA | Edit an ad. Only provided fields are sent. |
| delete_adA | Delete an ad. Two-step: first call without confirm_hash; pass the returned hash to confirm. |
| clone_adA | Duplicate an ad into a new draft. Targeting is copied; edit the clone if you need changes. |
| check_ad_postA | Validate promote URL + text before create/launch. Surfaces platform errors. |
| send_target_to_reviewB | Submit (or resubmit) targeting for review. Requires a non-zero budget. Spend-class gate. |
| launch_adA | Create on_hold, add budget, submit for review. Does not activate. |
| preview_adB | Render a sponsored-message preview PNG for chat, and save it under TG_ADS_PREVIEW_DIR (default ./previews). |
| upload_mediaA | Upload a photo (JPEG/PNG 16:9, <5 MB) or video (MP4 3–60s, <20 MB). |
| get_ad_statsA | Time-bucketed stats plus CTR / CPC / actual CPM. |
| search_targetsA | Search targeting entities. |
| get_targeting_referenceA | Countries / languages / topics for user-geo (Gram cabinets have this too) plus channel taxonomies. Stars cabinets never reach this tool. Empty lists mean the form did not embed that taxonomy. |
| manage_audienceB | Custom audiences. action=list|create|rename|delete|clone. |
| manage_eventC | Conversion events and pixels. action=list|create|rename|delete|create_pixel. |
| manage_fundsA | Funds. Amount is a Gram (or EUR) string. |
| revoke_tokenA | Revoke and regenerate the cabinet API token (IP-whitelist token, not ads cookies). |
| save_api_settingsA | Set the IP whitelist for the cabinet API token. Newline-separated IPs. |
| log_outA | Log out of ads.telegram.org for this session. You will need fresh cookies in .env afterwards. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| launch-campaign | End-to-end flow to create and submit a Telegram ad. |
| review-account | Read-only morning pass: balance, live vs stopped ads, stats on a few problems. |
| diagnose-ad | Inspect one ad: card, stats, preview. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| playbook_resource | Agent playbook: auth, create-on-hold, budget, review, Gram. |
| account_resource | Current cabinet: owner_id, currency, balance, type. |
TDQS
Scored across 25 tools
Most tools clearly target a distinct resource or action, and the get/create/edit/delete/launch/clone ad family is well-separated. A few pairs could confuse agents, notably check_session vs. get_account (both return account/session state) and create_ad vs. launch_ad vs. send_target_to_review (atomic vs. composite paths), though descriptions reduce ambiguity.
Tool names overwhelmingly follow a consistent verb_noun pattern (get_ads, create_ad, edit_ad, delete_ad, clone_ad, upload_media). The manage_audience/manage_event/manage_funds umbrella names are predictable, and minor variants like log_out or check_ad_post do not disrupt the overall convention.
At 25 tools, this sits at the heavy end of the 16–25 borderline range. The broad Telegram Ads domain justifies much of the surface, but some session/account tools and wrapper workflows could be consolidated into fewer, higher-level tools.
The surface comprehensively covers auth and session management, account switching, the full ad lifecycle (create, read, update, delete, clone, launch, review, stats), media upload, targeting, audiences, events, and funds. There are no obvious dead ends for the stated domain.