Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Create, update or delete an audience

tg_manage_audience
Destructive

Create, update, or delete phone-number retargeting audiences in Telegram Ads; requires confirmation and write mode to apply changes.

Instructions

Manage phone-number retargeting audiences. action=create needs title and add_phones; action=update needs audience_id plus at least one change; action=delete needs audience_id. Phone numbers are sent to Telegram and are never written to the audit log. 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_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
actionYes
confirmNo
account_idNo
add_phonesNo
audience_idNo
reset_phonesNo
remove_phonesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag this as destructive/open-world/non-read-only, but the description adds value beyond them: phone numbers leave the system for Telegram, they are excluded from the audit log, and calls are gated by confirm:true plus a TG_ADS_MODE=write environment mode. It still does not say whether delete is permanent or what an update does to existing phones when only some are changed, leaving some behavioral uncertainty.

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?

Dense and front-loaded: one sentence for scope, three clauses for per-action requirements, one for the privacy/audit-log caveat, one for the write gate. No filler, no repetition of the title.

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 8 undocumented-schema parameters and no output schema, the description covers the decision-critical parts (which action needs what, and the confirm/write-mode gate) but leaves the semantics of account_id, reset_phones and remove_phones, and any return or error behavior, unspecified.

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 0%, so the description carries the burden, and it explains action, title, add_phones, audience_id and confirm. However account_id, reset_phones and remove_phones are never explained — 'at least one change' only hints that add/remove/reset are the change vectors without clarifying that reset_phones wipes the list. Meaningful but incomplete coverage of 8 parameters.

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 opens with a specific verb+resource ('Manage phone-number retargeting audiences') and then enumerates the three actions (create/update/delete) with their required inputs, so an agent knows exactly what the tool does. It does not explicitly name a sibling (e.g., tg_list_audiences) to contrast read-only listing against this write tool, which keeps it 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?

Guidance is unusually concrete for a multi-action tool: it states which parameters each action needs ('action=create needs title and add_phones; action=update needs audience_id plus at least one change; action=delete needs audience_id') and the global preconditions ('Requires confirm: true and TG_ADS_MODE=write'). What is missing is an explicit 'do not use this to list/read audiences, use tg_list_audiences' routing statement.

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