Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: new messages

bot_get_new_messages

Fetches messages people sent the bot since the last check from all chats, oldest first, and marks them read for polling new inputs.

Instructions

Get messages people sent the bot since the last check, from all chats, oldest first, and mark them read.

Messages carry chat_id, kind, text and file_id for media. Fails while a webhook is set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bot_get_new_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / limit / default
      Previous value: -50New value: +20
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / title
      Removed value: -"bot_get_new_messagesArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_get_new_messagesDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations say readOnlyHint=false and destructiveHint=false; the description explains exactly why by disclosing the state change ('mark them read'), which is non-obvious and irreversible in effect. It also documents the failure mode (webhook conflict) and enumerates returned fields (chat_id, kind, text, file_id), so the agent knows both side effects and payload shape.

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 tight sentences, no filler. The core action and scope come first, the payload description and the blocking condition follow — appropriate front-loading for a polling tool.

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

Completeness5/5

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

Covers the four things an agent needs: what is returned, in what order, what side effect occurs, and what condition causes failure. With no output schema, the field enumeration compensates adequately, and the single trivial parameter is fully specified by 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?

Single optional 'limit' parameter with 100% schema description coverage and a documented default and range, so the schema carries the semantics. The description adds nothing about limit behavior (e.g., what happens when more messages are pending than the limit), which is the baseline 3 case.

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 resource ('Get messages people sent the bot') plus precise scope ('since the last check, from all chats, oldest first') and the side effect ('mark them read'). This scope/ordering language distinguishes it from siblings like bot_read_chat and bot_search_messages without needing their schemas.

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?

'Since the last check' establishes the polling context and 'Fails while a webhook is set' gives a hard precondition that tells the agent when this will not work. It does not explicitly name alternatives (e.g., bot_read_chat for history or bot_wait_for_reply for blocking), so a routing statement is the one missing piece.

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