Skip to main content
Glama

Flowmails MCP

get_thread

Read the conversation a message belongs to. threadId is the conversation ROOT's SMTP Message-ID — the value a list_events row or a get_email answer carries as threadId — and an intermediate message id also resolves to the whole chain. Returns the chain oldest-first, each entry with the same projection get_email uses, plus bodyTruncated on the entries whose body was shortened (the window is bounded so a long thread cannot become a way to pull a whole mailbox) and total / hasMoreOlder / hasMoreNewer saying whether the chain extends past the window. A thread of another tenant answers message_not_found.

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

Input Schema

NameRequiredDescriptionDefault
domainIdNoOptional: the id of the domain that received the message. Narrows the lookup to one mailbox.
threadIdYesThe conversation root's SMTP Message-ID — the `threadId` value from a `list_events` row or a `get_email` answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that results are returned oldest-first, that the window is bounded and bodies may be truncated with a bodyTruncated flag, and that pagination flags indicate whether the chain extends further. It also states the tenant-boundary error behavior (message_not_found). It does not mention auth requirements or rate limits, so it is strong but not exhaustive.

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 front-loaded with the core purpose, then adds the parameter semantics, return shape, truncation behavior, pagination flags, and tenant error in a compact sequence. Every clause appears to earn its place, with no redundant or filler wording.

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?

There is no output schema, but the description fully explains the return shape: the chain oldest-first, the same projection as get_email, bodyTruncated on shortened entries, and total/hasMoreOlder/hasMoreNewer. For a two-parameter read tool with no annotations, this is complete enough for an agent to call it correctly.

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?

Schema coverage is 100%, so the schema already documents both parameters. The description adds real meaning beyond the schema by explaining that threadId is the conversation root's SMTP Message-ID, that it can come from list_events or get_email, and that an intermediate message id also resolves to the whole chain.

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: 'Read the conversation a message belongs to.' It distinguishes this from get_email by noting that the result is the whole chain and each entry uses the same projection get_email uses, so an agent can tell the tools apart without opening either schema.

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?

It gives clear context for when to use the tool: when you need the conversation a message belongs to, and it explains where the threadId comes from (a list_events row or a get_email answer). It does not explicitly name when not to use it or point to search_emails as an alternative, so it falls short of a full 5.

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.