Skip to main content
Glama

Delete a label

labels_delete
DestructiveIdempotent

Delete one label, by its id from labels_list. No message is deleted: in a Gmail connected by Google sign-in the label comes off every message; an Outlook mailbox's category leaves its list, and the messages that carried it keep its name. A mailbox whose provider is imap, a Gmail one included, deletes only a folder holding no mail and no folder, and so does an Outlook mailbox.

Input Schema

NameRequiredDescriptionDefault
idYesA label id from labels_list.
mailboxYesThe mailbox's name or its email address.

Output Schema

NameRequiredDescriptionDefault
deletedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / pattern
      Previous value: -"^[A-Za-z0-9_-]{1,128}$"New value: +"^[A-Za-z0-9_=-]{1,512}$"
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description goes well beyond them by disclosing that no messages are deleted and that effects differ by provider (Gmail label removed from every message, Outlook category removed from the list, messages keep the name). The final sentence about imap is worded so ambiguously ('deletes only a folder holding no mail and no folder') that the critical edge case is hard to parse, which keeps this from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action is front-loaded and the 'No message is deleted' clause earns its place, but the provider sentence is dense and the trailing imap sentence is convoluted enough that a reader must re-parse it. That sentence arguably fails to earn its place in its current form.

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?

With annotations covering the destructive/idempotent profile and an output schema present, the description supplies the remaining piece an agent needs: what actually happens to messages under each provider. The only gap is the muddled imap behavior, which leaves one provider's outcome uncertain.

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 coverage is 100%, so both parameters are already documented; the description only reinforces that id comes from labels_list. It adds no format, constraint, or failure-mode detail beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Delete one label') plus the identifier source ('by its id from labels_list'), which separates it cleanly from labels_create and labels_update. An agent knows exactly what the tool does 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 operational context: the id must come from labels_list, and it explains the message-level consequences of deleting. It does not explicitly say when to prefer labels_update over delete, nor does it warn to confirm before invoking a destructive call, so no true exclusions are present.

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.