Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

List targeting options

tg_list_targeting
Read-only

Look up Telegram Ads targeting catalogs such as languages, topics, countries, locations, channels, and bots to build or verify audience targeting before creating ads.

Instructions

Look up targeting catalogs. kind=languages, topics or countries takes no extra arguments. kind=locations searches by country_code and/or query, or resolves location_ids. kind=channel resolves a channel by @username or numeric ID; kind=bot does the same for bots. Prefer @username for channels and bots: numeric IDs only work after this account has resolved them.

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": {
      "kind": "<kind>"
    },
    "name": "tg_list_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
kindYes
limitNo
queryNoLocation search text.
offsetNo
channelNo
account_idNo
country_codeNoRequired for location search.
location_idsNo
for_excludingNo

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 establish readOnlyHint and openWorldHint, and the description adds meaningful behavioral context beyond that: it explains how each kind resolves its target and warns that numeric channel/bot IDs only work after this account has resolved them. It does not describe pagination or response shape, but the resolution caveat is valuable operational guidance.

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?

The description is front-loaded and dense with relevant information, moving directly from the overall purpose to each kind's invocation rules. Every sentence contributes to correct usage, including the final @username preference note, and there is no unnecessary prose.

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 10-parameter catalog lookup tool with only 20% schema description coverage and no output schema, the description covers the critical mode-selection logic well. However, it leaves ancillary parameters such as limit, offset, account_id, and for_excluding unexplained, so an agent may not know how to paginate or scope the lookup fully.

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 low at 20%, so the description needs to compensate. It does a good job explaining kind, channel, bot, country_code, query, and location_ids, but it omits limit, offset, account_id, and for_excluding, leaving several parameters without meaning in either place.

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 and resource: 'Look up targeting catalogs.' It then clearly scopes the tool across six catalog kinds, which lets an agent understand what is being retrieved. It does not explicitly distinguish this tool from similarly named siblings such as tg_search, which keeps it at a 4 rather than 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?

The description gives strong mode-specific usage guidance: languages/topics/countries need no extra arguments, locations use country_code/query or location_ids, and channel/bot resolve identifiers. It provides clear context for selecting the right kind, but it does not state when to use this tool instead of alternatives or when not to use it.

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