Skip to main content
Glama
grammy-mcp
by louietyj

editMessageLiveLocationInline

Destructive

Edit a live location in an inline Telegram message by updating latitude, longitude, heading, and related parameters before the live period expires.

Instructions

Use this method to edit live location inline 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": {
      "inline_message_id": "<inline_message_id>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "editMessageLiveLocationInline"
  }
}

Input Schema

NameRequiredDescriptionDefault
headingNoThe direction in which user is moving, in degrees; 1-360. For active live locations only.
latitudeYesLatitude of new location
longitudeYesLongitude of new location
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
inline_message_idYesIdentifier 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_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.5/5.0
Behavior3/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 risk is known. The description usefully adds the return contract (edited Message for non-inline, True for inline) and the live_period expiry rule, but says nothing about error conditions, permission requirements, or whether a no-op edit is rejected.

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 sentences, front-loaded with purpose and free of padding; the return-value sentence is the only one that could be trimmed for length but it carries real information.

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?

For a nine-parameter mutation with full schema coverage and no output schema, the description covers purpose, lifetime constraint, and return shape. The main gap is failure modes and edit permissions, which is modest against otherwise rich structured data.

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 all nine parameters including live_period and heading are documented in the schema itself. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource ('edit live location inline messages'), and the inline qualifier separates it from the non-inline sibling editMessageLiveLocation. It never explicitly contrasts the two, but an agent can identify the target from the name plus description.

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?

The description gives a lifecycle constraint ('can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation'), which implies when this call will fail and points at a sibling that ends editing. It does not state when to prefer this over editMessageLiveLocation or any prerequisite about who may edit the message.

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