Skip to main content
Glama

Faivelo Email

List messages

list_messages
Read-only

List message summaries (sender, subject, date, snippet, uid, labels) in a mailbox folder, newest first, paginated. Use folder "Drafts" to see saved drafts.

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": {
      "mailbox": "<mailbox>"
    },
    "name": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1)
labelNoOnly messages carrying this label (see label_message). Agent inboxes only: a person's mailbox returns agent_inbox_only
limitNoMessages per page (default 20, max 100)
folderNoIMAP folder name (default "INBOX")
mailboxYesFull mailbox address, e.g. "support-bot@yourdomain.com"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / label / description
      Previous value: -"Only messages carrying this label (see label_message)"New value: +"Only messages carrying this label (see label_message). Agent inboxes only: a person's mailbox returns agent_inbox_only"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value beyond them by disclosing the newest-first ordering, pagination behavior, the exact summary fields returned, and the Drafts folder special case, though it says nothing about total counts or page-size defaults.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with what is listed and how it is ordered, then a targeted tip about drafts. Nothing is redundant or padded.

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 read-only, single-folder listing tool with full schema coverage and no output schema, the definition is close to complete: it names the returned fields and the ordering. Minor gaps remain around pagination limits and the label restriction behavior, which the schema mentions but the description does not reinforce.

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 coverage is 100%, so page, limit, folder, mailbox and label are already documented. The description nonetheless adds meaning the schema does not carry, namely that folder can take "Drafts" to surface saved drafts, which is a non-obvious semantic value for that parameter.

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 gives a specific verb and resource (list message summaries), states the scope (a mailbox folder), the ordering (newest first, paginated), and even enumerates the returned fields. It does not name the sibling search_messages, so the separation from search is left implicit, but the folder-scoped listing framing is clear enough to distinguish it.

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?

One concrete usage tip is given: use folder "Drafts" to see saved drafts. Beyond that there is no guidance on when to choose this over search_messages or a get/edit tool, so the agent must infer that listing is for browsing an unfiltered folder view.

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.