Skip to main content
Glama

schedule_message

Schedules a WhatsApp message (text, or a file with optional caption) to one person or group for a later time, once or repeating (e.g. "every Monday at 9:00"). Paid plan only: on the free plan the call is refused with a note on how to subscribe. to works like send_message's and is resolved now, so a wrong name fails right away. Time: pass send_at as an ISO 8601 date-time with the user's UTC offset for that date (e.g. "2026-10-10T09:00:00-06:00"), and timezone as the user's IANA timezone (e.g. "America/Mexico_City"). Use the timezone and current time you know for the user; if you don't know them, ask. Mind daylight saving time: the offset must be the one in effect on that date. The first send must be in the future and at most a year ahead. Messages go out within about a minute of send_at; if the server is down for more than an hour past send_at, that send is marked missed instead of being sent late. Repeats: recurrence once (default), daily, weekly, biweekly, monthly, quarterly, semesterly or yearly, always at the same local time (a monthly message on the 31st goes on the last day of shorter months); optional until (a date like "2026-12-31", or a date-time with offset) ends the series. Each send is tried once: a failure is recorded (see list_scheduled_messages) and the series continues. Quoted replies aren't supported. Files: media.url or media.message_id (checked now and fetched again at send time; message_id only for one-off messages, so prefer a link); media.data isn't accepted. The result gives the local time and how long until it (when) and, for repeats, the first sends: read them back to the user. To change a scheduled message, cancel it with cancel_scheduled_message and schedule it again. At most 100 upcoming scheduled messages per account. If you are writing the text yourself rather than sending words the user gave you, call get_writing_style for this chat first and write it the way the user writes; skip that for dictated text. WhatsApp doesn't render Markdown: use bold, italic, strikethrough and "- " lists, and never send tables, # headings, double asterisks or text links. Write a table as short lines (e.g. "Ana: $200") and paste URLs plain. Only format when it suits the message. To tag (mention) someone in a group so they get notified, write @ followed by their full phone number with country code, digits only (e.g. "@5215512345678", not "@Ana" or "@+52 55…"); WhatsApp shows their name in its place. Get the number from phone_display (read_chat_history participants or search_contacts). Never use the digits of a lid_jid. Messages that start new conversations have extra protection against WhatsApp's anti-spam bans and may be delayed or refused; the result says so and when. Sending the same text, especially with a link, to many people who haven't written to the user can get their number temporarily or permanently banned, even when spaced out: write each person their own message (not just a name swap), and warn the user about this risk when they ask for outreach. Confirm the recipient, text, file and time with the user first unless they already gave them. Returns the scheduled message { 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) } plus next_occurrences for repeats.

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": {
      "to": "<to>",
      "send_at": "<send_at>",
      "timezone": "<timezone>"
    },
    "name": "schedule_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesContact name, phone number with country code, chat JID (person or group), or a group's exact name.
textNoThe message text. With media, the caption of a photo, video or document. Required unless media is given.
mediaNoOptional. A file to send: pass exactly one of url or message_id. The file is fetched when the message is sent.
untilNoOptional, repeats only. Last day of the series: a date ("2026-12-31", through the end of that day) or a date-time with offset.
send_atYesWhen to send (the first send, for repeats): ISO 8601 with the UTC offset in effect on that date, e.g. "2026-10-10T09:00:00-06:00".
timezoneYesThe user's IANA timezone, e.g. "America/Mexico_City". Repeats keep the same local time in it, across daylight saving changes.
recurrenceNoOptional. How often to repeat (default once).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The tool definition exceeds behavioral transparency expectations by detailing server response times, DST handling requirements, spam prevention warnings, formatting constraints (e.g., no Markdown), and recipient tagging syntax.

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?

While extremely detailed and long, the necessary length is fully justified by the high complexity of the task (handling time, recurrence, media, and WhatsApp platform rules). The description is logically segmented into clear sections like 'Repeats', 'Files', and 'WhatsApp formatting.'

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?

Given the complexity of managing a time-delayed, recurring, paid, media-fetching operation with platform-specific rules, the definition is maximally complete. No necessary constraint or failure mode is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, the description adds deep semantic value, specifying critical constraints on parameter formats like requiring ISO 8601 with UTC offset for `send_at`, IANA format for `timezone`, and the rules governing monthly recurrence on the 31st.

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 is highly explicit, immediately identifying the core function as scheduling a message (text or file) for a future time, and distinguishes this capability through the context of repetition and timing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides strong usage constraints, such as stating it is a 'Paid plan only' feature and explicitly directs the user to use `cancel_scheduled_message` to modify existing entries, offering clear 'when-to-use' guidance.

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.