Skip to main content
Glama

list_emails

Read-only

List emails FuseAI has synced from the user's connected mailboxes (inbox or another label), read from FuseAI's stored copy without contacting the mail provider. Mailboxes that are disconnected or need re-authentication are left out, and when the user has chosen to hide non-campaign emails, only emails with the user's campaign contacts are returned. Returns recent emails with ids, subjects, and senders. Each email's receiverEmailAddress is the connected mailbox it belongs to: for a reply or any other received email, the address that received it; for a sent, scheduled or draft email, the mailbox it is sent from, with the recipients in toRecipients, ccRecipients and bccRecipients. labelType picks the view (inbox, sent, drafts, important, unread, scheduled, snoozed, archived, deleted, spam, favorite, prospects). Optional filters: campaignId, isCampaignEmail (true: campaign emails only, false: non-campaign only; ignored when campaignId is set), contactName, mailBoxAccount, fromDate/toDate (ISO), searchVal (free text over names, subject and body); set filter="true" when scoping to a mailBoxAccount. tags and repliesOnly are accepted but have no effect on this list. Paginated via page (default 1) and limit (default 20, max 100).

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": {
      "labelType": "<labelType>"
    },
    "name": "list_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
tagsNo
limitNo
filterNo
toDateNo
fromDateNo
labelTypeYes
searchValNo
campaignIdNo
contactNameNo
repliesOnlyNo
mailBoxAccountNo
isCampaignEmailNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: disconnected or re-authenticated mailboxes are excluded, hidden non-campaign emails affect results, and the tool reads stored data without contacting the provider. It also explains the meaning of receiverEmailAddress and how recipient fields differ for received versus sent/scheduled/draft emails.

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?

The description is long but front-loaded and dense, with each sentence adding operational meaning. Given the 13 parameters and non-obvious mailbox/receiver semantics, the length is justified rather than padded.

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?

There is no output schema, so the description must explain return values, which it does by naming ids, subjects, senders, and receiverEmailAddress semantics. It also covers exclusions, filters, ignored parameters, and pagination, making the definition complete for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the full burden and does so across all 13 parameters. It explains labelType values, campaignId/isCampaignEmail interaction, contactName, mailBoxAccount plus filter, ISO date ranges, free-text search, ignored tags/repliesOnly, and pagination defaults.

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 states a specific verb and resource: list emails FuseAI has synced from connected mailboxes. It also distinguishes this from contacting the mail provider and clarifies that results come from FuseAI's stored copy, which is a meaningful scope boundary.

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

Usage Guidelines4/5

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

It gives clear usage context: use labelType to pick the view, apply filters such as campaignId or searchVal, and note that tags and repliesOnly have no effect. It does not explicitly name alternative tools or say when another listing tool should be preferred, so it falls short of full alternative-routing guidance.

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.