Skip to main content
Glama

mail_list

Read-onlyIdempotent

Newest messages first. Default is every inbox combined; pass account (alias or address) for one mailbox.

folder: inbox (default), sent, drafts, trash, junk, archive, other, all, or an exact folder name. before: a message id, to page to older mail. unread: only unread mail. watched: only conversations on Waiting, in any folder: what the user is waiting to hear back about, kept an eye on (thread_watch) or added by Mojo. query_text: full-text search instead, across all mailboxes (or account's), newest first; Trash and Junk are left out unless folder names them. Words are ANDed; put a phrase in double quotes. Narrow a word to one field with from:, to:, subject:, body: or file: (attachment name), e.g. from:acme invoice "order form". It finds words in what attached files say too: such a result's snippet starts with the file and where in it, "(invoice.pdf, p. 2)". A Mojobase email <message-id> the user copied from the app finds that email, in any folder. before, unread and watched are for the list without query_text. A conversation the user snoozed has snoozed_until: put off until then, when it comes back to their inbox, not done.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
beforeNo
folderNo
unreadNo
accountNo
watchedNo
query_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already establish read-only, idempotent, non-destructive behavior, while the description adds sorting order, default all-inbox scope, folder values, search AND/quote/field-prefix semantics, attachment snippet behavior, and snoozed_until meaning. This adds substantial context beyond the structured annotations.

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?

The content is dense but front-loaded and each parameter segment carries useful information. It is a single run-on block rather than cleanly structured, and the missing limit note is a small efficiency gap, but little text is wasted.

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

Completeness4/5

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

For a 7-parameter read-only search/list tool, it covers complex filtering, paging, account scoping, and search semantics well. The main completeness gap is the undefined limit parameter; return fields are not described, though that is less critical for 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?

With 0% schema description coverage, the description compensates by defining account, folder values, before as message-id paging, unread, watched, and query_text syntax. The limit parameter is never explained, leaving one meaningful gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Newest messages first. Default is every inbox combined' and describes folder and query modes, making clear this lists or searches mail. It does not explicitly differentiate from a sibling such as mail_read, but the underlying verb and resource are clear.

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 explicitly distinguishes list mode (folder, before, unread, watched) from query_text full-text search, including that before/unread/watched do not apply with query_text and that Trash and Junk are excluded unless folder names them. It also explains when to pass account for a single mailbox.

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.