Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Call any Telegram Ads API method

tg_api_call
Destructive

Call any Telegram Ads API method that lacks a dedicated tool by passing its exact method name and parameters; read calls run immediately, while write calls require write mode and confirmation.

Instructions

Escape hatch for methods that do not have a dedicated tool. Pass the exact method name from tg_search and its parameters. Read methods run immediately; write methods require TG_ADS_MODE=write and confirm: true, and receive an idempotency key automatically.

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": {
      "method": "<method>"
    },
    "name": "tg_api_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYesExact method name, for example getTargetLocationsList.
paramsNo
confirmNo
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.8/5.0
Behavior5/5

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

The annotations only flag readOnlyHint=false, destructiveHint=true and openWorldHint=true; the description goes further by splitting read versus write behavior, naming the environment gate (TG_ADS_MODE=write) and the confirm flag required for writes, and disclosing that an idempotency key is applied automatically. These are operational facts not derivable from the annotations or schema. No contradiction with the destructiveHint annotation, since write methods are acknowledged as gated mutations.

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 sentences, front-loaded with the core purpose, then the input convention, then the read/write behavioral split. No restatement of the title or filler; every clause carries a decision-relevant fact.

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

Completeness4/5

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

For an open-world escape hatch with no output schema, the definition covers dispatch, discovery, and the write-safety protocol, which is what an agent needs to invoke it safely. It does not say what comes back (raw API payload?) or how errors from unknown method names surface, a modest gap for a fully generic passthrough tool.

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

Parameters4/5

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

Schema coverage is only 25% (only `method` is documented), so the description has to carry the rest, and it does explain the roles of `params` (the target method's parameters), `confirm` (write gate) and the auto-supplied `idempotency_key`. It stops short of describing the nested `params` object's shape or whether a caller may override the idempotency key, so it is strong but not exhaustive.

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

Purpose5/5

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

The description opens with a precise functional statement: an escape hatch for API methods that lack a dedicated tool, taking an exact method name plus parameters. This immediately separates it from the named sibling family (tg_get_ads, tg_create_ad, etc.), which cover specific methods. An agent can decide between this and a dedicated tool 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 Guidelines5/5

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

It states both the inclusion condition (method has no dedicated tool) and the discovery path (get the exact method name from tg_search), plus the preconditions for write methods: TG_ADS_MODE=write and confirm: true. The exclusion of methods that already have dedicated tools is explicit, which is exactly the routing decision an agent must make.

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