Skip to main content
Glama

Flowmails MCP

search_emails

Search one domain's mailbox for text (at least 2 characters) in the subject, the sender, the recipient or the body. Returns addressing, the subject and a short preview per hit — never the body. Call get_email with a hit's messageId to read the content of the one that matters. Use list_domains to get the domainId.

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": {
      "domainId": "<domainId>",
      "q": "<q>"
    },
    "name": "search_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe text to look for. At least 2 characters; a case-insensitive substring.
typeNoWhich mailbox direction to search. Defaults to `receive`.
fieldNoWhich field to match. Defaults to `body` (subject, from, to and body text).
limitNoMaximum number of hits to return (default 20).
domainIdYesThe domain id — from `list_domains`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 disclose the minimum query length, that hits return addressing, subject, and a short preview, and that the body is never returned. It does not discuss permissions or rate limits, but for an evidently read-only search those omissions are minor.

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?

Three tight sentences, front-loaded with the search action and scope, then the return shape, then follow-up routing. No sentence is filler and there is no restating of the tool name.

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

Completeness4/5

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

Because no output schema exists, the description usefully summarizes what each hit contains and explicitly excludes the body, while also naming the follow-up and domain-listing tools. Only secondary details such as result ordering or truncation behavior are left unstated.

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% and already documents the two-character case-insensitive substring rule, enum options, defaults, and the limit. The description mostly restates the two-character minimum and field set, adding only the `list_domains` provenance for `domainId`.

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 — search one domain's mailbox — and names the matchable fields (subject, sender, recipient, body). It clearly distinguishes search from reading content by directing full-message reads to `get_email`.

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

Usage Guidelines5/5

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

It explicitly routes the agent: use `list_domains` to obtain the required `domainId`, and call `get_email` with a hit's `messageId` when the actual content matters. The condition for choosing the alternative tool is stated rather than implied.

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.