Skip to main content
Glama
outlook-mcp

outlook-mcp

by Pepebits

list_folders

Read-only

Lists top-level Outlook mail folders or child folders when a parent folder ID is provided, with pagination via nextLink and support for including hidden folders.

Instructions

List mail folders. Without parentFolderId returns top-level folders; with it returns child folders. Pass nextLink from a previous response for more. Well-known names usable as folder ids elsewhere: inbox, drafts, sentitems, deleteditems, junkemail, archive.

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": "list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
nextLinkNoOpaque nextLink from a previous response
includeHiddenNoInclude hidden folders
parentFolderIdNoFolder id or well-known name to list children of

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / nextLink
      Added value: +{
      +  "description": "Opaque nextLink from a previous response",
      +  "type": "string"
      +}
  2. First observedv1.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds behavior beyond that: hierarchy semantics of the result set, a pagination protocol, and the set of well-known ids that work elsewhere. It does not describe the folder fields returned, which matters since there is no output schema.

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?

Four short sentences, front-loaded with the core action and the mode switch. The nextLink sentence largely restates the schema's own wording ("Opaque nextLink from a previous response"), which is the only wasted line.

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 simple read-only listing tool with full schema coverage and clear annotations, this covers the branching behavior and pagination well. The one gap is that with no output schema, an agent gets no hint about what a returned folder object contains.

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 100%, so the baseline is 3, but the description adds genuine semantics: parentFolderId toggles between top-level and child listings, and it enumerates the well-known folder names (inbox, drafts, sentitems, deleteditems, junkemail, archive) that the schema only alludes to. includeHidden is left to the schema, which documents it adequately.

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 ("List mail folders") and immediately distinguishes the two modes: top-level vs child folders depending on parentFolderId. That is clearly separable from siblings like list_messages, list_attachments, and list_rules.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance for the parameter modes (omit parentFolderId for top level, supply it for children) and explains pagination via nextLink. It stops short of naming alternatives or stating exclusions, but there is no sibling that obviously competes for this job.

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