Skip to main content
Glama
Mabus Mailroom

Mabus Mailroom

by dpdanpittman

list_labels

Read-onlyIdempotent

Lists all labels for a specified Gmail account alias so you can identify available labels before filtering or processing messages.

Instructions

List the labels of one account.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>"
    },
    "name": "list_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount alias from list_accounts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered by structured data. The description adds nothing beyond that: no note on whether labels are paginated, whether an empty result is possible, or what happens for an invalid alias. With no output schema, this leaves the behavioral picture thin.

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?

One short, front-loaded sentence with no filler or redundancy. It is efficient, though the brevity comes partly from omitting information rather than from tight editing of rich content.

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?

The tool is genuinely simple (one required string, full annotation coverage), so a single sentence is close to sufficient. However, with no output schema the description could say what a label record contains, and it never clarifies scope or failure behavior for an unknown alias.

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?

There is a single parameter with 100% schema description coverage, including the note that the account is an alias from list_accounts. The description's phrase 'of one account' merely echoes the schema, so the baseline of 3 for well-documented schemas 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?

The description states a specific verb (List) and resource (labels) scoped to a single account, so an agent immediately knows what the tool returns. It does not name or differentiate itself from any sibling, but the sibling set (list_accounts, get_message, search) contains no competing label operation, so the ambiguity cost is low.

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 when-to-use guidance, no prerequisite statement, and no mention of alternatives. The only hint is the phrase 'of one account', which implies a single-account scope but never says when to reach for this versus list_accounts or search.

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