telegram-mcp defines 2 tools with basic schemas and descriptions, but falls short of production quality on multiple dimensions. Tool naming is action-oriented (send_*, check_*), which is good; however, descriptions are minimal (under 100 chars each), parameter descriptions lack depth and validation guidance, output schemas are completely undocumented, and error handling is present in code but not reflected in tool definitions. The schema for send_notification is well-formed with enum constraints on 'urgency', but check_notification_response lacks input validation details. Critically, neither tool documents what it returns, forcing LLMs to infer structure. The implementation shows blocking behavior (waiting for user responses in send_notification) that is not captured in tool descriptions, creating a mismatch between documented and actual behavior.
Tool descriptions lack actionable context and are too brief (both under 100 chars). Descriptions do not explain WHEN to use each tool, what prerequisites exist, or how they compose together. LLMs cannot infer that send_notification blocks waiting for a response.
Output schemas are completely undocumented. Neither tool declares what fields it returns, their types, or their semantics. LLMs must guess the structure of the response, risking misinterpretation of results and breaking downstream tool chains.
Parameter descriptions lack format, range, and validation guidance. 'timeout_seconds' has no indication of min/max bounds, default behavior, or what happens on timeout. 'message' parameter has no length limits or encoding requirements documented.
send_notificationcheck_notification_response
Recommendations
Expand send_notification description to 150-200 chars: 'Send a text message notification to a Telegram user and wait for their response (up to 30 seconds). Use this to ask the user questions or request approval. Returns the user's response text or a timeout message if no reply is received within the timeout window.'
Expand check_notification_response description: 'Check if a user has replied to a previously sent notification. Only needed if you want to check an old message ID; send_notification waits automatically. Returns the user's reply text or a timeout message.'
Add explicit bounds to parameters: 'timeout_seconds: number (1 - 300, default 30). How long to wait before giving up. Longer waits block the agent.'
Add length constraint to message parameter: 'message: string (1 - 4096 characters, required). The text to send. Markdown formatting is supported.'
Document output schema in tool descriptions. E.g. for send_notification: 'Returns: { content: [{ type: 'text', text: '<user response or timeout message>' }], isError?: boolean }'
Add tool annotations via inputSchema or a new 'annotations' field (when MCP 0.7.0 is released). For send_notification, set destructiveHint to true and include a note: 'This tool sends a real message to the user.'
Add error recovery guidance: 'If Telegram API errors occur, verify TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables are set correctly. If timeouts occur, increase timeout_seconds or ask the user to check their Telegram connection.'
send_notification has undocumented blocking behavior: it waits up to 30 seconds for a user response before returning. This is not stated in the tool description, causing LLMs to expect immediate return and potentially timeout or retry prematurely.
check_notification_response appears redundant given send_notification's built-in waiting behavior. The purpose, differences, and when to call one vs the other are not documented, forcing the LLM to reason about overlapping functionality.
No error recovery guidance in tool descriptions. Errors like 'Failed to send Telegram notification' are documented in code but tool definitions do not tell LLMs what to do: retry? Check credentials? Ask the user? This violates pattern:recovery-guide.
Missing tool annotations. Neither tool declares destructiveHint (send_notification is WRITE), readOnlyHint (check_notification_response is READ), or idempotentHint. These hints help agents plan safely and understand retry semantics.
send_notificationcheck_notification_response
Clarify the relationship between send_notification and check_notification_response in both descriptions. Recommend that most workflows use only send_notification, which waits automatically.
Include a parameter describing the project context (already present as 'project') to help users understand notification origin, but document it better: 'project: string (required). The name of the project or task context. Shown in the notification prefix for clarity.'
Consider adding optional response_timeout_ms parameter to send_notification for advanced use cases, with clear guidance: 'Advanced: Override the wait duration in milliseconds. Defaults to 30000 (30 seconds). Set to 0 to send without waiting.'
Add a structured output example (even if not formally documented in the schema). E.g., '"Example output: { content: [{ type: \"text\", text: \"User replied: Yes, proceed\" }] }'
Document what happens if the user never replies: 'If no response is received within timeout_seconds, the tool returns a message indicating the timeout and suggests asking the user to restart the client.'