Skip to main content
Glama

list_emails

Read-onlyIdempotent

List messages in this farm's QuailOS Email Assistant inbox (the mailbox the farm connected in Office > Email Assistant: Forwarding Bridge and/or IMAP accounts). Newest first. Owner/admin AI keys only. Returns id, threadId, from, subject, snippet, date, folder, read flag. Page with nextCursor passed back verbatim with the same filters.

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to return (1-50, default 20)
queryNoOptional case-insensitive text match on subject, sender, recipients and snippet (max 200 chars)
sinceNoOptional ISO date/datetime: only messages on/after this time
untilNoOptional ISO date/datetime: only messages on/before this time (a bare YYYY-MM-DD includes that whole day, UTC)
cursorNoOptional: the nextCursor string from the previous list_emails response, passed verbatim with the same filters
farmIdYesThe unique farm ID
folderNoFolder to list (default INBOX). ALL = every folder.
unreadOnlyNoOnly unread messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior. The description adds real value beyond that: auth gating (owner/admin keys), default ordering (newest first), the returned field set, and the pagination contract (nextCursor passed back verbatim with the same filters).

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?

Four compact sentences, front-loaded with the mailbox scope and key facts. No wasted words; the ordering and pagination notes are placed sensibly. Slightly dense but efficient.

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?

With no output schema, the description helpfully enumerates returned fields (id, threadId, from, subject, snippet, date, folder, read flag) and covers auth, ordering, and pagination. Adequate for an 8-parameter list tool, though default folder/limit behavior is only in the schema.

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%, so every parameter (limit, query, since, until, cursor, farmId, folder, unreadOnly) is already documented in the schema. The description's cursor note ('passed back verbatim with the same filters') mostly restates the schema, adding little beyond the baseline.

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?

States a specific verb (List) and resource (messages in the QuailOS Email Assistant inbox), clearly distinguishing it from get_email, send_email, and move_email by the plural-list scope. It does not explicitly name a sibling it is not, but the verb+resource is unambiguous.

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?

It states the access requirement (Owner/admin AI keys only) and ordering (newest first), which imply when it can be used. However, there is no explicit guidance on when to use this versus get_email for a single message or draft_email_reply for responding, leaving routing to inference.

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