Skip to main content
Glama

Gmail: Add label

gmail_add_label
Destructive

Add one or more labels to a specific Gmail message using its message ID and label IDs to categorize and manage inbox items.

Instructions

[UNIFIED] Add one or more labels to a message (e.g. STARRED, IMPORTANT, or a user label id from list_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": {
      "site": "<site>",
      "message_id": "<message_id>",
      "label_ids": "<label_ids>"
    },
    "name": "gmail_add_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
label_idsYes
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.14.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=true, so the write/safety profile is covered structurally. The description adds context that labels may be system labels (STARRED, IMPORTANT) or user label ids from list_labels, but says nothing about permissions, error behavior, or the fact that this mutates the message.

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?

One compact sentence with the action front-loaded and no filler. The '[UNIFIED]' tag is noise that does not help an agent act, keeping it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-required-parameter mutation tool with no output schema and no annotations for auth, the definition covers the label concept well but leaves the required 'site' argument and post-call effects undocumented. An agent could still call it, but would be guessing on one required field.

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 description coverage is 0% for three required parameters, and the description only implicitly covers message_id and label_ids (with examples and the list_labels pointer). The required 'site' parameter is never mentioned anywhere, leaving a third of the required input unexplained.

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 ('Add one or more labels to a message') and gives concrete examples of label values, which separates it from gmail_remove_label by implication. It never explicitly names the inverse operation, so it stops short of a 5.

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?

The description points to list_labels as the way to obtain a user label id, which is a useful discovery hint for the label_ids array. It gives no guidance on when not to use it, required scopes, or whether it can be batched across messages.

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

Deploy Server

Other Tools