Skip to main content
Glama

Set message flags

mail_set_flags
Idempotent

Marks a message as seen or unseen, flagged or unflagged.

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": {
      "id": "<id>"
    },
    "name": "mail_set_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMessage ID from mail_list.
seenNotrue marks the message read, false unread. Omit to leave it unchanged.
flaggedNotrue flags (stars) the message, false clears the flag. Omit to leave it unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / flagged / description
      Added value: +"true flags (stars) the message, false clears the flag. Omit to leave it unchanged."
    • addedInput schema / properties / id / description
      Added value: +"Message ID from mail_list."
    • addedInput schema / properties / seen / description
      Added value: +"true marks the message read, false unread. Omit to leave it unchanged."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so safety and repeat-call behavior are covered elsewhere. The description is consistent with those hints and confirms the narrow scope (flags only, no move/delete), but adds no new behavioral context such as error behavior for an unknown ID or whether a call with no flags is a no-op.

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?

A single front-loaded sentence with zero filler; the operation and both state pairs are stated immediately. Nothing is repeated or padded.

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 simple three-parameter mutation tool whose schema and annotations are fully specified, the description covers what the tool does and stays consistent with the structured data. Minor gaps remain around edge cases (nonexistent message ID, calling with only the required id), but the schema carries the parameter semantics.

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%, and the schema already explains that seen=true/false maps to read/unread and that omitting a field leaves it unchanged. The description adds no syntax or semantics beyond that, so 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 states a specific verb (marks) and resource (a message) plus the two flag dimensions (seen/unseen, flagged/unflagged), so the agent knows exactly what state this tool mutates. It does not name a sibling or explicitly contrast itself with mail_get or mail_move, which keeps it below a 5.

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?

Usage is only implied: an agent can infer you call this when you want to change read/star state, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., whether mail_get also marks seen). No guidance on combining flags or on which operation to prefer for bulk changes.

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.