Skip to main content
Glama

delete_label

Destructive

Permanently delete a user label from an account, removing it from every message without deleting the messages themselves. System labels cannot be deleted and the action is irreversible.

Instructions

Permanently delete a user label from one account. The label is removed from every message that carried it; the messages themselves are untouched. Not reversible — the label id is gone and must be recreated. System labels (INBOX, SENT, STARRED, …) cannot be deleted.

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

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
label_idYesLabel id (from get_labels) to delete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it discloses the blast radius (label removed from every message, messages preserved), irreversibility (id is gone and must be recreated), and an authorization constraint (system labels are not deletable). This is exactly the behavioral context an agent needs before a destructive irreversible write.

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?

Four short sentences, each front-loaded with a distinct fact: action, blast radius, irreversibility, and constraint. No filler, no restatement of the tool name, and the most consequential warning (permanence) leads.

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 destructive tool with no output schema, the description covers everything material: what is destroyed, what survives, that it cannot be undone, and which labels are off limits. Nothing needed to call it correctly is missing.

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% and already documents both parameters, including that label_id comes from get_labels, so the description adds little per-parameter detail. The phrase 'from one account' and 'the label id is gone' reinforces account scoping and id invalidation slightly, but the schema does the heavy lifting.

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 ('Permanently delete a user label') scoped to one account, and immediately distinguishes user labels from system labels like INBOX/SENT/STARRED. An agent can tell this apart from label/unlabel or create_label siblings without opening a 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?

Gives a clear exclusion: system labels cannot be deleted, which prevents a whole class of failed calls, and points to get_labels as the source of valid ids. It does not, however, name the alternative for removing a label from messages only (e.g., unlabel_messages), so the agent must infer that distinction from the 'messages themselves are untouched' clause.

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