Skip to main content
Glama

Telegram MCP Server

by batianVolyc

telegram_get_context_info

Retrieve and send current session context information to Telegram, including token usage statistics, session details, and system configuration for remote AI assistant monitoring.

Instructions

获取并发送当前会话的上下文信息到 Telegram ⚠️ 重要:调用此工具时,你应该: 1. 检查系统提供的 token 使用量信息(<budget:token_budget> 标签) 2. 将 token 使用情况包含在发送的信息中 3. 发送完整的上下文信息(会话信息 + token 使用情况) 返回信息应包括: - 会话 ID 和项目路径 - Token 使用量(已使用 / 总量 / 剩余 / 使用率) - 会话运行时间 - 系统信息 - Telegram 配置 示例输出格式: 📊 会话上下文信息 🆔 会话: testtg 📁 项目: /path/to/project 💾 Token 使用: - 已使用: 41,853 tokens - 总容量: 1,000,000 tokens - 剩余: 958,147 tokens - 使用率: 4.2% ⏱️ 运行时间: 15 分钟 🖥️ 系统: Darwin 24.6.0 🐍 Python: 3.14.0

Input Schema

NameRequiredDescriptionDefault
token_totalNo总 token 容量(从系统预算信息中获取)
token_usedNo已使用的 token 数量(从系统预算信息中获取)

Input Schema (JSON Schema)

{ "properties": { "token_total": { "default": 1000000, "description": "总 token 容量(从系统预算信息中获取)", "type": "integer" }, "token_used": { "description": "已使用的 token 数量(从系统预算信息中获取)", "type": "integer" } }, "type": "object" }

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/batianVolyc/telegram-mcp-server'

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