Skip to main content
Glama
chandshy
by chandshy

Remove Label from Email

remove_label

Remove a label from an email while keeping it in its original folder. Requires the email's UID within the label folder.

Instructions

Remove a label from an email. The email is removed from Labels/{label} but remains in its original folder (Inbox, etc.). The UID passed must be the UID in Labels/{label} (not the INBOX/source UID) — Labels/ folders have their own UID space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesUID of the email inside Labels/{label}
labelYesLabel name to remove (e.g. Work)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
messageIdNo
reasonNo
Behavior4/5

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

Annotations indicate not read-only and not destructive; description adds that email remains in original folder. Together they give a clear picture of behavior, though the description could mention side effects like label count changes.

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?

Two sentences, no wasted words. First sentence states purpose and effect; second sentence provides a specific, important constraint. Structure is front-loaded.

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 simple two-parameter tool with full schema coverage and annotations, the description adequately covers the outcome, parameter nuance, and effect on the email's location. It is complete for the tool's complexity.

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

Parameters5/5

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

Schema coverage is 100%, and the description adds crucial context: emailId must be UID in label's UID space, not inbox. This significantly improves parameter understanding beyond the schema.

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?

Clearly states the action (remove a label from an email) and the outcome (email removed from label but stays in original folder). Does not explicitly differentiate from sibling tools like bulk_remove_label, but purpose is unambiguous.

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?

Provides critical guidance on parameter semantics (UID must be from Labels/{label} UID space) but does not give context on when to use this tool versus alternatives like move_to_label or bulk_remove_label.

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

Install Server

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/chandshy/mailpouch'

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