Skip to main content
Glama
Telegram Ads MCP

Telegram Ads MCP

Get the Code Mode TypeScript SDK

tg_get_sdk
Read-only

Retrieves TypeScript declarations for the tg namespace used by tg_execute, so you can review method signatures before writing non-trivial Telegram Ads scripts.

Instructions

Return the TypeScript declarations for the tg namespace available inside tg_execute. Read this before writing a non-trivial script; it documents every method signature.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tg_get_sdk"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description need not argue safety. It adds real context beyond that: the returned declarations describe the 'tg namespace available inside tg_execute', which tells the agent the SDK is environment-scoped rather than a general package. It omits the output's approximate size and whether it is static across calls, minor gaps for a zero-param getter.

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?

Two sentences, both load-bearing. The return value is front-loaded and the usage advice follows, with no filler or restatement of the title.

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 a zero-parameter, read-only documentation getter with no output schema, the description covers what is returned and when to fetch it. The only thing an agent might still want is a sense of the response's length, but that is a small omission given the tool's simplicity.

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?

The tool takes no parameters, so there is nothing for the description to clarify; baseline 4 applies. The description does not waste words restating a schema that is empty.

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?

States a specific verb and resource: 'Return the TypeScript declarations for the tg namespace available inside tg_execute.' It also scopes the namespace to the tg_execute sandbox, which immediately distinguishes it from every other tg_get_* sibling that fetches account, ad, or report data.

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?

'Read this before writing a non-trivial script' gives a clear trigger condition tied to script complexity. It does not name an explicit alternative (e.g. 'skip this for one-line calls and go straight to tg_execute'), but the implication is strong enough that an agent knows when to call it.

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