Skip to main content
Glama

Add Email Category

email_add_category

Replace all categories on an email with specified ones. Organize your inbox by assigning category names to emails.

Instructions

✏️ Add categories to an email (requires user confirmation recommended)

Simpler alternative to email_update for managing email categories. This replaces all existing categories with the specified ones.

Args: email_id: The email ID to update account_id: Microsoft account ID categories: Category name(s) to apply (single string or list)

Returns: Updated email object

Raises: ValueError: If email_id is invalid ValidationError: If categories is empty or contains invalid values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idYes
account_idYes
categoriesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Discloses that the tool 'replaces all existing categories with the specified ones' – a key behavioral trait not captured by annotations. Also lists raised errors (ValueError, ValidationError). Annotations indicate destructiveHint=false, but the replacement behavior could be considered destructive; however, the description is transparent about this.

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?

Front-loaded with emoji and key info. Each sentence serves a purpose: purpose, usage guidance, behavioral warning, args, returns, raises. No redundant text.

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?

Covers all aspects: purpose, behavior, parameters, return value, and error handling. Has output schema, so return details are sufficient. Complexity low, but description is complete.

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?

With 0% schema description coverage, the description fully compensates by describing each parameter in the Args section: email_id, account_id, and categories, adding context beyond the schema's type definitions.

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?

Clearly states 'Add categories to an email' with a specific verb and resource. Distinguishes itself from sibling 'email_update' by noting it is a 'simpler alternative for managing email categories'.

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?

Provides guidance by recommending use as a simpler alternative to email_update and mentions user confirmation. However, does not explicitly state when not to use or list other alternatives.

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/robin-collins/m365-mcp'

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