Skip to main content
Glama
draiqw
by draiqw

tg_accounts

Read-onlyIdempotent

Check which Telegram accounts the daemon holds, see which one handles your calls, and review each account's access level.

Instructions

Which Telegram accounts this daemon holds, and which one your calls go to.

Each row carries the label, the person behind it (name, id, @username, masked phone), whether it has Premium, whether your calls go there right now ("active"), whether it is the stored default, and the files that belong to it alone: session, search index, chat dossiers.

Two different notions of "default" are reported side by side and must not be confused: using is the account this client writes to at this moment, while default is what is stored on disk and survives a restart. They differ only after a session-only tg_account_use.

More than one account can be signed in at once; only the owner can add one, and the add field spells out the exact command. Premium is a fact about one account; the notification bot, the .env keys, the alert rules and the write limits belong to the installation and are shared by all of them.

Args: access: also report each account's access level (Premium plus how many tools are available and blocked). Costs one cached request to Telegram per account; pass false when only the list is needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/destructive annotations, it discloses a real cost: access triggers one cached Telegram request per account. It also clarifies installation-scoped vs per-account data, and warns about two default notions that must not be confused, adding meaningful behavioral context.

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 long but every section earns its place: core purpose first, then row fields, then the critical using/default warning, then ownership and shared-vs-per-account facts, then the Args block. The structure front-loads the most important information and ends with parameter guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining the returned information, and it does so thoroughly: row fields, default semantics, shared vs account-level data, and the access parameter's side effects. An agent has enough to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only exposes a boolean `access` with a default; the description fully compensates by explaining what access adds (Premium plus tool availability counts), the cost of setting it true, and when to pass false. This is exactly the information an agent needs beyond the schema.

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?

The opening sentence states the resource precisely: which Telegram accounts the daemon holds and which one calls go to. The description then details row fields and explicitly separates `using` from `default`, making the tool's purpose unmistakable and differentiating it from related tools like tg_account_use.

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 clear context for when the tool is relevant, such as understanding current active account versus persisted default, and references tg_account_use to explain how they can diverge. It does not explicitly enumerate when not to use this tool, but the guidance is strong enough for an agent to decide.

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