Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Create ad

tg_create_ad

Creates a Telegram ad with targeting, placement, budget, and schedule settings. Use dry-run validation before submitting to the API.

Instructions

Create one advertisement. New ads are paused with a zero budget unless you pass is_paused: false and initial_budget. Money values must match the account currency precision (EUR/TON: 2 decimals, XTR: 0). Telegram requires text unless target.type is search, and at most one of photo_id/video_id. Use dry_run: true to validate without calling the API. Requires confirm: true and TG_ADS_MODE=write.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "promote_url": "<promote_url>",
      "cpm": "<cpm>",
      "placement": "<placement>",
      "target": "<target>"
    },
    "name": "tg_create_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpmYesPrice per 1000 impressions in the account currency.
textNo
titleYes
buttonNo
targetYes
confirmNo
dry_runNo
photo_idNo
scheduleNo
video_idNo
is_pausedNoDefaults to true.
placementYes
account_idNo
promote_urlYes
show_userpicNo
website_nameNo
activate_dateNoUnix seconds.
initial_budgetNoDefaults to 0, which keeps the ad unfunded.
additional_infoNo
deactivate_dateNoUnix seconds.
idempotency_keyNo
website_photo_idNo
daily_budget_limitNo0 disables the daily limit.
conversion_event_idNo
impression_frequencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say it is a non-read-only, open-world, non-destructive write. The description adds substantial context beyond that: new ads land paused with zero budget unless is_paused:false and initial_budget are passed, currency precision rules per account currency, Telegram's text/media constraints, and the write-mode env requirement. That is exactly the kind of hidden default an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, each carrying a distinct constraint, front-loaded with the surprising default (paused/zero budget) before the validation and auth requirements. No filler or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 25-parameter nested write tool with no output schema, the description covers the highest-risk gotchas but not enough of the surface for an agent to fill in the object confidently. It also says nothing about what a successful creation returns (e.g. the new ad ID), which matters for follow-up calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 24% across 25 parameters with a deeply nested oneOf target, so the description carries a heavy burden. It explains the interactions for is_paused, initial_budget, text vs target.type, photo_id/video_id exclusivity, dry_run and confirm, but leaves the majority of parameters (schedule, placement, activate/deactivate dates, idempotency_key, budget limits) unexplained beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: "Create one advertisement." The subject is unambiguous and clearly a write operation. It does not name the sibling alternatives (tg_update_ad, tg_delete_ad) to distinguish itself, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operational guidance: use dry_run: true to validate without calling the API, and confirm: true plus TG_ADS_MODE=write are prerequisites. What is missing is explicit routing against siblings — nothing says when to prefer tg_update_ad over creating a new ad.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.