Skip to main content
Glama

Unread mail counts

mail_unread
Read-onlyIdempotent

Get unread email counts for all inboxes or a specific mailbox and account, with paging support for large results.

Instructions

Unread counts for every inbox (default), or for one mailbox, optionally one account. 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_unread"
  }
}

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.
accountNoAccount name or address.
mailboxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely new behavior—large result sets are returned in parts with paging and a cursor—but stops short of saying what the paging structure or count fields look like, which matters because there is no output schema.

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?

A single sentence with the default scope front-loaded, the narrowing options next, and the paging caveat last. No filler wording.

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 zero-required-parameter read-only counting tool, the description covers scope defaults, filtering, and paging. The only shortfall is that with no output schema it does not sketch the returned count structure beyond "unread counts" and a paging reference.

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?

With 67% schema coverage, the one undocumented parameter (mailbox) is the gap, and the description fills it by explaining that mailbox narrows the count to a single mailbox and is optional. Cursor semantics are already fully explained in the schema, so the description's "see paging and cursor" note adds little there.

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+resource ("Unread counts") and clarifies the scope: all inboxes by default, or one mailbox and optionally one account. That distinguishes it from mail_read and mail_search, which retrieve messages rather than counts, though no sibling is named explicitly.

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?

Gives concrete scoping guidance: omit mailbox for every inbox, supply one mailbox to narrow, optionally add an account. It does not state when to prefer this over mail_mailboxes or mail_search-then-count, so alternatives are left to inference.

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