Skip to main content
Glama

list_emails

Read-onlyIdempotent

Read email messages with extracted codes, links and attachment names. Supply filters or a limit for a newest-first page.

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": {
      "id": "<id>"
    },
    "name": "list_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesResource UUID.
fromNoExact sender mailbox, case insensitive.
readNo
textNoLiteral case insensitive plain text match.
labelNoExact label, case insensitive.
limitNo
tokenNoManagement or inspection token for anonymous resources. Omit for resources owned by your authenticated workspace.
cursorNoCursor for this inbox and the same filters.
hasCodeNo
hasLinkNo
subjectNoLiteral case insensitive subject match.
mailFromNoExact envelope sender mailbox, case insensitive.
hasAttachmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Cursor for this inbox and the same filters.",
      +  "type": "string"
      +}
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Exact sender mailbox, case insensitive.",
      +  "type": "string"
      +}
    • addedInput schema / properties / hasAttachment
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / hasCode
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / hasLink
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / label
      Added value: +{
      +  "description": "Exact label, case insensitive.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / mailFrom
      Added value: +{
      +  "description": "Exact envelope sender mailbox, case insensitive.",
      +  "type": "string"
      +}
    • addedInput schema / properties / read
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / subject
      Added value: +{
      +  "description": "Literal case insensitive subject match.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Literal case insensitive plain text match.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare a safe, idempotent, closed-world read, so the description does not need to re-establish safety. It does add genuinely new behavior: result ordering (newest-first) and the pagination model (cursor-based pages), plus the shape of the extracted content returned per message.

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 sentences, zero filler, and the payload description comes first while the pagination instruction follows. Nothing is repeated from the annotations or the schema.

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?

With 13 parameters and no output schema, the description is expected to do more work. It covers the return content and paging but leaves open what id identifies, the anonymous-token path, the limit ceiling/default, and whether cursor results can change between calls.

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?

Coverage is 62% and the description only refers to "filters" generically and to limit/page ordering. It adds no meaning for the undocumented parameters (read, hasCode, hasLink, hasAttachment), the id-vs-token distinction, or how cursor is scoped, so the schema carries nearly all the burden.

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?

"Read email messages" gives a specific verb and resource, and the description adds that the payload includes extracted codes, links and attachment names, so an agent knows what it gets back. It never distinguishes itself from the sibling list_email_threads, so an agent must infer whether to page through threads or individual messages.

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

Usage Guidelines3/5

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

"Supply filters or a limit for a newest-first page" implies the intended invocation pattern (filter or bound the result set, results are newest first). There is no explicit when-to-use versus list_email_threads, and no statement about when filtering by code/link/attachment is preferable to fetching a page and scanning it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.