Skip to main content
Glama

Find mail waiting on a reply

waiting_on
Read-onlyIdempotent

Messages the mailbox owner sent that nobody has answered, in one call. Reads the Sent folder for messages sent between lookbackDays (default 14, up to 60) and olderThanDays (default 3) ago and, for each conversation, whether anyone else has written since the owner's latest message. A reply is a person's message, matched by its reply headers and, for mail programs that leave those out, as a message from a recipient with the same subject; an out-of-office, a read receipt or a bounce is not one. Replies are looked for in the inbox and the archive, or in All Mail on Gmail. Mail sent only to the owner or to no-reply addresses is left out, as is anything addressed To excludeAddresses. Oldest first, with the days each has waited and how many times the owner has chased it since the other side last wrote. When a reply folder held more than 2,000 messages, its oldest were not read: each entry's answerCheck says whether its reply could be fully checked, and partial entries come last. A follow-up drafted with draft_reply on the uid given goes to the original recipients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMost messages to return. Defaults to 25.
lookbackDaysNoHow far back to read Sent. Defaults to 14; must be more than olderThanDays.
olderThanDaysNoOnly messages sent at least this many days ago. Defaults to 3.
excludeAddressesNoAddresses ("boss@client.com") or domains ("@client.com") never to list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safe-read profile, yet the description goes well beyond: the 2,000-message truncation limit, the `answerCheck`/`partial` fields, partial entries sorted last, oldest-first ordering with wait days and chase counts, and the exclusion rules for no-reply/self/excluded addresses. This is the kind of operational context an agent cannot get from annotations or schema.

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?

Front-loaded with the one-line purpose, and nearly every sentence carries operational weight (reply definition, exclusions, truncation). It is dense and slightly overlong, and the closing draft_reply sentence is a mild cross-sell, but nothing is padding.

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 must describe the return shape and does so thoroughly: what each entry contains, ordering, the wait-day and chase counts, and how partial results are marked and sequenced. An agent could consume the output without further guessing.

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% and the schema already documents every parameter, its default, and the lookbackDays > olderThanDays rule. The description largely restates those bounds, adding only the semantic interpretation of the two-day window and how excludeAddresses is applied, so the baseline 3 is right.

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 first sentence names a specific verb+resource and, crucially, the direction of the relationship: "Messages the mailbox owner sent that nobody has answered." That framing alone separates it from reply-oriented siblings without needing to name them.

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

Usage Guidelines3/5

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

The description establishes the trigger scenario clearly (sent mail with no reply) and implies the value of doing it "in one call," but never names the obvious alternative `owed_replies` nor states when NOT to reach for this tool. Usage is inferable, not explicit.

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.

Resources