Skip to main content
Glama
email-mcp

email-mcp

by a1exsun

set_flags

Mark selected emails as read or unread and starred or unstarred; omitted flags stay unchanged. Use message UIDs to update status in a folder or mailbox.

Instructions

Mark emails read/unread (seen) and starred/unstarred (flagged). Omitted values stay unchanged.

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": {
      "uids": "<uids>"
    },
    "name": "set_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
seenNo
uidsYesMessage UIDs from search_emails
folderNoFolder path from list_foldersINBOX
accountNoMailbox: WORK | PERSONAL. Default WORK
flaggedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add genuinely useful partial-update semantics ("Omitted values stay unchanged"), meaning an agent can flip seen without disturbing flagged, but it says nothing about permissions, failure behavior on unknown UIDs, or what the call returns.

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 short sentences, zero filler, with the operation front-loaded before the partial-update caveat. Every clause earns its place and nothing is buried.

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?

For a five-parameter mutation tool with no annotations and no output schema, the description covers the state semantics and the partial-update rule but omits the mutation's outcome and any error/permission context. It is adequate to invoke correctly but not fully complete.

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 60%, and the description usefully disambiguates the two bare booleans by mapping seen to read/unread and flagged to starred/unstarred, which the schema alone does not. It adds nothing about uids, folder, or account, but those already carry schema descriptions pointing at search_emails and list_folders.

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 ("Mark") and resource ("emails") plus the exact state attributes affected (read/unread via seen, starred/unstarred via flagged), which is far more than a restatement of the name. It does not explicitly contrast itself with siblings, but no sibling in the catalog performs flag mutation, so the operation is distinguishable in practice.

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 implied by the description: an agent can infer it should call this when it needs to change read or star state. There is no explicit when-to-use statement, no when-not condition, and no mention of prerequisites such as the message needing to exist in the given folder.

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