Skip to main content
Glama
mailbox-org-mcp
by getrdone

List labels and colors

mailbox_list_labels
Read-only

Lists IMAP keywords and OX color labels used in a folder, including message counts and valid color names for message updates.

Instructions

List the labels (IMAP keywords) and OX color labels used in a folder with message counts, plus the color names accepted by mailbox_update_messages. Categories such as $social and $purchases are keywords too.

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

Input Schema

NameRequiredDescriptionDefault
folderNoINBOX
response_formatNo'markdown' for readable text (default), 'json' for complete structured datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds real context: results are scoped to a folder, include message counts per label, and include the upstream-accepted color palette. It does not discuss behavior for an invalid or empty folder, or how counts are computed, which keeps it below a 5.

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?

A single sentence, front-loaded with the primary output (labels and counts) and appending the secondary payload (accepted color names) plus a caveat about category keywords. It is slightly dense and runs long, but each clause carries information an agent needs.

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 no output schema, the description must carry the return-shape burden, and it does: labels, color labels, message counts, and accepted color names. For a zero-required-param, read-only listing tool this is nearly complete; only folder addressing and count semantics are left implicit.

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 50%: response_format is documented in the schema while folder only carries a default of INBOX. The description implies folder scoping ('used in a folder') but never clarifies whether it takes a name, path, or ID, nor that INBOX is the default. Baseline 3 is right since the schema does part of the work but the description doesn't close the gap.

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 the labels (IMAP keywords) and OX color labels used in a folder with message counts'. It also disambiguates semantics an agent could get wrong, noting that categories like $social and $purchases count as keywords, so the agent knows the result set is broader than literal labels.

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?

Implies a concrete workflow by stating it returns 'the color names accepted by mailbox_update_messages', which tells the agent when this tool is the prerequisite lookup for a color update. It stops short of explicit exclusions or naming other listing tools as alternatives, so the guidance is clear but not exhaustive.

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