Skip to main content
Glama
ABMIC

ABMIC

by zany92

search_messages

Find email messages by query text, sender, mailbox, date range, or unread status, with a result limit. Use it to locate specific messages in IMAP mailboxes.

Instructions

Search for messages using various criteria

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of messages to retrieve
queryNoSearch query text (searches in subject, from, body)
dateToNoEnd date for search (YYYY-MM-DD format)
mailboxNoMailbox name (default: INBOX)INBOX
dateFromNoStart date for search (YYYY-MM-DD format)
fromEmailNoFilter by sender email address
unreadOnlyNoSearch only unread messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool searches messages but doesn't describe what happens during execution (e.g., whether it's read-only, if it requires authentication, potential rate limits, or what the output looks like). The phrase 'using various criteria' is vague and doesn't add meaningful behavioral context beyond what the parameters imply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point without unnecessary words. It's appropriately sized for a search tool, though it could be slightly more informative without losing conciseness.

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

Completeness2/5

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

Given the tool has 7 parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain the return values, error conditions, or behavioral traits like whether it's safe to use or has side effects. For a search tool with multiple filtering options, more context is needed to guide effective use.

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 the schema fully documents all 7 parameters with clear descriptions. The description adds no specific parameter information beyond 'various criteria,' which doesn't provide additional meaning or context. This meets the baseline of 3 since the schema does the heavy lifting.

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?

The description clearly states the verb ('search') and resource ('messages'), specifying the action and target. It mentions 'various criteria' which hints at filtering capabilities, but doesn't explicitly differentiate from sibling tools like 'get_messages' or 'auto_organize' that might also retrieve messages.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer search_messages over get_messages (which might retrieve specific messages without filtering) or auto_organize (which might involve searching as part of organization). No context about prerequisites or exclusions is provided.

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