Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_create_label

Idempotently create a Gmail label, including nested Parent/Child names, and set visibility when the label is first created. Use it to organize messages and enable automatic labeling with filters.

Instructions

Idempotently create a Gmail label, including nested names such as Parent/Child.

Visibility is applied only when a new label is created. Allowed message_list_visibility values are show and hide; allowed label_list_visibility values are labelShow, labelShowIfUnread, and labelHide.

Discovery: use gmail_list_labels to inspect names before supplying required name.

Sibling tools: use gmail_create_filter to apply the label automatically, or gmail_list_labels to inspect existing labels.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
label_list_visibilityNolabelShow
message_list_visibilityNoshow

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?

With no annotations, the description carries the full burden and does well: it discloses idempotency (safe to retry), that nested paths are supported, and the key side-effect rule that visibility settings apply only when a new label is created, not on existing ones. It says nothing about required scopes/auth or what happens on an invalid visibility value or a name collision, which are the remaining gaps.

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?

The purpose is front-loaded in the first sentence, followed by the visibility constraint, discovery guidance, and sibling routing. Every sentence carries information, though gmail_list_labels is mentioned twice (discovery and siblings), which is a small redundancy but not harmful.

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 3-parameter mutation tool with no annotations and no output schema, the description covers all three parameters, the create-time visibility behavior, and idempotency. The one meaningful gap is the return value (label ID, resulting name) and permission requirements, which an agent would need to chain into follow-up calls like gmail_create_filter.

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 description coverage is 0%, so the description must compensate, and it largely does: it explains that 'name' accepts Parent/Child nesting, and it enumerates the allowed values for both visibility parameters (show/hide, and labelShow/labelShowIfUnread/labelHide) even though the schema declares no enums. It omits the defaults (labelShow, show) and any consequences of changing visibility later.

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 ('create a Gmail label') plus a distinguishing scope qualifier ('including nested names such as Parent/Child') and an idempotency property. It differentiates from two siblings by name, though it never addresses the overlap with gmail_manage_labels / gmail_manage_labels_bulk, which an agent could easily confuse it with.

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?

Gives explicit routing guidance: inspect names with gmail_list_labels before supplying the required name, and use gmail_create_filter to apply the label automatically. It lacks a 'do not use this when...' exclusion, particularly against the manage_labels siblings, so it is clear context without full exclusions.

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