Skip to main content
Glama
email-mcp

email-mcp

by a1exsun

list_folders

Lists all email folders for a chosen account and flags special-use folders such as Inbox, Sent, Drafts, Trash, Junk, and Archive so you can select the right target.

Instructions

List all folders. specialUse marks Inbox/Sent/Drafts/Trash/Junk/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
accountNoMailbox: WORK | PERSONAL. Default WORK

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden and only partially meets it: it explains that the returned folders carry a specialUse marker for Inbox/Sent/Drafts/Trash/Junk/Archive, which is genuine return-value context. It says nothing about authorization requirements, whether hidden/system-only folders are included, ordering, or result size limits for accounts with many folders.

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?

Two short sentences, the primary purpose front-loaded, and no filler. The second sentence is telegraphic but every word carries information about the returned data.

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 one-parameter, zero-required listing tool with no output schema and no annotations, the definition covers the core purpose and one notable field of the response. Remaining gaps (folder identity fields, ordering, scope of returned folders) are minor for a simple enumerate-everything call.

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 100% and the single optional 'account' parameter is fully documented with its enum values and default in the schema. The description adds nothing about the account parameter, so the baseline 3 applies.

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 all folders'), which is unambiguous and implicitly separates it from the mutation siblings like create_folder, delete_folder, and rename_folder. It does not explicitly name a sibling it competes with, but the read-only listing purpose is clear.

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 when-to-use guidance, no mention of prerequisites (e.g., call before move_emails to obtain folder IDs), and no stated alternatives or exclusions. The agent must infer that this is the discovery step for folder operations.

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