Skip to main content
Glama

Delete Gmail label

delete_gmail_label
Destructive

Permanently delete a Gmail label (the messages themselves are not deleted, only unlabeled). Ask the user to confirm before calling this.

Input Schema

NameRequiredDescriptionDefault
labelIdYes
mailboxYesEmail address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already supply destructiveHint=true and readOnlyHint=false, and the description goes beyond them by defining the blast radius: the deletion is permanent, but messages are only unlabeled rather than removed. The explicit confirmation requirement is additional behavioral context. It stops short of 5 because it says nothing about reversibility of recovery beyond "permanently" or about failure modes.

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?

Two short sentences with zero filler; the destructive scope is front-loaded and the safety instruction follows immediately. Nothing is repeated from the title or schema.

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 two-parameter mutation with no output schema, the description covers the essentials: what is destroyed, what is not, and the confirmation gate. It is slightly incomplete in that it never tells the agent where labelId comes from or that the operation is scoped to a single mailbox, both of which are discoverable only from sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: mailbox is described and even points to list_authorized_mailboxes, but labelId is a bare string with no description. The tool description adds nothing here — it never says whether labelId is an opaque ID or a label name, nor how to obtain a valid one (e.g., via list_gmail_labels), which is exactly the gap the 50% coverage leaves.

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 pairs a specific verb ("Permanently delete") with a specific resource ("a Gmail label") and immediately clarifies scope by noting the messages themselves survive and are only unlabeled. That scope note cleanly separates it from delete_gmail_filter, delete_mail_folder, and delete_gmail_message-style siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete procedural rule — confirm with the user first — which is real usage guidance for a destructive tool. However, it names no alternative or routing condition (e.g., rename_gmail_label for a rename, merge_duplicate_gmail_labels for consolidation), so an agent must infer when deletion is the right choice.

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