Skip to main content
Glama
Outlook MCP Server

Outlook MCP Server

by kennymatsudo

archive_messages

Move selected Outlook messages to the Archive by ID to clear the inbox. Restore them later by moving the same messages back.

Instructions

Move messages by id to Archive. Reversible with move_messages back to inbox.

For "everything older than X" or "everything from Y", archive_matching selects the mail itself and needs no ids. confirm_count: must equal the number of ids; call without it first and show the user the list (see move_messages).

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": {
      "message_ids": "<message_ids>"
    },
    "name": "archive_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idsYes
confirm_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 well: it discloses that the move is reversible via move_messages back to inbox, and that confirm_count is a safety gate requiring a prior preview call. It stops short of saying what happens on a count mismatch or whether the Archive folder must pre-exist.

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?

Front-loaded with the core action, then the alternative, then the parameter caveat. Every sentence earns its place, though the wrapped confirm_count block reads slightly like a schema note rather than prose.

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 a two-parameter mutation tool with no annotations and no output schema, the description covers the action, the sibling routing, reversibility, and the confirm_count contract. Remaining gaps (mismatch error behavior, return value) are minor.

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 coverage is 0%, so the description must compensate, and it does for confirm_count: it defines the equality constraint against the id count and the preview-first protocol. message_ids is only implied by "by id" — no format or limit guidance — which keeps it from a 5.

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?

States a specific verb and resource ("Move messages by id to Archive") and immediately distinguishes itself from the sibling archive_matching by explaining that one selects mail itself and needs no ids. An agent can pick between the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative (archive_matching) and the condition that selects it ("everything older than X" or "everything from Y"). It also prescribes a two-step workflow for confirm_count: call without it first and show the user the list.

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