Skip to main content
Glama
grammy-mcp
by louietyj

sendLocation

Send a map point to a Telegram chat by specifying coordinates; use it to share locations, live updates, or proximity alerts in bot messages.

Instructions

Use this method to send point on the map. On success, the sent Message 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>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "sendLocation"
  }
}

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 the location
longitudeYesLongitude of the location
live_periodNoPeriod in seconds during which the location will be updated (see Live Locations), must be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely. Must be 0 for ephemeral messages.
reply_markupNoAdditional interface options. An object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
protect_contentNoProtects the contents of the sent message from forwarding and saving
reply_parametersNoDescription of the message to reply to
message_effect_idNoUnique identifier of the message effect to be added to the message; for private chats only
message_thread_idNoUnique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
horizontal_accuracyNoThe radius of uncertainty for the location, measured in meters; 0-1500
reply_to_message_idNoUse `reply_parameters` instead.
allow_paid_broadcastNoPass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.
disable_notificationNoSends the message silently. Users will receive a notification with no sound.
business_connection_idNoUnique identifier of the business connection on behalf of which the message will be sent
proximity_alert_radiusNoThe maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
direct_messages_topic_idNoIdentifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
suggested_post_parametersNoAn object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
ephemeral_message_parametersNoAn object containing the parameters of the ephemeral message to send

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already state readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write/side-effect profile is covered. The description adds only the success return value ("the sent Message is returned"), which is useful given there is no output schema, but says nothing about the live-location lifecycle, ephemeral messages, paid broadcasting, or the fact that this posts to an external chat.

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?

Two short sentences, front-loaded with the action and ending with the result. Nothing is wasted, though the brevity is under-specification rather than disciplined concision.

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

Completeness2/5

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

For a mutation tool with 19 parameters, three nested object types, live-location modes and ephemeral/business-connection variants, two sentences are far too thin. The return value is noted, but the operational modes an agent must choose between (live_period, proximity_alert_radius, heading, ephemeral_message_parameters) are left entirely to the schema.

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 explains all 19 parameters including the nested reply_markup, reply_parameters and ephemeral_message_parameters objects. The description adds no parameter meaning beyond that, which is the baseline 3 case when the schema does all the work.

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

Purpose3/5

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

The description gives a verb and resource ("send point on the map"), but the phrasing is awkward and doesn't clarify the distinction from sendVenue (a named place) or sendLivePhoto. An agent can guess it sends a geographic coordinate, but the description doesn't confirm the latitude/longitude payload.

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

Usage Guidelines2/5

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

No when-to-use guidance and no alternatives named, even though the sibling set contains sendVenue (a place with title/address) and sendLivePhoto, which are easy to confuse with a raw location point. Nothing explains that live locations need editMessageLiveLocation/stopMessageLiveLocation to update or terminate.

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