Skip to main content
Glama

flag_message

Flag a message. action: seen, unseen, flagged, unflagged, deleted.

    deleted moves the message to the mailbox's Trash folder (recoverable). Use empty_trash to delete permanently.
    

Input Schema

NameRequiredDescriptionDefault
uidYes
actionYes
folderNoINBOX

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare destructiveHint=false, which could look inconsistent with an action literally named 'deleted'; the description resolves this by stating that deleted moves the message to Trash and is recoverable. That is genuine added context. It doesn't cover the side effects of the flag-state actions (seen/unseen/flagged/unflagged), so it isn't exhaustive.

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?

Two short lines, front-loaded with the core purpose followed by the action list and the one caveat. Slight indentation/stray whitespace aside, every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained, and the action list plus Trash caveat cover the main risk. Missing are the uid format/identifier expectations and any note on the folder parameter's scope, leaving gaps for a 3-parameter tool with no schema descriptions.

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 0%, so the description must compensate. It does add real value by enumerating the complete action vocabulary (seen, unseen, flagged, unflagged, deleted), which the schema lacks as an enum. But uid is entirely unexplained and folder semantics are left to the schema default, so the compensation is only partial.

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?

States a clear verb+resource ('Flag a message') and enumerates the action values, which lets an agent distinguish it from siblings like move_message or read_message. It stops short of explicitly contrasting itself with move_message, whose behavior overlaps with the 'deleted' action.

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 gives one useful routing hint — 'Use empty_trash to delete permanently' — which names both the alternative and the condition. However, it offers no guidance on when to choose among seen/unseen/flagged/unflagged, leaving most usage to inference.

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.

Resources