Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

mailbox_stats

Read-only

Retrieve mailbox statistics—total messages, unread count, and recent messages—for selected IMAP folders without listing emails, supporting Gmail, Outlook, and custom domains.

Instructions

Return mailbox statistics (total messages, unread count, recent) for one or more IMAP folders — without listing individual emails. Works with any provider (Gmail, Outlook, custom domains).

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": {
      "accountId": "<accountId>"
    },
    "name": "mailbox_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
foldersNoFolder names to report stats for (default: all folders)
accountIdYesThe ID of the account to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful traits beyond that — provider-agnostic operation and aggregated (non-per-message) output — but leaves 'recent' undefined and says nothing about cost or behavior with large folder sets.

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?

One sentence, front-loaded with the return values, then the negative constraint, then provider compatibility. No filler; the em-dash aside is functional rather than noise.

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 2-parameter read-only tool with no output schema, the description adequately conveys what comes back (total messages, unread count, recent) and that it is aggregate-only. The only real gap is the undefined 'recent' window, which an agent cannot infer from schema or annotations.

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 description coverage is 100%, so both parameters (accountId, folders with 'default: all folders') are fully documented in the schema. The description reinforces that multiple folders are supported but adds no syntax, format, or edge-case meaning beyond it; baseline 3 applies.

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?

Specific verb+resource: 'Return mailbox statistics ... for one or more IMAP folders' plus exclusion 'without listing individual emails,' which implicitly separates it from the email-listing siblings. It doesn't name an alternative tool explicitly, so it stops just short of top marks.

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?

Gives the usage context (any provider — Gmail, Outlook, custom domains) and rules out fetching messages, but never states when-when-not conditions against siblings like list_folders or search_emails. Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.