Skip to main content
Glama
grammy-mcp
by louietyj

savePreparedInlineMessage

Stores an inline message for a target user to send from a Mini App and returns a prepared message object for later delivery.

Instructions

Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.

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": {
      "user_id": "<user_id>",
      "result": "<result>"
    },
    "name": "savePreparedInlineMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultYesAn object describing the message to be sent
user_idYesUnique identifier of the target user that can use the prepared message
allow_bot_chatsNoPass True if the message can be sent to private chats with bots
allow_user_chatsNoPass True if the message can be sent to private chats with users
allow_group_chatsNoPass True if the message can be sent to group and supergroup chats
allow_channel_chatsNoPass True if the message can be sent to channel chats

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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, which tells the agent this is a non-destructive write with external effects, so the bar is lower. The description adds that the call returns a PreparedInlineMessage object, but says nothing about lifetime/expiry of the stored message, whether re-saving overwrites, or any permission requirements — meaningful gaps for a write tool.

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, front-loaded sentences with no filler: the core action first, the return value second. It is efficient, though extremely terse given the tool's complexity.

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?

Six parameters including a nested InlineQueryResult object are fully documented by the schema and there is no output schema, so the return-type sentence is useful. Still, the description never explains how the prepared message reaches the target user or how the allow_* flags constrain delivery, leaving the agent with an incomplete mental model of a moderately complex write.

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 user_id, result, and each allow_* flag, which sets the baseline at 3. The description mentions no parameter at all, so it adds no meaning beyond the structured fields.

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 concrete verb ("stores") plus a specific resource ("a message that can be sent by a user of a Mini App") and names the return type, so the agent knows this is a write that produces a prepared inline message. It does not, however, distinguish itself from the very similar sibling savePreparedKeyboardButton, so the differentiation criterion for a 5 is unmet.

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?

There is no guidance on when to use this tool versus savePreparedKeyboardButton, answerInlineQuery, or sendMessage, and no preconditions (e.g., Mini App context, user must be reachable) are stated. The only usage signal is implicit in "Mini App".

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