Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

editMessageLiveLocation

Update the coordinates of an active live location message before its live_period ends. Modify heading, accuracy, or alert radius as needed.

Instructions

Edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. Returns the edited Message on success, or True if the message is an inline message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idNoRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername).
headingNoDirection in which the user is moving, in degrees. Must be between 1 and 360 if specified.
latitudeYesLatitude of new location.
longitudeYesLongitude of new location.
message_idNoRequired if inline_message_id is not specified. Identifier of the message to edit.
live_periodNoNew period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged.
reply_markupNoA JSON-serialized object for an inline keyboard.
inline_message_idNoRequired if chat_id and message_id are not specified. Identifier of the inline message.
horizontal_accuracyNoThe radius of uncertainty for the location, measured in meters; 0-1500.
business_connection_idNoUnique identifier of the business connection on behalf of which the message to be edited was sent.
proximity_alert_radiusNoMaximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.2/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 behavioral transparency burden. It discloses the temporal edit constraint, the stopMessageLiveLocation escape hatch, and the return behavior for inline vs. non-inline messages. It omits permissions and failure modes, but the core side effects and boundaries are clearly stated.

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?

Two compact sentences with no fluff. The core operation is front-loaded, followed by the key boundary condition and return type. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, a nested reply_markup object, and no output schema, the description supplies essential lifecycle and return-value context that the schema cannot convey. It does not mention every restriction, such as the message having been sent by the bot, but the rich schema plus focused description is largely sufficient.

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?

Schema description coverage is 100%, so the schema already documents each parameter and its conditional requirements. The description adds no parameter-level detail, which is acceptable given the high schema coverage baseline.

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 states a specific verb ('Edit') and resource ('live location messages'), which clearly distinguishes it from sibling edit tools like editMessageText and editMessageMedia. The lifecycle sentence about live_period and stopMessageLiveLocation further anchors exactly which messages this tool targets.

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 gives clear usage context by explaining when editing is allowed (until live_period expires or stopMessageLiveLocation is called). It does not explicitly exclude sibling tools like editMessageText or editMessageCaption, but the context strongly implies this is only for live location messages.

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