Skip to main content
Glama

Search emails

search-emails
Read-only

Find Outlook emails using KQL queries and filters for sender, recipient, subject, folder, unread status, or attachments to retrieve matching messages.

Instructions

Search for emails using various criteria

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search-emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRecipient address filter
fromNoSender address filter
countNoMax results, 1-50
queryYesKQL search query
folderNoMail folder (slash path)inbox
subjectNoSubject text filter
unreadOnlyNoOnly unread messages
hasAttachmentsNoOnly messages with attachments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

The readOnlyHint annotation already establishes that this is a safe read operation, so the description's only job is to add context beyond that — and it adds none. It says nothing about result ordering, pagination, how the folder default interacts with the query, or what the output schema returns.

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

Conciseness3/5

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

It is a single short sentence with no filler, so it is concise and front-loaded. However, that brevity comes from under-specification rather than disciplined editing, so it earns only a middle score.

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?

With eight parameters, a required KQL query, a defaulted folder, and an output schema, this tool needs guidance the description never provides. The presence of annotations and an output schema lowers the bar, but the absence of any query-syntax or filtering guidance leaves the definition materially incomplete.

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 every one of the eight parameters is already documented in the schema, which sets the baseline at 3. The description adds nothing further — notably it never mentions that query is a KQL expression, which is the least self-explanatory parameter despite its schema title.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search for emails using various criteria" names the verb (search) and resource (emails), but "various criteria" is a vague placeholder that conveys no more than the tool name and title. It gives no hint of what distinguishes it from siblings like list-emails or read-email.

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?

There is no when-to-use guidance, no when-not-to-use guidance, and no named alternative. An agent cannot tell from this sentence whether to reach for search-emails or list-emails when browsing a folder.

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