Skip to main content
Glama

mailgate_list_messages

Lists recent messages from a MailGate inbox using the recipient email, with optional limit, timestamp, and sender filters so agents and tests can retrieve verification codes or auth emails.

Instructions

List recent messages stored in a MailGate inbox.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "email": "<email>"
    },
    "name": "mailgate_list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesRecipient inbox address.
limitNoMax number of messages to return (1-100, default: 20).
sinceNoOptional ISO 8601 timestamp filter.
senderNoOptional sender address substring filter.
passwordNoOptional inbox password if locked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and discloses almost nothing: not whether listing marks messages as read, not the ordering of results, not behavior for locked inboxes (the password parameter implies an auth requirement), and no error or empty-inbox behavior.

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

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity borders on under-specification for a five-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The fully documented schema means an agent can construct a call correctly, and no output schema exists so return values need not be spelled out. However, for a tool with zero annotations, an optional password for locked inboxes, and no mention of ordering or side effects, the description should say more about what calling it actually does.

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 every parameter (email, limit, since, sender, password) is already documented in the schema. The description adds only the loose notion of "recent" and contributes no extra meaning such as how since and limit interact, so the baseline 3 applies.

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?

States a specific verb and resource ("List recent messages stored in a MailGate inbox") and implies a read of one inbox. It does not distinguish itself from siblings such as mailgate_wait_for_email, which an agent could plausibly pick when it actually wants the current contents.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given, and no alternative is named for retrieving mail. The word "recent" hints at a bounded read but the description never says whether this is for one-shot inspection versus the waiting siblings, leaving routing to inference.

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