Skip to main content
Glama

Mark as read

mark_as_read
Idempotent

Marks an email as read (sets the \Seen flag) in its mailbox.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>"
    },
    "name": "mark_as_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesIMAP UID of the message, as returned by search and listing tools.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
accountIdYesAccount id, as returned by list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  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 the safety profile is covered. The description usefully adds that the concrete mutation is setting the \Seen flag in the mailbox, but says nothing about permissions needed, behavior for a nonexistent UID, or what is returned.

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 short sentence that front-loads the action and then clarifies the mechanism in parentheses; there is no wasted wording.

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, fully documented, idempotent mutation with no output schema, the description covers what changes and where. It only omits failure/return behavior, a minor gap given the schema already documents all three parameters.

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%, so uid, folder and accountId are already explained in the schema (including the INBOX default and the cross-reference to search/listing tools). The description adds no further parameter meaning, which lands at the baseline 3.

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 specific verb (marks as read) and resource (an email) and even names the underlying mechanism, the \Seen flag, so the effect is unambiguous. It does not explicitly distinguish itself from the sibling mark_as_unread, though the naming makes the contrast near self-evident.

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 this is the way to set the read state on a known message, but there is no stated when-to-use, when-not, or pointer to mark_as_unread as the reversal path. For a trivial single-effect tool that is adequate, not strong.

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