Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Manage pixel and conversion events

tg_manage_pixel
Destructive

Create a Telegram Ads account Pixel Tag and manage its conversion events by adding, renaming, or deleting unused events to keep ad tracking accurate.

Instructions

action=create_pixel creates the account's Pixel Tag (only one per account); action=create_event needs title and type; action=update_event renames an event; action=delete_event removes an event that is not used by any ad. 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": {
      "action": "<action>"
    },
    "name": "tg_manage_pixel"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoEvent type, for example purchase or lead.
titleNo
actionYes
confirmNo
event_idNo
account_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description is not obligated to restate that this mutates data. It still adds real behavioral context beyond the annotations: a required 'confirm: true' guard and a TG_ADS_MODE=write prerequisite, plus the precondition that delete_event fails on an in-use event and that only one Pixel Tag may exist. It omits what a successful call returns and whether deletes are recoverable.

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?

Everything is packed into one front-loaded, action-organized sentence with no filler, and the prerequisites come last where they belong. The semicolon-chained clauses are dense enough that a reader must parse carefully, but no sentence is wasted.

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 destructive, open-world tool with no output schema and six parameters, the definition covers the mutation paths and safety prerequisites well. It leaves gaps on parameter applicability per action, the identifiers event_id/account_id, and any indication of the success or error response.

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 17%, so the description should carry the load, and it partially does: it maps action values to intent and states that create_event requires title and type. However, event_id and account_id are never explained, and it is unclear which parameters apply to update_event or delete_event, leaving two of six parameters undocumented in both places.

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?

The description uses specific verbs and resources and disambiguates its four actions ('action=create_pixel creates the account's Pixel Tag', 'action=update_event renames an event', 'action=delete_event removes an event'). It does not distinguish itself from the closely related siblings tg_get_pixel and tg_list_pixel_events, so the read-vs-write split 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?

Each action carries its own conditions: create_pixel is limited to one per account, create_event needs title and type, delete_event is only valid for an event not used by any ad. It never states when to use this tool versus tg_list_pixel_events or tg_get_pixel, so no explicit alternative routing is provided.

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