Skip to main content
Glama

Create label

create_label

Creates a Gmail label or IMAP folder so messages can be organized and moved into it; supports nested names with "/" and returns existing items instead of duplicating them.

Instructions

Create a Gmail label or an IMAP folder, so update_messages and move_messages can use it. Nest with "/" ("Kunden/Acme"); on IMAP Dove uses the server's own separator. If a label or folder with this name already exists, it is returned with created: false. System names (INBOX, SENT, TRASH, ...) cannot be created. Counts as one change against the hourly organize budget. Not available for Gmail mailboxes connected over IMAP (create the label in Gmail there).

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": "<name>"
    },
    "name": "create_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLabel or folder name, nested with "/".
accountYesMailbox alias or email address from list_accounts.

Output Schema

NameRequiredDescriptionDefault
labelNo
accountNo
createdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.20.2

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that an existing name is returned with created:false, that nesting uses "/" except on IMAP where the server's own separator applies, that system names are blocked, and that each call consumes one unit of the hourly organize budget. That is exactly the operational context annotations cannot convey. The only tension is that the existing-name behavior reads as idempotent while idempotentHint is false, which is reconcilable if the budget is charged per call.

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?

The most important fact (what it creates and why) is front-loaded, and each following clause carries a distinct constraint rather than restating the name or title. It is dense and slightly list-like, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter create tool with an output schema, the description covers the remaining unknowns: duplicates, naming/nesting rules, reserved names, account-type limitations, and rate/budget cost. Even though an output schema exists, explaining the created flag is a useful reinforcement rather than redundancy.

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 100%, so both parameters are already documented, but the description adds genuine meaning: the "/" nesting convention and the IMAP-specific separator override, which materially affects what a valid name looks like. It also clarifies that account refers to a mailbox where label creation may be unsupported entirely.

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?

The description opens with a specific verb and resource ("Create a Gmail label or an IMAP folder") and immediately names the downstream consumers (update_messages, move_messages), which separates it cleanly from read-only siblings like list_labels. An agent can tell exactly what this tool produces without opening the schema.

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?

It gives clear when-to-use context (before update_messages/move_messages need a target) and two explicit when-not conditions: system names like INBOX/SENT/TRASH are rejected, and the tool is unavailable on Gmail mailboxes connected over IMAP, where the label must be made in Gmail. It stops short of naming a sibling alternative for auditing existing labels, but the created:false behavior makes that largely unnecessary.

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