Call any Telegram Ads API method
tg_api_callCall 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
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Exact method name, for example getTargetLocationsList. | |
| params | No | ||
| confirm | No | ||
| idempotency_key | No |