Skip to main content
Glama

search_messages

Read-only

Search Outlook or Hotmail emails by keyword, folder, sender, date, or unread status. Returns newest messages first with previews and short IDs for sorting tools.

Instructions

メールを新しい順に検索する。各行の先頭 #N が整理系ツールに渡す短縮ID。

Args: query: 件名・本文へのフリーテキスト検索。省略すると条件だけで絞り込む。 folder: 検索対象フォルダ名(例「受信トレイ」)。省略すると全体。 from_address: 差出人アドレスの部分一致(例 "amazon.co.jp")。 unread_only: True なら未読だけ。 since: この日以降 YYYY-MM-DD。 until: この日まで(その日を含む) YYYY-MM-DD。 limit: 返す最大件数。既定20、上限50。 include_preview: True なら本文冒頭も添える(件数が多いと長くなる)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNo
sinceNo
untilNo
folderNo
unread_onlyNo
from_addressNo
include_previewNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses sorting order, output format (#N), and parameter behaviors such as limit's upper bound and include_preview's effect on response length. Even with readOnlyHint true, it adds useful context beyond the annotation.

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?

The description begins with a one-line purpose, then formatted Args with concise bullet-like explanations. Every parameter earns its place, and the structure makes it easy to scan. No unnecessary words.

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

Completeness5/5

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

The output schema exists, so return values need no explanation. The description covers the search orientation, sorting, ID format, and all parameter constraints, making it sufficiently complete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 8 parameters are described with richer semantics than the schema provides: query covers subject/body, from_address is partial match, since/until specify date format, and limit has explicit defaults and max. This fully compensates for the 0% schema description coverage.

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 clearly states the tool searches emails in descending order and that the leading #N is a short ID for organizing tools. This distinguishes it from sibling tools like get_message (single message) and move_by_search (search-and-move).

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?

The description positions this as the search entry point that provides short IDs for other organizing tools, making its use case clear. It doesn't explicitly list alternatives or exclude other tools, but the context is unambiguous enough for an agent to select it when searching is required.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ma2no4413/outlook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server