Skip to main content
Glama
outlook-mcp

outlook-mcp

by dbfournier33

batch_move_emails

Search emails matching a query and move all matches to a target folder, with dry-run preview and automatic folder creation if missing.

Instructions

Search for emails matching a query and move ALL matches to a target folder. Supports dry_run to preview before moving. Auto-creates target folder if it does not exist.

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": {
      "search_query": "<search_query>",
      "target_folder": "<target_folder>"
    },
    "name": "batch_move_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, only preview matches without moving
max_emailsNoMaximum emails to move
search_queryYesSearch query (same as search_emails)
target_folderYesTarget folder name. Will be created under Inbox if it does not exist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two important side effects: preview via dry_run and automatic creation of a missing target folder under Inbox. It omits the destructive scope risk of bulk-matching (a broad query moves everything) and the silent 100-email default cap enforced by max_emails.

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 sentences, front-loaded with what is searched and moved, then the preview option, then the folder side effect. No filler and no repetition beyond the unavoidable restatement needed for standalone reading.

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?

For an unannotated mutation tool with no output schema, the core behavior and side effects are covered well. Remaining gaps are the return value (e.g., how many emails were moved vs matched) and the default cap of 100, which an agent would need to set max_emails explicitly to override.

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 baseline is 3; all four parameters are already documented in the schema. The description restates dry_run and folder creation but adds nothing on max_emails, on search_query syntax, or on bypassing the default limit.

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 states a specific verb and resource ('Search for emails matching a query and move ALL matches to a target folder'), which clearly separates it from a single-email move or a plain search. It does not name the sibling 'move_emails' to contrast single vs bulk, so it falls short of a 5.

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?

It gives practical guidance for the dry_run path ('preview before moving'), which implies a recommended workflow. However, it never states when to choose this over move_emails or search_emails, nor any when-not-to-use condition such as large or unintended match sets.

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