Skip to main content
Glama
hgn

Notmuch

by hgn

Find related mail threads

mail_related_threads
Read-only

Find related email threads by matching normalized subjects and participants to identify potential duplicates or follow-ups.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
thread_idYes
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false. The description adds behavioral context: it uses normalized-subject and participant overlap, can miss related threads, and may surface unrelated ones. This provides useful transparency beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is generally concise, but includes some implementation details (normalized-subject overlap) that may not be necessary for an agent. It is front-loaded with the purpose. Could be slightly tighter.

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 tool with 2 parameters, no output schema, and no nested objects, the description covers purpose, limitations, and parameter details adequately. It lacks return format information but is sufficient for a heuristic finder.

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?

Schema coverage is 0%, but the description explains both parameters: thread_id is a thread identifier from mail_search (optional prefix), and limit is maximum results. This adds essential meaning that the schema lacks.

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?

The description clearly states the tool finds other threads on the same topic, using a heuristic approach. It is specific about the verb and resource, but does not explicitly differentiate from sibling tools.

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?

The description explains when to use the tool (to find related threads) and provides important caveats: it's a heuristic not semantic search, and results should be treated as leads. However, it does not directly compare to alternative tools or state when not to use it.

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