Skip to main content
Glama

mark_as_read

Idempotent

Acknowledge messages as read in a specified chat up to an optional message ID, sending read receipts to peers and updating unread status.

Instructions

Send a read acknowledgement up to a message ID (visible as read receipt to peers).

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

Input Schema

NameRequiredDescriptionDefault
chatYesTarget chat reference.
max_idNoOptional highest message ID to acknowledge as read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=true, so the description's main job is side effects. It delivers the key one: the acknowledgement is 'visible as read receipt to peers', a social/visibility consequence the annotations do not express. It stops short of noting auth requirements or what happens when max_id is omitted, keeping it below a 5.

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?

A single front-loaded sentence with no filler, and the parenthetical carries real information. The phrasing 'up to a message ID' is slightly loose but does not waste words.

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 two-parameter tool with full schema coverage, an idempotent non-destructive annotation profile, and no output schema, this is nearly sufficient. The only meaningful omission is behavior when max_id is omitted, which an agent must guess from the optional flag.

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 coverage is 100%, so both 'chat' and 'max_id' are already documented. The phrase 'up to a message ID' restates the schema's 'highest message ID to acknowledge as read' rather than adding new meaning, so the baseline of 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?

States a specific verb and resource: 'Send a read acknowledgement' for a message, with the scope 'up to a message ID'. This clearly separates it from read-oriented siblings such as read_messages, though no sibling is named explicitly.

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 it is used to mark messages as read after viewing them. There is no explicit statement of when to prefer this over read_messages or when not to call it, so guidance stops at inference.

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