Skip to main content
Glama

Search emails

search_emails
Read-onlyIdempotent

Search real product emails (welcome, receipts, onboarding, re-engagement…) by description or brand. Each result is one email with its desktop and/or mobile image; when hasHtml is true, get_email_html returns the original HTML to adapt. Needs Pro.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdNoLimit to these brands
limitNo
queryNoFree text, e.g. 'welcome email with a big hero image'
offsetNoSkip this many results (pagination)
flowIntentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: the shape of each result (one email plus desktop and/or mobile image), the hasHtml signal for follow-up, and a paid-tier requirement. It says nothing about result volume, ordering, or what happens when no search terms are supplied, which are the behaviors an agent would still need to guess.

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 verb+resource and what a result contains, then the tool-chaining hint, then the access requirement. No filler and no restatement of the title.

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?

With no output schema, the description does the necessary work of describing the return shape (one email per result, desktop and/or mobile image, hasHtml flag) and the Pro prerequisite. Remaining gaps are modest: pagination via offset/limit and the flowIntents filter are left entirely to the schema, and 'Needs Pro' is not elaborated into what the agent should expect on failure.

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 60%, and the description usefully maps the two main inputs — text search ('by description') to query and 'brand' to appId. It says nothing about limit, offset/pagination, or flowIntents, and offset is the one param whose schema note ('skip this many results') is already self-explanatory. Useful mapping of query/appId, but not full compensation for the coverage gap.

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 ('Search real product emails') and adds concrete scope with examples of email categories (welcome, receipts, onboarding, re-engagement) plus the two search axes, description or brand. It is clearly distinct from siblings like search_apps/search_flows by resource name, and names get_email_html as the complementary tool. It stops just short of an explicit sibling comparison, so it lands at 4 rather than 5.

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?

Gives real usage context: search by description or brand, and a conditional hand-off — 'when hasHtml is true, get_email_html returns the original HTML to adapt' — which tells the agent exactly when to chain into a sibling tool. It also flags a prerequisite ('Needs Pro'). It does not say when NOT to use this tool or point to alternative search tools, which keeps it out of the 5 band.

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.

Resources