Skip to main content
Glama

Mail digest

mail_digest
Read-only

Summarize recent email grouped by sender with counts, unread totals, newest subjects, and message references, enabling quick triage and 'what's new' checks without listing every message.

Instructions

Overview of many mails in one call, grouped by sender.

Each group shows the count, unread count, newest time, top subjects and the newest mail's ref.

Use it for "what's new" or triage questions instead of listing every mail.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoReceived at/after, e.g. '1d' (default), '12h', 'mon'. Empty = no time limit.1d
folderNoinbox | sent | drafts | deleted | junk | all (every mail folder), or a path like 'Inbox/Projects'.inbox
mailboxNoAnother mailbox: a shared mailbox or second account (see mail_mailboxes). Empty = yours.
max_itemsNoHow many newest mails to count.
unread_onlyNoOnly unread mail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is known. The description adds useful behavior beyond annotations by explaining sender grouping and the exact group payload, including counts, newest time, top subjects, and newest ref, which matters because there is no output schema. Sorting and truncation details are left mostly to the 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?

Three short sentences, front-loaded with the core behavior, and no filler. The use-case sentence earns its place by steering the agent away from exhaustive listing.

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?

For a five-parameter, read-only digest tool with no output schema, the description supplies the key return structure and usage context while the fully documented schema handles parameter details. Nothing critical is missing 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.

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds no parameter-specific meaning beyond what the schema already documents for since, folder, mailbox, max_items, and unread_only.

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?

States a concrete aggregation operation ('overview of many mails ... grouped by sender') and what each group contains, letting an agent distinguish it from per-mail listing or reading tools. It names the resource and transformation without tautology.

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?

Explicitly recommends use for "what's new" or triage questions and contrasts it with 'listing every mail', which gives an alternative behavior. It does not name a specific sibling tool or state when not to use it, such as when full message bodies are needed.

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