Skip to main content
Glama

gmail_modify_labels

Add or remove Gmail labels to organize messages. Archive emails by removing INBOX or mark them as read by removing UNREAD.

Instructions

Add or remove labels on a message. Use this to archive (remove INBOX), mark read (remove UNREAD) or triage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
addNo
removeNo
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description does not need to restate mutation. It adds useful behavioral mapping: removing INBOX archives and removing UNREAD marks read. This goes beyond the structured fields without contradicting them.

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?

A single action-first sentence with concrete examples, no filler, and no duplication of the schema's structure. Every word contributes to correct use.

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 simple three-parameter tool with no output schema, the description covers the core behavior, the required message context, and common label idioms. It omits edge-case details such as invalid label handling, but those are not necessary for basic correct invocation.

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

Parameters4/5

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

Schema description coverage is 0%, but the description compensates by linking add/remove to label operations and by giving concrete label values like INBOX and UNREAD. 'On a message' implies that id is the message identifier, though the description could more explicitly state that add/remove expect label IDs.

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 states a specific action ('Add or remove labels') and resource ('a message'), then grounds it in concrete Gmail intents (archive, mark read, triage). This clearly distinguishes it from sibling read/search/send tools.

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?

The phrase 'Use this to archive..., mark read..., or triage' explicitly signals when to invoke the tool. It does not enumerate alternatives or exclusion cases, but no close sibling performs label modification, so the usage context is clear.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/navidmoazzez/google-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server