Skip to main content
Glama
emperor-mail

emperor-mail

search

Read-only

Find emails in a chosen folder by sender, recipient, subject, body text, date range, or unread status, returning newest matches with key metadata.

Instructions

Search a folder (default INBOX) by from, to, subject, text, date range (since/before, YYYY-MM-DD) and unread state. Returns uid, date, from, subject, size and has_attachments, newest first.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoSubstring of the To header.
fromNoSubstring of the From header.
textNoSubstring anywhere in the headers or the body.
limitNoMost messages to return, newest first (default 20, at most 100).
sinceNoReceived on or after this date (YYYY-MM-DD).
beforeNoReceived before this date (YYYY-MM-DD).
folderNoFolder to search (default INBOX). Names as list_folders returns them.
unseenNotrue: only unread messages; false: only read messages.
subjectNoSubstring of the subject.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / before / default
      Removed value: -null
    • changedInput schema / properties / before / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / folder / default
      Removed value: -null
    • changedInput schema / properties / folder / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / from / default
      Removed value: -null
    • changedInput schema / properties / from / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / limit / default
      Removed value: -null
    • removedInput schema / properties / limit / format
      Removed value: -"uint32"
    • removedInput schema / properties / limit / minimum
      Removed value: -0
    • changedInput schema / properties / limit / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
    • removedInput schema / properties / since / default
      Removed value: -null
    • changedInput schema / properties / since / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / subject / default
      Removed value: -null
    • changedInput schema / properties / subject / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / text / default
      Removed value: -null
    • changedInput schema / properties / text / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / to / default
      Removed value: -null
    • changedInput schema / properties / to / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / unseen / default
      Removed value: -null
    • changedInput schema / properties / unseen / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
  2. First observedv0.1.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context by listing the returned fields and the newest-first ordering, which tells the agent no body content comes back. It says nothing about result caps, total counts, or how the 20/100 limit interacts with the result set.

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 tight sentences: the first front-loads what can be filtered and the default folder, the second front-loads the return shape and sort order. No filler or redundancy.

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 nine optional parameters, no output schema, and no annotations about returns, the description carries the burden of explaining output and does so by enumerating returned fields and ordering. The remaining gap is pagination or result-cap behavior, which matters given limit defaults to 20 and caps at 100.

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 description coverage is 100%, so all nine parameters including date formats, substring semantics, limit range, and unseen true/false are already documented in the schema. The description restates the same filter set and the INBOX default without adding new semantics; baseline 3 applies.

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 (search) and resource (a mail folder), enumerates the filterable fields, and names the default scope (INBOX). It is clearly distinguishable from read_message and read_attachment, though it never explicitly names those siblings as the paths for fetching full content.

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 only implied: an agent can infer it is for locating messages by criteria rather than reading them, but there is no explicit when-to-use guidance, no statement that it returns headers only and that read_message should follow for the body, and no exclusion of other cases.

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

Deploy Server

Other Tools