Skip to main content
Glama
grammy-mcp
by louietyj

editMessageLiveLocation

Destructive

Update the coordinates of a live location message in a Telegram chat, with optional heading, accuracy, and live period, before it expires.

Instructions

Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chat_id": "<chat_id>",
      "message_id": "<message_id>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "editMessageLiveLocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
headingNoThe direction in which user is moving, in degrees; 1-360. For active live locations only.
latitudeYesLatitude of new location
longitudeYesLongitude of new location
message_idYesIdentifier 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_markupNoAn object for a new inline keyboard
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_radiusNoThe maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation profile is known. The description earns credit for disclosing the temporal constraint (edits are only valid until live_period expires or editing is disabled) and the conditional return contract (edited Message vs. True for inline messages), which the annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loading purpose before the expiry constraint and the return contract. No filler, though the return-value sentence is useful mainly because no output schema exists.

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 no output schema, the description helpfully supplies the return semantics (Message object or True). Combined with the fully documented 10-parameter schema and annotations covering safety, the definition gives an agent enough to call it correctly; only explicit sibling routing 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?

Schema description coverage is 100%, so every one of the 10 parameters is already documented, including live_period's bounds and heading's degrees. The description only restates the live_period expiry concept and adds no formats, defaults, or constraints beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'edit live location messages'. It also signals the non-inline scope through the return-value clause ('if the edited message is not an inline message'), which implicitly separates it from editMessageLiveLocationInline, though it never names that sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the lifecycle constraint clearly – the location can be edited only until live_period expires or until stopMessageLiveLocation disables editing – which implies when the call is valid. It does not explicitly route the agent between this tool, editMessageLiveLocationInline, or the stop tools, so the alternative selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools