Skip to main content
Glama

list_mail_folders

Retrieve Outlook mail folders with unread and total item counts to browse mailbox structure, paginate results, or refresh cached folder data.

Instructions

List Outlook mail folders with unread and total item counts. Graph cost: 1 request plus 1 batch per folder nesting level, skipped while the cache is younger than OUTLOOK_CLI_CACHE_SECS (default 0).

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_mail_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNoOpaque next_cursor from a previous response
offlineNoRead the local cache only; no Graph request.
refreshNoForce a full folder-tree fetch even when the cache is fresh. Use only when a folder is missing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does well on cost and caching: it discloses the Graph request/batch cost model, the per-nesting-level multiplier, and that calls are skipped while the cache is younger than OUTLOOK_CLI_CACHE_SECS (default 0), which is genuinely useful for a read tool. It omits the auth/permission profile and how the cache interacts with results staleness beyond the env var, leaving real gaps for an unannotated 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?

Two sentences, front-loaded with what the tool returns, followed by the cost/caching caveat. Dense but every clause carries information; the OUTLOOK_CLI_CACHE_SECS reference is a little compressed but not wasteful.

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?

With no output schema, the description usefully names the returned counts, and with no annotations it usefully adds the cost model and cache behavior. However, it leaves the auth requirements and result-staleness implications unclear, and one of four parameters (limit) is undocumented in both schema and description, so it is adequate rather than complete.

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 75%, so the baseline is 3; cursor, offline, and refresh are already documented in the schema, while limit has no description. The cache-freshness sentence in the description indirectly explains the refresh/offline behavior, which adds modest value but does not document pagination semantics or the limit cap.

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 ("List Outlook mail folders") and adds the payload contents ("unread and total item counts"). The resource is distinct from every sibling (which operate on messages, events, tasks, not folders), so an agent can identify the right tool without extra differentiation.

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?

There is no explicit statement of when to choose this over alternatives such as list_messages or search_mail, nor any preconditions. The only usage-adjacent content is the cache-freshness note, which describes behavior rather than selection guidance.

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