Skip to main content
Glama
hgn

Notmuch

by hgn

Thread overview

mail_thread_overview
Read-only

Preview an email thread as a compact list of messages with sender, date, size, and subject-change flags. Use it to pick which messages to read in full before spending tokens on the entire thread.

Instructions

One line per message: index, date, size, from, and a marker when the subject changes from the thread's root subject.

Use this before mail_read_thread on any thread you have not looked at yet, especially a long one: it costs a fraction of the tokens and lets you decide which one or two messages to actually read in full, instead of pulling all eighty. Do not use it in place of mail_read_thread when you already know you need the full content.

Args: thread_id: A thread identifier as returned by mail_search (with or without the 'thread:' prefix). layout: 'tree' (the actual reply nesting, from notmuch's own thread structure; for a patch series with parallel discussion strands this is materially different from linear order) or 'flat' (linear oldest-first order, matching mail_read_thread's [N/M] numbering).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layoutNotree
thread_idYes
Behavior4/5

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

The annotations already declare readOnlyHint=true, and the description adds valuable behavior: output structure, layout semantics ('tree' vs 'flat'), and token efficiency compared to mail_read_thread. It does not contradict annotations, and adds meaningful context beyond the safety hints.

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?

The description is appropriately sized and well-structured: it starts with the output format, then gives usage guidance, then details arguments. Every sentence earns its place with no redundant or vague filler.

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?

The description is highly complete for a read-only overview tool: it specifies output fields, layout options, usage context, and parameter origins. Minor gaps like pagination or max message limits are not addressed, but the description is sufficient for the tool's purpose.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates. thread_id is explained as a value from mail_search with/without 'thread:' prefix, and layout is thoroughly described with tree/flat semantics and its relation to mail_read_thread's numbering. This adds substantial meaning beyond the schema's bare types.

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 clearly states the tool's output format ('One line per message: index, date, size, from, and a marker when the subject changes') and identifies the resource as a mail thread overview. It distinguishes itself from sibling mail_read_thread by emphasizing its lightweight, token-efficient nature.

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?

Explicit guidance is provided: 'Use this before mail_read_thread on any thread you have not looked at yet' and 'Do not use it in place of mail_read_thread when you already know you need the full content.' This clearly states when to use and when not to use, and names the alternative tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hgn/mcp-server-notmuch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server