Skip to main content
Glama

triage_digest

Read-only

Summarizes a mailbox slice into sender, label, and age buckets with unread, attachment, and header-signal counts so you can decide what to bulk-archive, snooze, or label.

Instructions

Structured overview of a mailbox slice for triage DECISIONS — sender / label / age buckets, unread and attachment counts, and header-derived signals (newsletter / automated / calendar / replyToMismatch / displayNameSpoof / lookalikeDomain — thread counts overall, and per sender the set of signals its threads carry), instead of a raw thread list. USE WHEN: deciding what to bulk-archive/snooze/label, or summarizing inbox state ('what's in my inbox?'). DO NOT USE: to read a specific thread (use search/get_thread). Samples up to max most-recent matches; hasMore flags that more matched than were sampled. byAge buckets by each thread's FIRST message date (thread age, not last activity). SIDE EFFECTS: none.

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": "triage_digest"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNo
topNNo
queryNoin:inbox

Output Schema

NameRequiredDescriptionDefault
byAgeYes
queryYes
unreadYes
hasMoreYes
sampledYes
signalsYes
topLabelsYes
topSendersYes
withAttachmentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.32.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed5 schema fields changedv0.25.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / signals / properties / displayNameSpoof
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / signals / properties / lookalikeDomain
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / properties / signals / required
      Previous value: -[
      -  "newsletter",
      -  "automated",
      -  "calendar",
      -  "replyToMismatch"
      -]New value: +[
      +  "newsletter",
      +  "automated",
      +  "calendar",
      +  "replyToMismatch",
      +  "displayNameSpoof",
      +  "lookalikeDomain"
      +]
    • changedOutput schema / properties / topSenders / items / properties / signals / items / enum
      Previous value: -[
      -  "newsletter",
      -  "automated",
      -  "calendar",
      -  "replyToMismatch"
      -]New value: +[
      +  "newsletter",
      +  "automated",
      +  "calendar",
      +  "replyToMismatch",
      +  "displayNameSpoof",
      +  "lookalikeDomain"
      +]
  3. Changed4 schema fields changedv0.11.0
    • addedOutput schema / properties / signals
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "automated": {
      +      "type": "number"
      +    },
      +    "calendar": {
      +      "type": "number"
      +    },
      +    "newsletter": {
      +      "type": "number"
      +    },
      +    "replyToMismatch": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "newsletter",
      +    "automated",
      +    "calendar",
      +    "replyToMismatch"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / topSenders / items / properties / signals
      Added value: +{
      +  "items": {
      +    "enum": [
      +      "newsletter",
      +      "automated",
      +      "calendar",
      +      "replyToMismatch"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / topSenders / items / required
      Previous value: -[
      -  "sender",
      -  "name",
      -  "count",
      -  "unread"
      -]New value: +[
      +  "sender",
      +  "name",
      +  "count",
      +  "unread",
      +  "signals"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "sampled",
      -  "hasMore",
      -  "unread",
      -  "withAttachments",
      -  "byAge",
      -  "topSenders",
      -  "topLabels"
      -]New value: +[
      +  "query",
      +  "sampled",
      +  "hasMore",
      +  "unread",
      +  "withAttachments",
      +  "byAge",
      +  "signals",
      +  "topSenders",
      +  "topLabels"
      +]
  4. Addedv0.6.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already state readOnlyHint=true and openWorldHint=false, so 'SIDE EFFECTS: none' is partly redundant. The description does add real behavioral context beyond annotations: sampling of up to `max` most-recent matches, a hasMore flag, and the note that byAge buckets by each thread's FIRST message date rather than last activity. However, it says nothing about ordering of the buckets, cost/latency of scanning large mailboxes, or what a signal such as lookalikeDomain actually implies for triage.

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?

Front-loaded with the core purpose, then USE WHEN / DO NOT USE / sampling / bucketing / side-effects, which is a clean structure. The long parenthetical listing every header signal is dense, though each item is genuinely informative for a triage decision tool.

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?

An output schema exists, so return structure need not be documented, and the description still covers the substantive semantics an agent needs: what is aggregated, sampling behavior and hasMore, and the age-bucketing convention. For a three-parameter, read-only digest tool this is complete enough to call correctly.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain all three parameters. It explains `max` (samples up to `max` most-recent matches) and partially implies `query` via 'mailbox slice', but `topN` is never mentioned at all, leaving its cardinality meaning (top N of what — senders?) entirely unexplained. That leaves two of three parameters under-specified in both schema and prose.

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 uses a specific verb-plus-resource framing: a structured overview of a mailbox slice for triage decisions, and explicitly lists the aggregate dimensions it returns (sender/label/age buckets, unread and attachment counts, header-derived signals). It also contrasts itself directly with 'a raw thread list', making it distinguishable from thread-listing siblings without opening a schema.

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

Usage Guidelines5/5

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

It names explicit when-to-use cases (deciding what to bulk-archive/snooze/label, summarizing inbox state) and an explicit exclusion with a named alternative: 'DO NOT USE: to read a specific thread (use search/get_thread)'. That is the full when/when-not/alternative triad.

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