Skip to main content
Glama
Outlook MCP Server

Outlook MCP Server

by kennymatsudo

messages_from_sender

Retrieves all messages from one exact sender in a folder, up to 5,000, returning IDs and a count for bulk archive, delete, or move actions plus summaries of the first 50.

Instructions

Every message from one exact address in a folder, up to 5000.

Returns message_ids and count, ready for archive_messages, delete_messages or move_messages with confirm_count=count, plus summaries of the first 50 to show the user. For a quick look rather than a bulk action, search_messages with from: is enough.

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": {
      "sender": "<sender>"
    },
    "name": "messages_from_sender"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
folderNoinbox
senderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description must carry the behavior alone; it discloses the 5000-item cap, the return payload (message_ids plus count, summaries of the first 50), and the confirm_count handshake for downstream destructive operations. It stops short of confirming read-only semantics and whether subfolders are included, which leaves a small gap.

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 scope and cap, then the return contract, then the alternative. Two sentences and a clause, all load-bearing, though the tool list in the middle clause is slightly dense.

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?

With no output schema and no annotations, the description correctly fills the gap by describing the return values and the cap. An agent can invoke and chain it confidently; only subfolder behavior and limit-vs-cap interaction are left unstated.

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 coverage is 0%, so the description must compensate for all three parameters. It conveys sender as an exact address and folder as a single folder, but says nothing about the limit parameter's defaults or how it interacts with the 5000 cap and folder ('inbox' default unstated). Partial compensation only.

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?

Names a specific verb and resource plus exact scope: 'Every message from one exact address in a folder, up to 5000.' The exact-address and single-folder constraints distinguish it clearly from search_messages and the find_* siblings.

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 routes the agent: use this for bulk actions, use search_messages with `from:` for a quick look. It also names the downstream tools this output feeds (archive_messages, delete_messages, move_messages), giving concrete when-to-use and when-not-to-use context.

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