Skip to main content
Glama

gmail_update_label

Rename or restyle a Gmail label, adjusting its name, colors, and visibility. Optionally update child labels when renaming a parent.

Instructions

Rename and/or restyle a Gmail label. Gmail stores hierarchy in the name, so renaming a parent does not rename its children unless renameDescendants is true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYes
accountYesConfigured Gmail account alias, e.g. work, personal, support.
newNameNo
textColorNoHex colour from Gmail's fixed label palette, e.g. #ffffff.
backgroundColorNoHex colour from Gmail's fixed label palette, e.g. #fb4c2f.
renameDescendantsNoRequired when renaming a label that has children. True rewrites their prefix too; false renames only the parent.
labelListVisibilityNo
messageListVisibilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It does reveal a non-obvious behavior: renaming a parent label does not rename children unless renameDescendants is true. However, as a mutation tool it omits other relevant traits such as mutation permanence, permissions, or what the API returns on success.

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?

The description is two sentences with no filler. It front-loads the core purpose, then adds one important behavioral nuance; every sentence earns its place.

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 an 8-parameter mutation with no annotations and no output schema, the description is only partially complete. It covers the core rename behavior and the hierarchy wrinkle, but relies on the schema for several parameters and gives no usage guidance or post-condition information.

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 50%, so the description partially compensates by clarifying the renameDescendants behavior and framing the label mutation as 'rename and/or restyle.' But newName, labelListVisibility, and messageListVisibility remain schema-only, and the description does not explain their meaning or usage beyond the bare schema entries.

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 opens with 'Rename and/or restyle a Gmail label,' giving a clear verb and resource. It is distinct enough from sibling operations like creating, deleting, or applying labels, though it does not explicitly name those alternatives.

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?

No explicit 'when to use' or alternative tool is mentioned, but the hierarchy note implies this tool is the correct one for renaming existing labels, especially parent labels. The guidance about renameDescendants gives a conditional usage clue but not a full decision framework.

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