Skip to main content
Glama

Faivelo Email

Label a message

label_message

Add or remove labels on a message: free-form lowercase tags such as "needs-reply" or "invoice" (letters, digits, dots, dashes, underscores). Useful for keeping track of what has been handled. Returns every label the message carries afterwards. Works on agent inboxes only (a free address or an API-only inbox); a person's mailbox returns agent_inbox_only.

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": {
      "mailbox": "<mailbox>",
      "uid": "<uid>"
    },
    "name": "label_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoLabels to add
uidYesMessage UID from list_messages
folderNoIMAP folder name (default "INBOX")
removeNoLabels to remove
mailboxYesFull mailbox address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare it is a non-read-only, non-destructive, closed-world mutation, and the description sensibly adds the failure mode (agent_inbox_only on a person's mailbox) and states it returns the full label set afterwards. Beyond that it does not say what happens to labels absent from the add/remove arrays, whether a no-op is safe, or what permissions are needed — so it adds real but partial context over the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the operation, then the format rule, then the return value, then the platform restriction — a sensible ordering for scanning. The 'useful for keeping track of what has been handled' sentence is soft motivation rather than operational information, the only real slack.

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 five-parameter mutation with a fully described schema and no output schema, it covers the essentials: what changes, label syntax, the post-state return value, and the inbox restriction with its error code. The remaining gap is semantics of partial application (e.g. whether unspecified labels are untouched), which a careful agent would want.

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 coverage is 100%, so the baseline is 3, but the description earns an extra point by documenting the label grammar (lowercase, letters/digits/dots/dashes/underscores) that the schema's bare 'Labels to add'/'Labels to remove' entries leave unspecified. It still says nothing about folder selection or the uid source beyond what the schema already states.

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?

Names a specific verb pair and resource — 'Add or remove labels on a message' — and immediately scopes the resource further with the allowed label alphabet and examples. It remains clear at a glance, but it never contrasts itself with the nearest sibling (flag_message), so the agent must infer that labels are free-form tags rather than IMAP flags.

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?

Gives a concrete reason to reach for it ('keeping track of what has been handled') plus a hard precondition: it only works on agent inboxes, and a personal mailbox yields agent_inbox_only. There are no explicit when-not rules or named alternatives, but the precondition is the practically important exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.