Skip to main content
Glama
hgn

Notmuch

by hgn

Find related mail threads

mail_related_threads
Read-only

Find related email threads that may be the same topic resurfacing, using subject and participant overlap. Provides leads to verify with mail_read_thread.

Instructions

Find other threads that might be the same topic coming up again.

This is a heuristic, not semantic search: it combines normalized- subject overlap (after stripping Re:/Fwd:/[PATCH ...]/list-tag noise) with participant overlap, over the configured default scope. It can miss related threads that used different wording, and can surface unrelated ones that merely share a generic subject term or a common participant. Treat the result as a lead to check with mail_read_thread, not as a definitive answer.

Args: thread_id: A thread identifier as returned by mail_search (with or without the 'thread:' prefix). limit: Maximum number of related threads to return. Omit for all results (the default); set it only to cap the number returned, and when it truncates the total is still reported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
thread_idYes
Behavior5/5

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

It discloses the underlying heuristic (normalized-subject overlap + participant overlap), the configured default scope, and both false-negative and false-positive behaviors. It also explains the limit parameter's truncation behavior and that the total is still reported, adding non-obvious context beyond the readOnlyHint annotation.

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 well-organized: purpose paragraph, heuristic/limitations paragraph, and a clear Args list. Each sentence adds meaningful information without redundancy; it is detailed yet entirely relevant.

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?

Despite lacking an output schema, the description conveys that the tool returns related thread leads and mentions the truncation total reporting. It also provides reliability caveats, giving the agent sufficient context to invoke the tool and interpret its results appropriately.

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?

The schema provides no parameter descriptions, but the Args section fully explains thread_id (including the optional 'thread:' prefix) and limit (default null, capping behavior, and truncation reporting). This completely compensates for the 0% schema-description coverage.

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 opens with a specific verb+resource: 'Find other threads that might be the same topic coming up again.' It clearly distinguishes the tool from siblings by focusing on related-thread discovery rather than general search or reading. The heuristic-vs-semantic contrast further differentiates it from mail_search.

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?

The description explicitly states how to use the results: 'Treat the result as a lead to check with mail_read_thread, not as a definitive answer.' It also contrasts with semantic search, giving clear context about when this tool is appropriate and what its limitations are.

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