Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

setChatPhoto

Update a chat's profile photo by providing chat ID and image file. Requires admin can_change_info rights; returns True on success. Not applicable to private chats.

Instructions

Set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator with can_change_info rights. Returns True on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
photoYesNew chat photo, uploaded using multipart/form-data (InputFile)
chat_idYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full disclosure burden. It reveals the permission requirement, the private-chat exclusion, and the successful return value. It does not detail side effects like overwriting the existing photo, but 'set a new photo' reasonably implies replacement.

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?

Three short, purposeful sentences with no filler. The core action is front-loaded, followed by constraints and return behavior, and every sentence earns its place.

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 simple two-parameter mutation with no output schema, the description covers applicability, permission requirements, and the success result. Nothing an agent needs to decide whether and how to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already covers both parameters fully, including chat_id format and the multipart InputFile nature of photo. The description adds no parameter-specific meaning beyond the schema, so the baseline score of 3 is appropriate.

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?

States a precise verb and resource: 'Set a new profile photo for the chat.' This clearly differentiates it from related chat-mutation siblings like setChatTitle, setChatDescription, and deleteChatPhoto.

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?

Provides concrete usage constraints: private chats cannot have the photo changed, and the bot must be an administrator with can_change_info rights. This tells an agent when the call is valid and what conditions are required, though it does not explicitly mention alternatives.

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

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