Skip to main content
Glama

Mail accounts and mailboxes

mail_mailboxes
Read-onlyIdempotent

Lists Apple Mail accounts and their mailboxes with message and unread counts; supports cursor-based paging when results are large.

Instructions

All Mail accounts with their addresses and mailboxes (name, message count, unread count). Mail must be running. Large results come in parts (see paging and cursor).

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_mailboxes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoLeave out at first. When a result has paging.has_more, repeat the call with the same arguments plus cursor set to paging.cursor to get the next part.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds value beyond them by disclosing the runtime prerequisite (Mail must be running) and that large result sets are split into parts — both facts an agent cannot learn from the annotations or schema. It does not mention ordering or what an empty account list looks like, but those are minor.

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?

Three short sentences, front-loaded with what is returned, followed by the prerequisite and the paging note. No filler, though the telegraphed 'Mail must be running' and the cross-reference 'see paging and cursor' are slightly clipped rather than fully explicit.

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?

There is no output schema, so the description carries the return-value burden and does so by listing addresses and per-mailbox counts, plus how paged results arrive. Combined with the annotations covering side effects, an agent has essentially everything needed to call it correctly; only ordering/nil-case details are absent.

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?

With one optional parameter at 100% schema description coverage, the schema already fully explains cursor semantics. The description only gestures at it ('see paging and cursor'), adding no syntax or format detail beyond the schema, so the 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?

The description names the resource (Mail accounts with their addresses and mailboxes) and enumerates the returned fields (name, message count, unread count), which makes clear this is a structural listing rather than a message reader like mail_read or mail_search. It stops short of naming any sibling explicitly, so the differentiation is inferred from the field list rather than stated.

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?

The precondition 'Mail must be running' and the pointer to paging/cursor give the agent practical invocation guidance for the happy path. There is no explicit when-to-use vs when-to-use-alternative statement, and no exclusions (e.g. that message content requires mail_read), so routing remains implied.

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