A FastMCP-based server for sending Telegram notifications and checking replies to messages.
The server defines 2 tools with basic descriptions and schemas. However, critical gaps reduce quality significantly: (1) Both tool descriptions lack depth and context for LLM selection, 'Send a Telegram alert' and 'Check for replies' are minimal (under 100 chars) and omit WHEN to use, prerequisites, or consequences. (2) Parameter descriptions are present but generic, 'The alert message to send' lacks format guidance; 'The timeout in seconds' lacks range constraints. (3) Output schemas are inferred from code (hard-coded response structure with 'content' and 'isError' fields) rather than explicitly documented, LLMs must reverse-engineer the return contract. (4) No input validation guidance or error recovery hints in descriptions. (5) send_alert has a side effect (modifies state by sending a message) but the description does not explicitly state this, violating the command-tool pattern. (6) Both tools lack idempotency guarantees, repeated calls could send duplicate alerts or miss replies due to timing. The tools are functional but fall short of production-grade clarity for agentic selection and chaining.
Check for replies to a specific message ID.
Send a Telegram alert with customizable urgency.
Tool descriptions are minimal and lack LLM selection context. 'Send a Telegram alert with customizable urgency' (55 chars) and 'Check for replies to a specific message ID' (43 chars) do not explain WHEN to use, what state changes occur, or dependencies. Baseline for A+ tools is 50-200 chars with clear intent and context.
Output schemas are not formally documented. Code shows a hard-coded response structure (dict with 'content' array and optional 'isError' bool), but there is no JSON Schema definition or docstring specifying return types, field types, or when 'isError' is set. LLMs must infer the contract from implementation.
send_alert has a destructive/side-effecting nature (sends a message, modifies chat state) but the description does not explicitly state this. The command-tool pattern requires clear labeling of state-modifying tools so agents know which calls are safe to retry.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 47 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
Parameter descriptions lack actionable constraints. 'urgency' accepts 'high', 'medium', 'low' (enum values visible in code) but the parameter description does not list these, it says 'The urgency level (high, medium, or low)' but this is buried and LLMs may hallucinate variants. 'timeout_seconds' lacks a range constraint (1 - 3600? 0 - unlimited?).
No error recovery guidance in tool descriptions. Code returns TelegramError messages inline, but LLMs are not told whether errors are retryable, what to do next, or which tools to call for remediation. E.g., 'Failed to send alert: connection timeout' gives no guidance.
Idempotency is not guaranteed. send_alert polls for a reply within a hard-coded 20-second window and returns the first message received. If called twice in quick succession, it may receive the same reply or miss a new one. check_reply has similar timing-dependent behavior. No idempotent-operation pattern documented.
No pagination or result limiting guidance. If the Telegram API returns many updates, the tools may be overwhelmed. No documented cap on result count or guidance on when results are truncated.