Skip to main content
Glama

List agent account Telegram chats

stack_list_account_telegram_chats
Read-only

List the chats that have written to the agent account's Telegram bot, newest first: chat_id, chat_type (private, group or supergroup), label, first_seen_at, last_inbound_at and blocked (Telegram refused a message to it; it can write again to unblock it). These are the only chats the agent can answer. Operator only; an agent session is refused.

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": {
      "account_id": "<account_id>"
    },
    "name": "stack_list_account_telegram_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, yet the description adds genuinely new behavior: result ordering (newest first), the meaning of the 'blocked' flag and how to clear it ('it can write again to unblock it'), and a hard authorization constraint that an agent session is refused. The operator-only caveat is exactly the kind of non-schema behavioral fact an agent needs before attempting a call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and scope, followed by the field enumeration and the authorization caveat; there is no filler. The middle of the first sentence is dense with the field list, but each field listed is meaningful rather than padding.

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 and only one simple parameter, the description fills the exact gap an agent would otherwise have: it enumerates the returned fields, defines chat_type values, and explains the blocked flag. Combined with the operator-only restriction, nothing needed to call this tool correctly is missing.

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

Parameters3/5

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

There is a single required parameter (account_id) with 100% schema description coverage, so the schema already carries the semantics and the baseline applies. The description only implies the account scope via 'the agent account's Telegram bot' and adds no format or selection guidance beyond what the schema provides.

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 description states a specific verb and resource ('List the chats that have written to the agent account's Telegram bot') and narrows the scope with 'newest first' plus an explicit enumeration of returned fields (chat_id, chat_type, label, first_seen_at, last_inbound_at, blocked). An agent can immediately distinguish this read/list tool from siblings like stack_get_account_telegram or stack_start_account_telegram.

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 conveys context for use ('These are the only chats the agent can answer') and a caller restriction ('Operator only; an agent session is refused'), which helps an agent decide whether it is even eligible to call it. However, it never names an alternative or states when to prefer a different tool for a single chat or for unblocking one, so routing is implied rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.