Skip to main content
Glama

get_unanswered_chats

Read-only

Lists one-to-one chats whose last message came from the other person within the last hours_ago hours (default 24, max 72), so the user may owe them a reply; a reaction from the user after it (e.g. ๐Ÿ‘) counts as a reply. Groups aren't included. Checks the 50 most recent active chats in that window, newest first; an empty list means none of them is waiting for a reply. Each chat has its chat_jid, the time and sender of the last message, a preview, and the 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 +). Use it for "who do I need to reply to?". For a general look at recent activity, including groups and chats where the user wrote last, use get_recent_chats instead. With waiting_on: "them" it lists the reverse, for following up on leads, quotes or payments that went quiet: one-to-one chats where the user sent the last message at least days days ago (default 3, max 30; chats quiet for over 90 days are left out) and the other person hasn't replied or reacted since, most recently sent first, at most 30. For "who hasn't answered what I sent recently / in the last 24 hours?", pass waiting_on: "them" with hours_ago (e.g. 24) instead of days: it then lists chats where the user wrote last within that many hours. Each has its chat_jid, the contact fields, the user's last message (last_message, shortened; last_message_id), last_message_time, days_waiting and hours_waiting. For follow-ups: read the chat with read_chat_history first, then draft one personal follow-up per person that builds on that conversation (call get_writing_style for the chat), show the drafts to the user and send only the ones they approve. Suggest at most 2-3 follow-ups per person in total (count earlier ones in the chat) and stop once they reply. Never send the same text to many people.

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

Input Schema

NameRequiredDescriptionDefault
daysNoOnly for waiting_on "them": minimum days since the user's last message (default 3, max 30), for chats that went quiet. Ignored when hours_ago is given.
hours_agoNoA window, max 72. waiting_on "me": chats whose last message came within this many hours (default 24). waiting_on "them": chats where the user wrote last within this many hours (replaces days).
waiting_onNo"me" (default): chats waiting for the user's reply. "them": chats where the user wrote last and is waiting for the other person.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Only for waiting_on \"them\": minimum days since the user's last message (default 3, max 30)."New value: +"Only for waiting_on \"them\": minimum days since the user's last message (default 3, max 30), for chats that went quiet. Ignored when hours_ago is given."
    • changedInput schema / properties / hours_ago / description
      Previous value: -"Fetch unanswered chats active within this many hours (default 24, max 72). Only for waiting_on \"me\"."New value: +"A window, max 72. waiting_on \"me\": chats whose last message came within this many hours (default 24). waiting_on \"them\": chats where the user wrote last within this many hours (replaces days)."
  2. Changed3 schema fields changed
    • addedInput schema / properties / days
      Added value: +{
      +  "description": "Only for waiting_on \"them\": minimum days since the user's last message (default 3, max 30).",
      +  "type": "number"
      +}
    • changedInput schema / properties / hours_ago / description
      Previous value: -"Fetch unanswered chats active within this many hours (default 24, max 72)."New value: +"Fetch unanswered chats active within this many hours (default 24, max 72). Only for waiting_on \"me\"."
    • addedInput schema / properties / waiting_on
      Added value: +{
      +  "description": "\"me\" (default): chats waiting for the user's reply. \"them\": chats where the user wrote last and is waiting for the other person.",
      +  "enum": [
      +    "me",
      +    "them"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / hours_ago / description
      Previous value: -"Mandatory. Fetch unanswered chats active within this many hours (e.g. 24)."New value: +"Fetch unanswered chats active within this many hours (default 24, max 72)."
    • removedInput schema / required
      Removed value: -[
      -  "hours_ago"
      -]
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish read-only and non-open-world behavior, but the description adds substantial operational context: it checks only the 50 most recent active chats, caps hours_ago at 72 and days at 30, excludes chats quiet for over 90 days, and returns at most 30 reverse-mode results. It also explains that a user reaction counts as a reply and that groups are excluded, which materially affects interpretation of results.

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 main purpose is front-loaded and the description is organized, but it is very long for a three-parameter list tool. A sizable portion is procedural follow-up guidance involving read_chat_history, get_writing_style, drafting, and sending, which, while useful, inflates the definition beyond its core selection and invocation needs.

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 no output schema, the description compensates by describing returned fields such as chat_jid, contact fields, last_message, last_message_time, and days_waiting. It covers both modes, result caps, defaults, exclusions, and edge cases, leaving little an agent would need to infer before calling it correctly.

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 description coverage is 100%, so the baseline is 3, but the description adds useful semantic detail about how parameters combine: hours_ago replaces days in waiting_on: "them" mode, defaults differ by mode, and give an example of using hours_ago: 24 for recent unanswered messages. It reinforces rather than merely repeats the schema.

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 opens with a specific verb and resource: lists one-to-one chats whose last message came from the other person within a time window, so the user may owe a reply. It explicitly distinguishes this tool from get_recent_chats for general recent activity, and clearly describes the reverse waiting_on: "them" mode.

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 names the exact question this tool answers ("who do I need to reply to?") and points the agent to get_recent_chats for a general look at recent activity, including groups. It also gives detailed when-to-use guidance for the follow-up mode, including prerequisite reads, drafting, user approval, and a 2-3 follow-up cap.

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.