Skip to main content
Glama
grammy-mcp
by louietyj

sendChatAction

Shows a temporary typing, upload, or recording status in a Telegram chat so users know the bot is processing their request.

Instructions

Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.

Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo. The user will see a “sending photo” status for the bot.

We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.

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>",
      "action": "<action>"
    },
    "name": "sendChatAction"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesType of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes.
chat_idYesUnique identifier for the target chat or username of the target bot or supergroup in the format `@username`
message_thread_idNoUnique identifier for the target message thread or topic of a forum; for supergroups and private chats of bots with forum topic mode enabled only
business_connection_idNoUnique identifier of the business connection on behalf of which the action will be sent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the mutation/safety profile is largely covered. The description still adds real value beyond them by disclosing that the status expires within 5 seconds and is cleared when a message arrives, and that it returns True on success. It does not mention rate limits or per-chat cooldowns, which matter for a status-broadcast call.

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?

The purpose statement and the 5-second expiry are front-loaded, and the example earns its space by illustrating action choice. The 'Instead of sending a text message along the lines of Retrieving image, please wait…' clause restates the point already made and could be trimmed.

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

Completeness3/5

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

For a simple 4-parameter call with no output schema, the definition covers purpose, timing behavior and success return. It leaves gaps an agent would care about at invocation time: whether calling it repeatedly is allowed, whether it works in all chat types, and what failure looks like.

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

Parameters4/5

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

Schema coverage is 100%, so all four parameters are already documented in the schema. The description adds modest meaning by tying the action value to the user-visible status ('action = upload_photo ... user will see a sending photo status'), which helps with enum selection. chat_id, message_thread_id and business_connection_id go unmentioned in the prose.

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 uses a specific verb-and-resource framing: telling the user something is happening on the bot's side, plus a concrete example (ImageBot sets action=upload_photo so the user sees 'sending photo'). It implicitly distinguishes itself from sendMessage by saying the bot may use this instead of a text message, though it never names a sibling tool explicitly.

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?

It gives clear usage context: use when a response will take a noticeable amount of time, and it sketches the alternative (just send a text message) for quick replies. It stops short of explicit 'do not use' cases such as repeated refreshes within the 5-second window.

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