Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: wait for reply

bot_wait_for_reply

Waits for a chat reply or button press, then returns new read messages; use after sending a message and check timed_out=true when nobody responds.

Instructions

Wait until someone writes in a chat or presses a button, then return the new messages (marked read).

Use after bot_send_message. Returns timed_out=true if nobody answered.

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

Input Schema

NameRequiredDescriptionDefault
chat_idYesNumeric chat id.
timeout_secondsNoSeconds to wait.
after_message_idNoOnly messages newer than this id (the message_id you sent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / after_message_id / description
      Previous value: -"Only messages newer than this id: pass the message_id you sent; a button press on it counts."New value: +"Only messages newer than this id (the message_id you sent)."
    • changedInput schema / properties / chat_id / description
      Previous value: -"Numeric chat id (see bot_list_chats)."New value: +"Numeric chat id."
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long to wait; use less if your client cancels long calls."New value: +"Seconds to wait."
  2. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / after_message_id / description
      Previous value: -"Only messages newer than this one. Pass the message_id of the question you sent; a button press on it counts."New value: +"Only messages newer than this id: pass the message_id you sent; a button press on it counts."
    • removedInput schema / properties / after_message_id / title
      Removed value: -"After Message Id"
    • changedInput schema / properties / chat_id / description
      Previous value: -"Numeric chat id (from bot_get_new_messages or bot_list_chats)."New value: +"Numeric chat id (see bot_list_chats)."
    • removedInput schema / properties / chat_id / title
      Removed value: -"Chat Id"
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long to wait. Use a shorter wait if your MCP client cancels long tool calls."New value: +"How long to wait; use less if your client cancels long calls."
    • removedInput schema / properties / timeout_seconds / title
      Removed value: -"Timeout Seconds"
    • removedInput schema / title
      Removed value: -"bot_wait_for_replyArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_wait_for_replyDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=false and openWorldHint=true, but the description adds the crucial reason: returned messages are marked read, which explains the non-read-only annotation. It also discloses the timed_out=true outcome for nobody answering, which annotations do not cover. It does not mention that the call blocks, though that is implied by 'Wait until'.

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?

Three short sentences, front-loaded with the blocking behavior and effect, then the usage context, then the failure signal. No filler or repetition.

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?

With no output schema, the description carries the return-value burden and does so adequately: new messages plus a timed_out flag. Minor gaps remain, such as what happens to the message filter when after_message_id is omitted, but nothing essential for calling the tool is missing.

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%, so chat_id, timeout_seconds and after_message_id are already documented in the schema. The description adds no syntax or format detail beyond reinforcing that the call waits and can time out, so 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?

States a specific verb and outcome: wait for a chat message or button press, then return new messages. The phrasing 'Wait until someone writes in a chat or presses a button' clearly separates it from the pure read siblings like bot_get_new_messages and bot_read_chat.

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?

Explicitly positions the tool as a follow-up to bot_send_message, which gives the agent a clear usage context. It does not, however, state when to prefer this over bot_get_new_messages (non-blocking poll), leaving that choice to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.