Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

get_thread

Read-only

Fetch every email in a single conversation thread via IMAP across Gmail, Outlook, and custom domains, letting you review a complete exchange in one request.

Instructions

Fetch all emails in a conversation thread via IMAP — works with Gmail, Outlook, and custom domains.

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": {
      "accountId": "<accountId>",
      "threadId": "<threadId>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoThe folder containing the thread (default: INBOX)
threadIdYesThe ID of the thread to retrieve
accountIdYesThe ID of the account to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine value with the IMAP backing and Gmail/Outlook/custom-domain compatibility, but says nothing about pagination, result ordering, missing-thread behavior, or auth/connection failure modes.

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 the action and resource first, then a scoping/provider clause. No filler, though the em-dash provider list is the only part not strictly necessary to select the 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?

For a simple, read-only, fully-described 3-parameter tool, this is nearly sufficient. The notable gap is that no output schema exists, so the description could have said what a fetched thread looks like (message list, ordering, headers vs. bodies).

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 coverage is 100%, so all three parameters including the default INBOX folder are already documented. The description adds no syntax, format, or constraint details beyond the schema, making the baseline 3 appropriate.

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: 'Fetch all emails in a conversation thread,' which makes clear this is a thread-level read operation rather than a single-message read like read_email. The protocol/provider note adds identification but no explicit sibling differentiation by name.

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?

Usage is implied by 'conversation thread' — use it when you want the whole thread rather than one message — but the description never states when to prefer it over read_email, search_emails, or list_emails, and gives no prerequisites or exclusions.

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