Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Update ad

tg_update_ad
Destructive

Edit existing Telegram ads by updating only specified fields, pausing or resuming delivery, and validating changes with a dry run before submission.

Instructions

Edit an existing advertisement. Only provided fields change. Use is_paused to pause or resume. Set submit_for_review: true to move a ready_for_review ad into review after editing. Changing cpm or budget requires the same currency precision rules as creation. 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": {
      "ad_id": "<ad_id>"
    },
    "name": "tg_update_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpmNo
textNo
ad_idYes
titleNo
buttonNo
confirmNo
dry_runNo
photo_idNo
scheduleNo
video_idNo
is_pausedNo
account_idNo
promote_urlNo
show_userpicNo
website_nameNo
activate_dateNo
additional_infoNo
deactivate_dateNo
website_photo_idNo
include_targetingNo
submit_for_reviewNo
daily_budget_limitNo
conversion_event_idNo
impression_frequencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is partly covered. The description adds real value with partial-update semantics, the confirm:true plus TG_ADS_MODE=write gating requirement, and currency-precision rules for cpm/budget. It never explains what the destructiveHint actually risks or what state the ad ends up in after an edit.

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

Conciseness4/5

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

Five short sentences, front-loaded with purpose before the flag-by-flag guidance. No filler, though a compact parameter grouping would have read better than a flat sentence run.

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?

Covers the operational essentials for a destructive mutation: write-mode gating, dry_run validation, confirm, and partial-update behavior. For a 24-parameter tool with a nested schedule object and no output schema, the silence on schedule/targeting semantics and post-edit return behavior leaves real gaps.

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

Parameters2/5

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

Schema description coverage is 0% across 24 parameters, and the description only gives meaning to about six of them (is_paused, submit_for_review, cpm, budget, dry_run, confirm). The nested schedule object (week_hours_mask, timezone, use_viewer_timezone), targeting, media, and date fields go entirely unexplained in both schema and prose. Given the tool's size, this is a significant shortfall.

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, "Edit an existing advertisement," which cleanly separates it from tg_create_ad and tg_delete_ad by lifecycle stage. It doesn't explicitly name those siblings, but an agent can distinguish it without opening the schema.

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 conditional guidance for three flags: is_paused to pause/resume, submit_for_review to move a ready_for_review ad into review, and dry_run to validate without an API call. What's missing is routing guidance against alternatives such as tg_ad_budget for budget-only changes.

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