Skip to main content
Glama

list_scheduled_messages

Read-only

Lists the user's scheduled messages: upcoming ones and the history of past sends (sent, failed, missed, cancelled; kept 90 days). Every filter is optional and they combine. It also lists send_message calls that were queued to go out automatically (kind "queued"), so it shows whether a queued message went out. Use it to answer "what's scheduled?", to check whether scheduled messages went out (and why one failed), and to find a message's id before cancelling or changing it. A repeating message shows one row per send: the next upcoming one plus its past sends. Returns { total, returned, offset, counts_by_status, upcoming (soonest first), history (newest first) }, each message in short form { id, series_id? (only when it differs from id), kind? ("queued" only), status, recipient { name, phone_display, canonical_jid }, text? (the first 150 characters; text_truncated: true when cut), media?, send_at (UTC), when (readable local time and how far away), recurrence, occurrence?, until?, sent_at?, message_id?, error? }. With id, that one message comes in full: { id, series_id (shared by every send of a repeating message), kind? ("queued" for a send_message that was queued to go out automatically; absent for scheduled messages), status (scheduled, processing, sent, failed, missed or cancelled), recipient (contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +).), text?, media?, send_at (UTC), send_at_local, when (readable local time and how far away), timezone, recurrence, occurrence? (0 = first send of a series), until?, sent_at?, message_id? (once sent), error? (why it failed or was missed) }. A page holds up to limit messages but stops early when they are long. If total is more than offset + returned, page with offset (the headline gives the next one) or narrow the filters. Works on the free plan too.

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": "list_scheduled_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOptional. One scheduled message by id.
toNoOptional. Recipient: part of a name (accents and case ignored), a phone number in any format, or a JID.
kindNoOptional. ["queued"]: only send_message calls queued to go out automatically; ["scheduled"]: only messages scheduled with schedule_message.
textNoOptional. Only messages whose text contains this (case-insensitive).
limitNoOptional. Maximum messages to return (default 20, max 100).
offsetNoOptional. Skip this many matches, for paging (default 0).
statusNoOptional. Only these statuses, e.g. ["scheduled"] for upcoming or ["failed", "missed"] for problems.
has_mediaNoOptional. true: only messages with a file; false: only text messages.
recurringNoOptional. true: only repeating messages; false: only one-off messages.
series_idNoOptional. Every send of one repeating message.
recurrenceNoOptional. Only these repeat frequencies.
send_afterNoOptional. Only sends at or after this ISO 8601 date-time with offset.
send_beforeNoOptional. Only sends at or before this ISO 8601 date-time with offset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Optional. [\"queued\"]: only send_message calls queued to go out automatically; [\"scheduled\"]: only messages scheduled with schedule_message.",
      +  "items": {
      +    "enum": [
      +      "scheduled",
      +      "queued"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description adds substantial behavior beyond that: 90-day retention of sent/failed/missed/cancelled history, one row per send for repeating messages, short-form vs full-form records controlled by `id`, and the fact that pages stop early when messages are long. It also notes free-plan availability, which is real operational context not present in any structured field.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and largely necessary given there is no output schema, but it arrives as one uninterrupted block with the response shape enumerated twice (list form and full form), repeating status values and field groupings. It would read far better front-loaded with the use cases, then the return shape, rather than burying the guidance mid-paragraph.

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?

With 13 optional parameters, no output schema, and no destructive behavior to warn about, the description covers everything an agent needs: what is returned, in what order, how to page when total exceeds offset + returned, when to narrow filters, and how single-record retrieval differs. Nothing material is missing for correct invocation.

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 3 is the baseline, but the description adds meaning the schema does not: filters combine and are all optional, `id` switches the response to the full record shape, and `limit` can return fewer rows than requested due to message length. These are behavioral nuances of the parameters rather than restatements.

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?

Opens with a specific verb and resource ("Lists the user's scheduled messages") and immediately defines the scope: upcoming plus past-send history, and explicitly includes send_message calls queued with kind "queued". That scope statement distinguishes it from schedule_message and cancel_scheduled_message without the agent needing to open any 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?

Gives three concrete use cases ("what's scheduled?", checking whether sends went out and why one failed, finding an id before cancelling or changing it), which effectively routes the agent toward cancel_scheduled_message/edit flows. It doesn't explicitly say when to prefer an alternative or when not to use it, so it falls short of a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.