Skip to main content
Glama
sanjar-x

Claudegram

by sanjar-x

health_check

Read-onlyIdempotent

Checks Telegram connection and session validity. Use force_reconnect to reset cached client after authentication. Returns diagnostic report with session path for troubleshooting.

Instructions

Проверка работоспособности: соединение с Telegram, валидность сессии.

Args: force_reconnect: True — сбросить singleton-клиент и переподключиться. Полезно после claudegram-auth, если сервер закэшировал старое no-auth состояние.

Возвращает HealthReport со всеми полями даже при ошибке — включая session_path/session_exists/data_dir для диагностики path mismatch между CLI и MCP-сервером.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
force_reconnectNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
messageNo
self_idNo
data_dirNo
connectedYes
authorizedYes
is_premiumNo
session_pathNo
self_usernameNo
session_existsNo
telegram_latency_msNo
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that force_reconnect resets the singleton client and reconnects, and that the tool always returns a full HealthReport even on errors, including diagnostic fields (session_path, session_exists, data_dir). This adds significant behavioral context not present in the annotations.

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 concise and well-structured: a one-sentence purpose, a clear Args section for the parameter, and a Returns section. Every sentence earns its place, with no redundancy or fluff.

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 one-parameter health-check tool with an output schema (HealthReport) already defined, the description covers the core purpose, the parameter's side effect, and the special guarantee of returning full data even on errors. This is complete for an agent 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 for force_reconnect contains only a name, type, and default, with no description (0% schema description coverage). The tool description fully compensates by explaining that True resets the singleton client and reconnects, and when this is useful, adding rich meaning 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 description clearly states the tool's purpose as a health check for Telegram connectivity and session validity ('Проверка работоспособности: соединение с Telegram, валидность сессии'). It uses a specific verb and resource, and the focus on diagnostics distinguishes it from sibling operational tools.

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 provides a concrete usage scenario: using force_reconnect after 'claudegram-auth' when the server may have cached a stale no-auth state. It implies general use for diagnosing connection issues, but does not explicitly mention alternatives or exclusion cases, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanjar-x/claudegram'

If you have feedback or need assistance with the MCP directory API, please join our Discord server