Skip to main content
Glama
@mcp-z/mcp-outlook
by mcp-z

messages-export-csv

Export filtered Outlook messages to CSV for reporting or backup, using structured queries and streaming pagination; returns a file URI.

Instructions

Export Outlook messages to CSV with streaming pagination. Returns file URI. Use query-syntax prompt for query reference.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "messages-export-csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoStructured query object or JSON string for filtering messages. Use query-syntax prompt for reference and kqlQuery for KQL syntax.
filenameNoOutput filename (default: outlook-messages.csv)outlook-messages.csv
maxItemsNoMaximum messages to export (default: 10000, max: 50000)
contentTypeNoFormat for body content: text extracts plain text, html preserves HTML structuretext
excludeThreadHistoryNoWhen true, removes quoted thread history from body content

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.3

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that output is a file URI and that pagination is streamed, implying a file is written to disk, but it does not say where the file lands, whether an existing file is overwritten, or what happens at the 50000-item cap. Useful but incomplete for a write-producing export tool.

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?

Three short sentences with the core action and output format front-loaded; nothing is padded. The trailing prompt reference is the weakest sentence but still earns a small place by directing agents to query syntax.

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

Completeness3/5

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

An output schema exists, so return values need not be spelled out, and the description correctly notes the file URI. However, for a tool that generates a file from a complex nested query with all-optional parameters, the definition omits the default scope (what gets exported with no filters) and file-location semantics.

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% and every parameter including the nested query object is documented in the schema, so the baseline is 3. The description only adds a pointer to the query-syntax prompt and does not clarify default behavior when `query` is omitted or how `excludeThreadHistory` interacts with `contentType`.

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?

States a specific verb and resource ('Export Outlook messages to CSV') plus the output artifact ('Returns file URI'), which lets an agent distinguish it from message-search. It stops short of explicitly contrasting itself with the search sibling, but the export-to-file framing is unambiguous.

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?

The only guidance is 'Use query-syntax prompt for query reference', which points at reference material rather than when to choose this tool over message-search. There is no statement about when export is appropriate, no exclusions, and no mention of what happens when no query is supplied (all parameters are optional).

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