Skip to main content
Glama

List mail

list_messages
Read-only

List email messages in a mail folder, newest first, showing sender, subject, date, and ID. Use optional folder, search, and count to filter; bodies require get_message.

Instructions

List messages in a mail folder, newest first, as sender, subject, date and id. Bodies are not included; use get_message with an id to read one. Defaults to the inbox and to 10 messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNohow many, 1 to 50, default 10
folderNoinbox, drafts, sentitems or deleteditems, or an id from list_folders. A folder's display name will not work. Defaults to inbox.
searchNooptional words to match

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful behavioral context: newest-first ordering, body exclusion, and defaults for folder and count. This is useful value beyond the structured annotations.

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?

Two compact sentences front-load the action, resource, and return shape, then give the important body caveat and defaults. There is no filler or unnecessary repetition.

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?

With no output schema, the description supplies the returned fields and the no-body caveat, while the schema covers folder values, search, and top limits. An agent has enough context to call the tool and interpret its results correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented with defaults and allowed values. The description mostly restates the inbox and 10-message defaults rather than adding new parameter-level meaning.

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 states a specific verb and resource ('List messages in a mail folder'), names the returned fields, and distinguishes itself from get_message by explicitly saying bodies are not included. This is enough for an agent to tell it apart from related mail 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 gives clear guidance for the main alternative: 'Bodies are not included; use get_message with an id to read one.' It also explains the default folder and result count. It does not explicitly contrast with list_folders, but the essential routing decision is covered.

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