Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Increase or decrease ad budget

tg_ad_budget
Destructive

Increase or decrease a Telegram ad budget in account currency with confirmation and write-mode safeguards; decreasing requires the ad to be inactive for at least 10 minutes.

Instructions

Move funds into or out of an ad. amount is in the account currency and must respect its precision. Telegram only allows decreasing budget when the ad has been inactive for at least 10 minutes. 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": {
      "ad_id": "<ad_id>",
      "direction": "<direction>",
      "amount": "<amount>"
    },
    "name": "tg_ad_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes
amountYes
confirmNo
directionYes
account_idNo
include_targetingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already mark this as destructive and open-world, but the description adds useful operational details: amount is in account currency with required precision, decreases have an inactivity constraint, and confirm plus write mode are required. It does not explain reversibility or increase-side constraints, but it substantially supplements the annotations.

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 four compact sentences with no redundant wording. It front-loads the purpose, then adds the key constraints in a logical order.

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 mutation with no output schema, the description covers the core purpose, confirm requirement, and a critical decrease constraint. It remains incomplete because it does not document most parameters or explain how optional fields like account_id and include_targeting affect behavior.

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%, so the description carries the full burden for six parameters. It explains amount and confirm, but leaves ad_id, direction mapping, account_id, and include_targeting without added meaning beyond their names or enum values.

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 and resource: "Move funds into or out of an ad." This clearly identifies an ad-level budget mutation rather than an account-level one, although it does not explicitly name the sibling tg_account_budget.

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?

It states important operating conditions: decreasing requires 10 minutes of inactivity, confirm must be true, and TG_ADS_MODE must be write. However, it does not explicitly say when to use this ad-level budget tool versus tg_account_budget or other alternatives.

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