Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Delete ad

tg_delete_ad
Destructive

Permanently delete a Telegram ad once it has been inactive for 10 minutes and has no remaining budget. Requires confirmation and write mode enabled.

Instructions

Permanently delete an advertisement. Telegram requires the ad to be inactive for at least 10 minutes and to have no remaining budget. 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_delete_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes
confirmNo
account_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the danger is known from structured data. The description adds real value with the 10-minute inactivity window, zero-budget prerequisite, and the confirm/TG_ADS_MODE gating. It stays silent on what happens on failure (e.g., whether the ad is left untouched) and on the scope of the deletion.

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?

Three short sentences, front-loaded with the irreversible effect and then the conditions. Zero filler, nothing to trim.

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 critical gating conditions for a destructive operation and annotations cover the safety profile, but with no output schema and 0% parameter coverage the missing account_id semantics and error behavior leave a real gap for a three-parameter mutation tool.

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%, so the description must explain all three parameters and only explains one: confirm:true. ad_id and especially account_id are undocumented, leaving an agent to guess the account context for a destructive call.

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?

States a specific verb and resource: "Permanently delete an advertisement." The word "Permanently" distinguishes the effect from the sibling tg_update_ad, though the description never names that safer alternative. An agent knows exactly what this does, but sibling routing is left to inference.

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 preconditions for invocation: the ad must be inactive for 10 minutes and have no remaining budget, plus confirm:true and TG_ADS_MODE=write. It does not state when to prefer this over pausing/updating via tg_update_ad, so it stops short of full alternative guidance.

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