Skip to main content
Glama
grammy-mcp
by louietyj

sendRichMessageDraft

Streams partial rich messages as temporary 30-second draft previews during generation. Send the complete message afterward to persist the final chat content.

Instructions

Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you must call sendRichMessage with the complete message to persist it in the user's chat. Returns True on success.

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>",
      "draft_id": "<draft_id>",
      "rich_message": "<rich_message>"
    },
    "name": "sendRichMessageDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target private chat
can_stopNoPass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_message_generation” if the user presses the button.
draft_idYesUnique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated.
keep_on_stopNoPass True to keep the draft in the chat when the button is pressed. The draft will still disappear after a short time or if the bot sends a message. To fully preserve the partial draft, the bot should send it as a new message.
rich_messageYesThe partial message to be streamed
message_thread_idNoUnique identifier for the target message thread

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), it discloses the two facts that most affect correct use: the draft is ephemeral with a 30-second preview lifetime, and it will not persist unless sendRichMessage is called. It also states the return value (True on success), which no output schema provides.

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 sentences, no filler; the streaming purpose comes first and the ephemerality/persistence constraint follows immediately. Every clause carries information the agent needs.

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 6-parameter tool with a nested rich_message object and no output schema, the description covers purpose, lifetime, persistence requirement, and return value. The nested rich_message payload structure is left entirely to the schema, which is acceptable given its 100% coverage, but the description could note that drafts cannot be edited into a final message.

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 coverage is 100% and every parameter, including can_stop, keep_on_stop, and draft_id animation semantics, is documented in the schema itself. The description adds no parameter-level meaning 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.

Purpose5/5

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

The description gives a specific verb and resource ('stream a partial rich message to a user while the message is being generated') and explicitly contrasts it with sendRichMessage for the finalized version, so an agent can separate it from the many send* siblings without opening a schema.

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 clearly states the usage window (during generation) and names the required follow-up (call sendRichMessage once output is finalized), which is strong routing guidance. It does not address when to prefer adjacent draft alternatives such as sendMessageDraft, so it stops short of full when/when-not coverage.

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