Skip to main content
Glama

Mail: Create label

mail_create_label

Make a new label to file mail under. Re-using an existing name returns that label rather than creating a duplicate. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
colorNoHex like #22c55e.
mailboxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false. The description adds substantially more: that this call never performs the write itself, the exact return shape on the first call (status='confirmation_required', action_id, plan_token), and the gating tool confirm_action. It also discloses idempotent-by-name behavior, which is real behavioral context an agent cannot get from the schema.

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?

Three short sentences, front-loaded with purpose, then the deduplication rule, then the confirmation contract. Every sentence carries information; only minor tightening would improve it.

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 non-destructive write with three params and no output schema, the critical missing piece — that the write is deferred behind confirm_action — is fully covered, along with duplicate-name behavior. The gap is the undocumented mailbox parameter, which affects whether the label lands in the right scope.

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 description coverage is 33% — only color carries a schema description. The description compensates for the required name parameter by explaining the re-use/idempotency semantics, which is meaningful. However, mailbox is left entirely unexplained in both schema and description, and color is not expanded beyond the schema's own note.

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 gives a concrete verb+resource ("Make a new label to file mail under") plus an idempotency rule, so the agent knows exactly what the tool produces. It does not distinguish itself from near-name siblings such as mail_label or mail_list_labels, leaving that differentiation to the caller.

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 clearly states the re-use case (existing name returns that label instead of duplicating) and spells out the mandatory two-step flow: call this, receive status='confirmation_required' with action_id and plan_token, then invoke confirm_action. It stops short of naming mail_list_labels as the way to pre-check existing labels, so guidance is clear but not fully comparative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources