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, currency (GRAM/EUR), balance. |
| 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. 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. 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_reviewA | Submit (or resubmit) targeting for review. Requires a non-zero budget. |
| 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. period=5min → last 24h in 5-minute buckets. period=day → full lifetime daily. |
| 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_audienceC | Custom audiences. action=list|create|rename|delete|clone. |
| manage_eventC | Conversion events and pixels. action=list|create|rename|delete|create_pixel. |
| manage_fundsB | Funds. Currency follows the cabinet (Gram or EUR) — amount is a string. action=add (top-up request), transfer, withdraw, search (find a cabinet), list (linked cabinets). |
| revoke_tokenA | Revoke and regenerate the cabinet API token (IP-whitelist token on ads.telegram.org). |
| 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. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zai-one/telegram-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server