Skip to main content
Glama
Roundcube MCP

Roundcube MCP

by SK108045

search_emails

Search mailbox messages by sender, recipient, subject, text, dates, flags, Message-ID, or attachment presence, with results returning stable IMAP UIDs for reliable follow-up actions.

Instructions

Search by sender, recipient, subject, text, dates, flags, Message-ID or attachment presence.

Dates must be YYYY-MM-DD. Search results return IMAP UIDs, not unstable sequence numbers. Attachment-presence searches inspect at most scan_limit recent candidate messages.

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
limitNo
queryNo
sinceNo
beforeNo
folderNoINBOX
senderNo
subjectNo
read_onlyNo
recipientNo
message_idNo
scan_limitNo
unread_onlyNo
flagged_onlyNo
has_attachmentsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose two genuinely valuable traits: results are IMAP UIDs rather than unstable sequence numbers, and attachment-presence searches are bounded by scan_limit recent candidates (a completeness caveat). It omits permissions/auth requirements, pagination behavior via limit, and the meaning of read_only, so the safety and mutation profile remains unstated.

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 short lines, front-loaded with the searchable fields, then format constraints, then return-value and scan-bound caveats. Every sentence carries information an agent cannot get from the schema, and nothing is padded.

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?

An output schema exists, so return-shape description is not needed, and the description correctly covers the most opaque behaviors (UIDs, scan_limit). But for a 14-parameter tool with zero schema coverage and no annotations, leaving read_only, limit, and folder unaddressed is a real gap in what an agent needs to invoke it safely and predictably.

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 description coverage is 0%, so the description must compensate and largely does: it maps sender, recipient, subject, query (text), since/before (dates), unread_only/flagged_only (flags), message_id and has_attachments to real semantics, and uniquely explains scan_limit as a scan window rather than a result cap. The gap is limit, folder, and especially read_only, whose effect on a search operation is never clarified.

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?

Names a specific verb (search) and enumerates the actual search axes: sender, recipient, subject, text, dates, flags, Message-ID, attachment presence. An agent immediately knows this is a read-only query tool. It stops short of differentiating itself by name from siblings like read_email or get_email_thread, but the enumerations make the distinction inferable.

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 context is implied by the criteria list and the date-format note, but there is no explicit when-to-use/when-not guidance and no pointer to alternatives such as read_email or get_email_thread for retrieving a single known message. It also omits that all 14 parameters are optional, leaving the agent to figure out that an empty query returns a default listing.

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