Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Get ads by ID

tg_get_ads
Read-only

Fetch up to 100 advertisements by ad ID to review status, budgets, metrics, and decline reasons, with optional account context and targeting details.

Instructions

Fetch up to 100 advertisements by ad_id, including status, budgets, metrics and decline reasons.

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_ids": "<ad_ids>"
    },
    "name": "tg_get_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idsYes
account_idNo
include_targetingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context about the payload surface (status, budgets, metrics, decline reasons) and the 100-ad ceiling, but says nothing about behavior for invalid or deleted IDs, partial results, or pagination.

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?

A single front-loaded sentence with no filler; the cap and the returned fields are packed in without redundancy.

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?

No output schema exists, so the description's enumeration of returned fields does real work, and the read-only nature is covered by annotations. However, for a three-parameter read tool it leaves two parameters and all error/empty-result behavior undocumented.

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% for all three parameters, so the description carries the full burden. It only clarifies ad_ids (and echoes the 100-item cap already enforced by maxItems), leaving account_id and include_targeting completely undecoded—include_targeting in particular is a behavioral switch an agent cannot infer.

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 gives a specific verb (Fetch) and resource (advertisements) scoped by ad_id, and enumerates the returned payload (status, budgets, metrics, decline reasons). The 'by ad_id' scoping implicitly separates it from tg_list_ads, though no sibling is named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'by ad_id' implies this is the lookup-when-you-have-IDs tool rather than a listing tool, but the description never states when to prefer it over tg_list_ads or what to do when IDs are unknown. Usage is implied rather than spelled out.

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