Skip to main content
Glama

Set Email Categories

set_message_categories
DestructiveIdempotent

Replace, add, or remove Outlook message categories to label mail; use replace mode to set exact categories or clear them with an empty list.

Instructions

Set the categories on a message: replace them all, or add or remove some. Categories are Outlook's labels; see list_mail_categories for the defined ones.

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": {
      "message_id": "<message_id>",
      "categories": "<categories>"
    },
    "name": "set_message_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreplace (default) sets exactly these; add keeps the existing ones; remove takes these off
mailboxNoEmail address of another mailbox to act on (delegated or shared), e.g. 'someone@example.com'. Omit for your own mailbox; required when this server signs in as an application. Only addresses this server is configured to allow will be accepted.
categoriesYesCategory names. With mode replace, an empty list clears them
message_idYesThe message ID, or a ref from scan_messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.1

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is largely carried by structured data. The description adds useful domain context ('Categories are Outlook's labels') and a pointer to list_mail_categories for discovering valid values, but it never spells out that replace discards prior categories or what happens if a named category does not exist.

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, front-loaded with the action and its variants, with the discovery pointer placed second. No redundant restatement of the title or the schema.

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 four-parameter mutation tool with full schema coverage and annotations covering safety, the description supplies the operation semantics and the category-value reference. Only edge cases such as unknown category names or effect on non-listed categories are left unaddressed, which is a minor gap.

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 description coverage is 100%, including the mode enum and the mailbox delegation rules, so the schema does the heavy lifting. The description only contributes the clarifying note that categories are Outlook labels discoverable via list_mail_categories, which is modest added meaning; the baseline 3 applies.

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 names a specific verb and resource ('Set the categories on a message') and enumerates the three mutation styles, so the scope is unambiguous. It distances itself from list_mail_categories, which reads categories rather than writes them, though it says nothing about other write-side siblings.

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?

It offers a compressed echo of the mode semantics ('replace them all, or add or remove some') but no guidance on when the add/remove modes are preferable, nor any preconditions such as categories needing to exist first. Usage is implied rather than stated.

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