Skip to main content
Glama

list_folders

Read-onlyIdempotent

Retrieve Outlook mail folders with IDs, paths, unread/total counts, and special-folder roles; filter by account and refresh cached results.

Instructions

List mail folders: id, account, path like "Inbox/Projects", unread/total counts, and role (inbox, sent, drafts, deleted, junk, outbox) for the account's special folders.

Args:
    account: Only accounts whose email or name contains this text.
    refresh: Re-read from Outlook instead of the 60-second cache.

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
accountNo
refreshNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: results are served from a 60-second cache and 'refresh' forces a re-read from Outlook. That cache/refresh contract is exactly the kind of information an agent cannot get from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads the output shape and resource, then two short labeled args follow with no filler. Every sentence contributes information an agent would otherwise have to guess.

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 an output schema present, return values needn't be explained, and both parameters plus the caching model are covered. Minor gap: it does not clarify whether only special folders are listed or the full folder tree (the 'role' field's scope could be read either way).

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% (only bare titles and defaults), so the description carries the burden and does so well: 'account' is documented as a substring match against email or name, and 'refresh' as bypassing the 60-second cache. Both parameters gain semantics not present in the schema; only the exact matching case-sensitivity is left unstated.

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 mail folders') and even enumerates the returned fields (id, account, path, unread/total counts, role), which makes it clearly distinct from list_messages, create_folder, or delete_folder. It stops short of explicitly naming those siblings, so it is clear but not maximally differentiated.

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

Usage Guidelines3/5

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

Usage is only implied by the tool's nature: an agent can infer it should call this to discover folder ids/paths before filtering messages. There is no explicit when-to-use/when-not guidance and no mention of alternatives such as searching messages directly.

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