Skip to main content
Glama

Mail: New-mail alerts in Telegram

mail_new_mail_alerts
Destructive

The caller's OWN Telegram alerts about new letters in a company mailbox (e.g. info@ of their shop): 'сповіщай мене про нові листи', 'вимкни сповіщення про пошту', 'лише важливі', 'уведомляй меня о новых письмах', 'присылай уведомления о почте', 'код подтверждения пришёл на почту', 'notify me about new emails'. A request to be notified IS action=on — call it at once (mode 'all' unless they say important/без рассылок), no status call or question first; the answer names the mailbox. action=status lists the company mailboxes they may read with the switch; on switches it on (mode 'all' = every new letter, 'important' = no mailings/automatic notices; letters with a confirmation code always come, the code on its own line); off switches it off. Without 'mailbox' on/off applies to every company mailbox of the active workspace. Only for the caller — never for another person. If telegram_linked is false, tell them to connect Telegram first (Налаштування → Сповіщення). CONFIRMATION: this tool runs immediately when the caller asks for it — it writes only their own record, and they can undo it from this same surface, so the request is taken as the instruction. You get an ordinary result, not a plan_token. Everything destructive, outbound or financial still proposes and waits.

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": {
      "action": "<action>"
    },
    "name": "mail_new_mail_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoFor on. Default 'all'.
actionYes
mailboxNoAddress or name of the company mailbox, e.g. info@shop.ua.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses that the write touches only the caller's own record, is undoable from the same surface, returns an ordinary result rather than a plan_token, and contrasts itself with destructive/outbound/financial tools that propose and wait. The telegram_linked prerequisite is a genuinely useful behavioral fact. The only gap is the mild tension with destructiveHint=true: the text frames the operation as benign and immediately executed without explaining what is lost when alerts are switched off.

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?

Front-loaded with the core identity and the decisive 'call it at once' rule, and every sentence carries operational information. It is nonetheless dense and quote-heavy, with overlapping example phrases in three languages that could be trimmed without losing meaning.

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?

For a 3-parameter mutation tool with no output schema, the definition covers prerequisites, defaults, scope, execution/confirmation semantics, return shape, and reversibility. An agent can invoke it correctly without asking follow-up questions.

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?

Schema coverage is 67%, and the description compensates strongly: it defines each action value (status lists mailboxes with the switch, on enables, off disables), explains what 'all' versus 'important' actually filters (mailings and automatic notices suppressed; confirmation codes always delivered, on their own line), and clarifies that 'mailbox' accepts either address or name. This is meaning well beyond the bare 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 description states a precise verb+resource+scope: the caller's OWN Telegram mail alerts for company mailboxes, with three named actions (status/on/off). Quoted multilingual utterances make the matching intent concrete, and the 'Only for the caller — never for another person' line separates it from sibling alert tools like enable_telegram_notifications and email_marketing_campaign_summary_alerts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit routing rules: a request to be notified IS action=on and should be called immediately with no status probe or clarifying question, mode defaults to 'all' unless important/без рассылок is stated, and status is the discovery path. It also defines scope when 'mailbox' is omitted (all company mailboxes of the active workspace) and names the fallback path when telegram_linked is false.

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.

Resources