Skip to main content
Glama

mail_folders

Read-only

List mailbox folders with total and unread message counts for a specified account, defaulting to the first configured mailbox.

Instructions

List folders of a mailbox with total and unread counts. account is a mailbox from mail_accounts (default: the first one).

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

Input Schema

NameRequiredDescriptionDefault
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, closed-world), so the description's job is to add behavior, and it does: it discloses that results carry total and unread counts, which is effectively the return shape given there is no output schema. It says nothing about ordering or whether nested folders are flattened, a minor remaining gap.

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, both front-loaded: the core behavior first, then the single parameter's provenance and default. Nothing is repeated from the schema and nothing is wasted.

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 read-only listing tool with no output schema, the definition covers the action, the returned counts, and the parameter's source and default. Only minor details such as result ordering or folder nesting are absent, which is unlikely to block correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema only shows a nullable string defaulting to null, so the description carries the full burden and meets it: it identifies `account` as a mailbox identifier sourced from mail_accounts and clarifies that the effective default is the first mailbox, which is meaningfully different from the schema's null default.

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 folders of a mailbox") and adds what the listing contains (total and unread counts), so an agent can distinguish it from mail_accounts, which enumerates mailboxes rather than folders. It stops short of explicitly naming a sibling it is not, which keeps it from a 5.

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 implied rather than stated: the reference to mail_accounts establishes the prerequisite for obtaining a valid account value, and the default behavior removes a decision. There is no explicit when-to-use or when-not guidance relative to mail_search or mail_read.

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