Skip to main content
Glama

mark_as_read

Removes the UNREAD label from specific Gmail messages in one account and confirms how many messages were actually modified, reporting any ids Gmail could not find.

Instructions

Remove the UNREAD label from specific messages in one account. Message-level: passing a thread id affects only the first message of that conversation. Each id is read back after the change, so the response reports how many messages were actually modified and names any id Gmail could not find.

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": {
      "account": "<account>",
      "message_ids": "<message_ids>"
    },
    "name": "mark_as_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
message_idsYesGmail message ids ("Gmail ID" in search results), not thread ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds genuinely new behavior: each id is re-read after the change, the response reports how many messages were actually modified, and ids Gmail could not find are named. That partial-success semantics is context an agent cannot get from annotations, though permissions/auth requirements and behavior when a message is already read are not covered.

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?

Three sentences, front-loaded with the action, then the message-level caveat, then the verification/return behavior. No filler and nothing that duplicates the schema verbatim.

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?

With no output schema, the description correctly spends its budget explaining the response (counts of modified messages, unfound ids). It is nearly complete for a two-parameter mutation, missing only failure modes such as what happens when the UNREAD label is already absent.

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; the description earns a step up by clarifying that message_ids are message-level ids and that a thread id silently only touches the first message, which is a behavioral nuance the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Remove the UNREAD label from specific messages') plus the scope ('in one account'), which separates it from label/unlabel-tool siblings. The message-level caveat further sharpens what the tool does versus a thread-level operation.

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 context is implied rather than stated: the definition explains that passing a thread id affects only the first message, which hints an agent should pass message ids, but it never explicitly says when to use this instead of a thread-level sibling such as unlabel_thread or unlabel_messages. An agent must infer the routing rule.

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