Skip to main content
Glama
hgn

Notmuch

by hgn

List mail attachments

mail_list_attachments
Read-only

List attachment metadata (part index, filename, content type, size) for a given message ID to determine valid part indices before reading an attachment.

Instructions

List a message's attachments (part index, filename, content type, size).

Call this before mail_read_attachment to learn valid part_index values; it does not return attachment content itself.

Args: message_id: A Message-ID as seen in mail_search/mail_read_thread output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYes
Behavior4/5

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

The description adds behavioral context beyond the readOnlyHint annotation by stating that the tool returns metadata (part index, filename, content type, size) and not content. This is useful, though the annotation already covers safety.

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 concise and well-structured: it starts with the main purpose, then gives usage guidance, and ends with an Args section. Every sentence earns its place without unnecessary fluff.

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 simple one-parameter tool without an output schema, the description is complete: it lists the return fields, states what it does not return, and positions it relative to sibling tools. No critical information is missing.

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?

With 0% schema description coverage, the description compensates by explaining that message_id should be 'as seen in mail_search/mail_read_thread output', providing source context. This adds meaningful value over the schema alone.

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 function: 'List a message's attachments (part index, filename, content type, size)'. It uses a specific verb and resource, and explicitly distinguishes itself from sibling tools like mail_read_attachment by noting it does not return content.

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 gives explicit usage guidance: 'Call this before mail_read_attachment to learn valid part_index values'. It also clarifies what the tool does not do ('does not return attachment content itself'), helping the agent choose the right 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